GuidesTasksAssigning tasksChange an assignment's message
Edit this page

Change an assignment's message

Change an assignment's message

To update a task assignment's message call the PUT /tasks/:task_id/assignments API, and include the new message for the task assignment.

.NET
var requestParams = new BoxTaskAssignmentUpdateRequest()
{
    Id = "12345",
    Message = "Updated message"
};
BoxTaskAssignment updatedAssignment = await client.TasksManager.UpdateTaskAssignmentAsync(requestParams);
Java
String assignmentID = "12345";
BoxTaskAssignment taskAssignment = new BoxTaskAssignment(api, assignmentID);
BoxTaskAssignment.Info info = taskAssignment.getInfo();
info.addPendingChange("message", "Please review the meeting notes");
taskAssignment.updateInfo(info);
Python
updated_task = {'message': 'new message'}
updated_assignment = client.task_assignment(assignment_id='12345').update_info(updated_task)
print('Assignment ID is {0} and message is {1}'.format(updated_assignment.id, updated_task.message))
Node
// Update the task assignment message
client.tasks.updateAssignment(
	'12345',
	{
		message: 'This needs some more changes'
	})
	.then(assignment => {
		// ...
	});