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
}
}
}Assign a user to a 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
}
}
}API key authentication via Bearer token
Task UUID
"123e4567-e89b-12d3-a456-426614174000"
The UUID of the user to assign to the task
"123e4567-e89b-12d3-a456-426614174000"