Box Developer Documentation
 

    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
    curl -i -X POST "https://api.box.com/2.0/task_assignments" \
         -H "authorization: Bearer <ACCESS_TOKEN>" \
         -H "content-type: application/json" \
         -d '{
           "task": {
             "id": "11446498",
             "type": "task"
           },
           "assign_to": {
             "id": "4823213"
           }
         }'

    Notifications

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

    Permissions

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