Box Java SDK v4.15.1 released
v4.15.1
Box Dotnet SDK Generated v1.8.0 released
v1.8.0
Box TypeScript SDK Generated v1.13.0 released
v1.13.0
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.
POST /task_assignments
id
login
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" } }'
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.