Changes the assignee of a task to a specific user.

Note: The difference with the Claim Task method is that this method does not check if the task already has a user assigned to it.

Method

POST /task/{id}/assignee

Parameters

Path Parameters

Name Description
id The id of the task to set the assignee for.

Request Body

A JSON object with the following properties:

Name Description
userId The id of the user that will be the assignee of the task.

Result

This method returns no content.

Response Codes

Code Media type Description
204 Request successful.
500 application/json Task with given id does not exist or setting the assignee was not successful. See the Introduction for the error response format.

Example

Request

POST /task/anId/assignee

Request Body:

{"userId": "aUserId"}

Response

Status 204. No content.

On this Page: