Assign a task to a user

Assign a task to a user

To assign a task to a user you will need to provide the POST /task_assignments API with the id of the task and the user's details. For the user an application can either use the user id or the user's login email, which Box refers to as their login.

curl -i -X POST "" \
     -H "Authorization: Bearer <ACCESS_TOKEN>" \
     -H "Content-Type: application/json" \
     -d '{
       "task": {
         "id": "11446498",
         "type": "task"
       "assign_to": {
         "id": "4823213"
BoxUser user = new BoxUser(api, "user-id")
BoxTask task = new BoxTask(api, "id");
user = client.user(user_id='11111')
assignment = client.task(task_id='12345').assign(user)
print('Assignment ID is {0} and is assigned to user {1}'.format(,


When creating a task an email notification is sent to the user who the task is assigned to.


Both the user assigning the task and the user the task is being assigned to needs to be a collaborator on the file.