Skip to main content
POST
/
api
/
taskmanager
/
v1
/
task
/
updateAssignee
/
{taskId}
Update task assignee
curl --request POST \
  --url https://app.thareja.ai/api/taskmanager/v1/task/updateAssignee/{taskId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "assignee": 5,
  "comment": "This task is high priority. Please review by EOD."
}
'
{
  "error": 400,
  "message": "Invalid request parameters"
}

Overview

Update the assignee of a specific task. This endpoint allows you to reassign tasks to different team members or unassign tasks.

Path Parameters

taskId
integer
required
The unique identifier of the task to update the assignee for.Example: 456

Request Body

assignee
integer
required
User ID of the person to assign this task to. Set to null to unassign the task.Example: 5
comment
string
Optional comment to include in the assignment notification.Example: "This task is high priority. Please review by EOD."

Response

id
integer
The unique identifier of the task.
task_name
string
The name of the task.
project_id
integer
The ID of the project this task belongs to.
assignee
integer
User ID of the person now assigned to this task.
updated_at
string
The timestamp when the assignee was updated (ISO 8601 format).

Example Request

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

taskId
integer<int64>
required

The unique identifier of the task

Example:

456

Body

application/json
assignee
integer<int64>
required

User ID of the person to assign this task to

Example:

5

comment
string

Optional comment about the assignment change

Example:

"This task is high priority. Please review by EOD."

Response

Update assignee response