Update status for multiple tasks
curl --request PATCH \
--url https://api.trycomp.ai/v1/tasks/bulk \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"taskIds": [
"tsk_abc123",
"tsk_def456"
],
"status": "in_progress"
}
'const options = {
method: 'PATCH',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({taskIds: ['tsk_abc123', 'tsk_def456'], status: 'in_progress'})
};
fetch('https://api.trycomp.ai/v1/tasks/bulk', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trycomp.ai/v1/tasks/bulk"
payload = {
"taskIds": ["tsk_abc123", "tsk_def456"],
"status": "in_progress"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"updatedCount": 2
}Tasks
Update status for multiple tasks | Comp AI API
Update status for multiple tasks in Comp AI. Manage compliance task lifecycle, assignments, review approvals, evidence uploads, policy links, and activity.
PATCH
/
v1
/
tasks
/
bulk
Update status for multiple tasks
curl --request PATCH \
--url https://api.trycomp.ai/v1/tasks/bulk \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"taskIds": [
"tsk_abc123",
"tsk_def456"
],
"status": "in_progress"
}
'const options = {
method: 'PATCH',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({taskIds: ['tsk_abc123', 'tsk_def456'], status: 'in_progress'})
};
fetch('https://api.trycomp.ai/v1/tasks/bulk', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trycomp.ai/v1/tasks/bulk"
payload = {
"taskIds": ["tsk_abc123", "tsk_def456"],
"status": "in_progress"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"updatedCount": 2
}Authorizations
API key for authentication
Body
application/json
Example:
["tsk_abc123", "tsk_def456"]
Available options:
todo, in_progress, in_review, done, not_relevant, failed Example:
"in_progress"
Optional review date to set on all tasks
Example:
"2025-01-01T00:00:00.000Z"
Required justification when marking evidence tasks as not_relevant
Example:
"This control is out of scope for our SOC 2 audit."
Response
Tasks updated successfully
Example:
2
Was this page helpful?

