updateTaskNote function

Future<ApiResponse<Object?>> updateTaskNote(
  1. ExsitedClient client,
  2. Object taskCode,
  3. Object noteId,
  4. String note, {
  5. Map<String, Object?>? files,
  6. bool? raiseOnError,
  7. String? responseFormat,
})

PATCH /api/{api_version}/tasks/{task_code}/notes/{note_id}

Update a note's text; a form, as the create is, by the task's code.

No typed view. Read response.map.

Implementation

Future<ApiResponse<Object?>> updateTaskNote(
  ExsitedClient client,
  Object taskCode,
  Object noteId,
  String note, {
  Map<String, Object?>? files,
  bool? raiseOnError,
  String? responseFormat,
}) {
  if (note.isEmpty) {
    throw SdkUsageError(
        'note is required: the note text is the body of this request');
  }
  return client.sendPatchRequest(TasksUrls.taskNote,
      pathParams: {'task_code': taskCode, 'note_id': noteId},
      formData: {'note': note},
      files: files,
      raiseOnError: raiseOnError,
      responseFormat: responseFormat);
}