Box Developer Documentation
Latest version

Unassign task

delete
https://api.box.com/2.0
/task_assignments/:task_assignment_id

Deletes a specific task assignment.

Request

bearer [ACCESS_TOKEN]
application/json

Path Parameters

stringin pathrequired
12345

The ID of the task assignment.

Response

none

Returns an empty response when the task assignment was successfully deleted.

application/jsonClient error

Returns an error if the task assignment for the given ID does not exist or is inaccessible to your account.

application/jsonClient error

An unexpected client error.

delete
Unassign task
You can now try out some of our APIs live, right here in the documentation.
Log in

Request Example

cURL
curl -i -X DELETE "https://api.box.com/2.0/task_assignments/12345" \
     -H "authorization: Bearer <ACCESS_TOKEN>"
TypeScript Gen
await client.taskAssignments.deleteTaskAssignmentById(taskAssignment.id!);
Python Gen
client.task_assignments.delete_task_assignment_by_id(task_assignment.id)
.NET Gen
await client.TaskAssignments.DeleteTaskAssignmentByIdAsync(taskAssignmentId: NullableUtils.Unwrap(taskAssignment.Id));
Java
BoxTaskAssignment taskAssignment = new BoxTaskAssignment(api, "id");
taskAssignment.delete();
Python
client.task_assignment(assignment_id='12345').delete()
print('The task assignment was successfully delete!')
.NET
await client.TasksManager.DeleteTaskAssignmentAsync("12345");
Node
client.tasks.deleteAssignment('12345')
	.then(() => {
		// deletion succeeded — no value returned
	});