code: public ApiResponse<DeviceTaskUpdateResponse> updateTaskForDeviceWithHttpInfo(String tid, String did, DeviceTaskUpdateRequest deviceTaskUpdateRequest) throws ApiException {
          com.squareup.okhttp.Call call = updateTaskForDeviceValidateBeforeCall(tid, did, deviceTaskUpdateRequest, null, null);
          Type localVarReturnType = new TypeToken<DeviceTaskUpdateResponse>(){}.getType();
          return apiClient.execute(call, localVarReturnType);
      }
docs: Updates a task for a specific device - For now just allows changing the state to cancelled.
  Updates a task for a specific device - For now just allows changing the state to cancelled.
  @param tid Task ID. (required)
  @param did Device ID. (required)
  @param deviceTaskUpdateRequest Device task update request (required)
  @return ApiResponse&lt;DeviceTaskUpdateResponse&gt;
  @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body