createTaskNote function
POST /api/{api_version}/tasks/{task_code}/notes
No typed view: no 2xx response was recorded for it. Read response.map.
Sent as a form, the text as the note field, and as multipart with any
files beside it: the endpoint reads no JSON body.
Implementation
Future<ApiResponse<Object?>> createTaskNote(
ExsitedClient client,
Object taskId,
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.sendPostRequest(TasksUrls.taskNotes,
pathParams: {'task_code': taskId},
formData: {'note': note},
files: files,
raiseOnError: raiseOnError,
responseFormat: responseFormat);
}