Skip to main content
POST
/
v1
/
tasks
/
{id}
/
assignees
Assign user to task
curl --request POST \
  --url https://api.shingleai.com/v1/tasks/{id}/assignees \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "userId": "123e4567-e89b-12d3-a456-426614174000"
}
'
{
  "data": {
    "id": "550e8400-e29b-41d4-a716-446655440001",
    "createdAt": "2024-01-15T10:30:00Z",
    "updatedAt": "2024-01-15T10:30:00Z",
    "deletedAt": null,
    "organizationId": "123e4567-e89b-12d3-a456-426614174000",
    "taskId": "550e8400-e29b-41d4-a716-446655440000",
    "userId": "123e4567-e89b-12d3-a456-426614174000"
  },
  "meta": {
    "pagination": {
      "limit": 123,
      "offset": 123,
      "hasMore": true,
      "total": 123
    }
  }
}

Authorizations

Authorization
string
header
required

API key authentication via Bearer token

Path Parameters

id
string<uuid>
required

Task UUID

Example:

"123e4567-e89b-12d3-a456-426614174000"

Body

application/json
userId
string<uuid>
required

The UUID of the user to assign to the task

Example:

"123e4567-e89b-12d3-a456-426614174000"

Response

User assigned to task successfully

data
object
required
meta
object