Skip to main content
POST
Allocate tasks in bulk

Request Structure

Key Fields

Behavior

  • Allocates all specified tasks to the given (or current) user
  • Sets status to ALLOCATED and records assigned_at for each task
  • Returns 204 No Content on success
  • Returns 422 if any task cannot be allocated

Authorizations

Authorization
string
header
required

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

FlowAuthorization Code
Authorization URL
https://clarus-api.com/oauth/authorize
Token URL
https://clarus-api.com/oauth/token
FlowClient Credentials
Token URL
https://clarus-api.com/oauth/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 allocate

user_id
integer | null

User ID to allocate tasks to. Defaults to the current authenticated user if omitted

Response

Operation completed successfully with no content to return