Bulk submit tasks for review
curl --request POST \
--url https://api.trycomp.ai/v1/tasks/bulk/submit-for-review \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"taskIds": [
"tsk_abc123",
"tsk_def456"
],
"approverId": "mem_abc123"
}
'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({taskIds: ['tsk_abc123', 'tsk_def456'], approverId: 'mem_abc123'})
};
fetch('https://api.trycomp.ai/v1/tasks/bulk/submit-for-review', 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/submit-for-review"
payload = {
"taskIds": ["tsk_abc123", "tsk_def456"],
"approverId": "mem_abc123"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Tasks
Bulk submit tasks for review | Comp AI API
Bulk submit tasks for review in Comp AI. Manage compliance task lifecycle, assignments, review approvals, evidence uploads, policy links, and activity.
POST
/
v1
/
tasks
/
bulk
/
submit-for-review
Bulk submit tasks for review
curl --request POST \
--url https://api.trycomp.ai/v1/tasks/bulk/submit-for-review \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"taskIds": [
"tsk_abc123",
"tsk_def456"
],
"approverId": "mem_abc123"
}
'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({taskIds: ['tsk_abc123', 'tsk_def456'], approverId: 'mem_abc123'})
};
fetch('https://api.trycomp.ai/v1/tasks/bulk/submit-for-review', 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/submit-for-review"
payload = {
"taskIds": ["tsk_abc123", "tsk_def456"],
"approverId": "mem_abc123"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Was this page helpful?

