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
]
}
'import requests
url = "https://clarus-api.com/api/tasks/unallocate"
payload = { "ids": [1, 2, 3] }
headers = {
"Authorization": "Bearer <token>",
"X-Clarus-Subdomain": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {
Authorization: 'Bearer <token>',
'X-Clarus-Subdomain': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({ids: [1, 2, 3]})
};
fetch('https://clarus-api.com/api/tasks/unallocate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"error": "<string>"
}{
"errors": [
{
"code": 123,
"symbol": "<string>",
"details": "<string>",
"source": "<string>",
"context": {}
}
]
}Tasks
Unallocate tasks in bulk
Remove user allocation from multiple tasks in a single request. Sets each task’s status back to AVAILABLE and clears user assignment fields.
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
]
}
'import requests
url = "https://clarus-api.com/api/tasks/unallocate"
payload = { "ids": [1, 2, 3] }
headers = {
"Authorization": "Bearer <token>",
"X-Clarus-Subdomain": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {
Authorization: 'Bearer <token>',
'X-Clarus-Subdomain': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({ids: [1, 2, 3]})
};
fetch('https://clarus-api.com/api/tasks/unallocate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"error": "<string>"
}{
"errors": [
{
"code": 123,
"symbol": "<string>",
"details": "<string>",
"source": "<string>",
"context": {}
}
]
}Request Structure
{
"ids": [1, 2, 3]
}
Key Fields
| Field | Required | Description |
|---|---|---|
ids | Yes | Array 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
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
The subdomain/tenant name identifying which tenant's data to access. Required for all API requests.
Body
application/json
Array of task IDs to unallocate
Response
Operation completed successfully with no content to return

