Lists all of the assignments for a given task.
This operation is performed by calling function getTaskAssignments.
See the endpoint docs at API Reference.
try await client.taskAssignments.getTaskAssignments(taskId: task.id!)
- taskId
String- The ID of the task. Example: "12345"
- headers
GetTaskAssignmentsHeaders- Headers of getTaskAssignments method
This function returns a value of type TaskAssignments.
Returns a collection of task assignment defining what task on a file has been assigned to which users and by who.
Assigns a task to a user.
A task can be assigned to more than one user by creating multiple assignments.
This operation is performed by calling function createTaskAssignment.
See the endpoint docs at API Reference.
try await client.taskAssignments.createTaskAssignment(requestBody: CreateTaskAssignmentRequestBody(task: CreateTaskAssignmentRequestBodyTaskField(type: CreateTaskAssignmentRequestBodyTaskTypeField.task, id: task.id!), assignTo: CreateTaskAssignmentRequestBodyAssignToField(id: currentUser.id)))
- requestBody
CreateTaskAssignmentRequestBody- Request body of createTaskAssignment method
- headers
CreateTaskAssignmentHeaders- Headers of createTaskAssignment method
This function returns a value of type TaskAssignment.
Returns a new task assignment object.
Retrieves information about a task assignment.
This operation is performed by calling function getTaskAssignmentById.
See the endpoint docs at API Reference.
try await client.taskAssignments.getTaskAssignmentById(taskAssignmentId: taskAssignment.id!)
- taskAssignmentId
String- The ID of the task assignment. Example: "12345"
- headers
GetTaskAssignmentByIdHeaders- Headers of getTaskAssignmentById method
This function returns a value of type TaskAssignment.
Returns a task assignment, specifying who the task has been assigned to and by whom.
Updates a task assignment. This endpoint can be used to update the state of a task assigned to a user.
This operation is performed by calling function updateTaskAssignmentById.
See the endpoint docs at API Reference.
try await client.taskAssignments.updateTaskAssignmentById(taskAssignmentId: taskAssignment.id!, requestBody: UpdateTaskAssignmentByIdRequestBody(message: "updated message", resolutionState: UpdateTaskAssignmentByIdRequestBodyResolutionStateField.approved))
- taskAssignmentId
String- The ID of the task assignment. Example: "12345"
- requestBody
UpdateTaskAssignmentByIdRequestBody- Request body of updateTaskAssignmentById method
- headers
UpdateTaskAssignmentByIdHeaders- Headers of updateTaskAssignmentById method
This function returns a value of type TaskAssignment.
Returns the updated task assignment object.
Deletes a specific task assignment.
This operation is performed by calling function deleteTaskAssignmentById.
See the endpoint docs at API Reference.
try await client.taskAssignments.deleteTaskAssignmentById(taskAssignmentId: taskAssignment.id!)
- taskAssignmentId
String- The ID of the task assignment. Example: "12345"
- headers
DeleteTaskAssignmentByIdHeaders- Headers of deleteTaskAssignmentById method
This function returns a value of type ``.
Returns an empty response when the task assignment was successfully deleted.