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