Skip to main content
PATCH
/
api
/
tasks
/
unallocate
Unallocate tasks in bulk
curl --request PATCH \
  --url https://clarus-api.com/api/tasks/unallocate \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'X-Clarus-Subdomain: <api-key>' \
  --data '
{
  "ids": [
    1,
    2,
    3
  ]
}
'
{
  "error": "<string>"
}

Request Structure

{
  "ids": [1, 2, 3]
}

Key Fields

FieldRequiredDescription
idsYesArray of task IDs to unallocate

Behavior

  • Sets status to AVAILABLE for all specified tasks
  • Clears user assignment (user_id, assigned_at, start_at) for each task
  • Returns 204 No Content on success
  • Returns 422 if any task cannot be unallocated

Authorizations

Authorization
string
header
required

OAuth 2.0 authentication. Use the client credentials or authorization code flow to obtain an access token.

X-Clarus-Subdomain
string
header
required

The subdomain/tenant name identifying which tenant's data to access. Required for all API requests.

Body

application/json
ids
integer[]
required

Array of task IDs to unallocate

Response

Operation completed successfully with no content to return