Mark several task evidence files as reviewed
curl --request PUT \
--url https://api.trycomp.ai/v1/tasks/{taskId}/attachments/review \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"attachmentIds": [
"att_abc123def456",
"att_def456ghi789"
]
}
'const options = {
method: 'PUT',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({attachmentIds: ['att_abc123def456', 'att_def456ghi789']})
};
fetch('https://api.trycomp.ai/v1/tasks/{taskId}/attachments/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/{taskId}/attachments/review"
payload = { "attachmentIds": ["att_abc123def456", "att_def456ghi789"] }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text){
"markedCount": 12
}Tasks
Mark several task evidence files as reviewed | Comp AI API
Marks the listed evidence files on the task as reviewed. Pass only files you checked; files already marked keep their first reviewer. Needs a session or a.
PUT
/
v1
/
tasks
/
{taskId}
/
attachments
/
review
Mark several task evidence files as reviewed
curl --request PUT \
--url https://api.trycomp.ai/v1/tasks/{taskId}/attachments/review \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"attachmentIds": [
"att_abc123def456",
"att_def456ghi789"
]
}
'const options = {
method: 'PUT',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({attachmentIds: ['att_abc123def456', 'att_def456ghi789']})
};
fetch('https://api.trycomp.ai/v1/tasks/{taskId}/attachments/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/{taskId}/attachments/review"
payload = { "attachmentIds": ["att_abc123def456", "att_def456ghi789"] }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text){
"markedCount": 12
}Authorizations
API key for authentication
Path Parameters
Unique task identifier
Example:
"tsk_abc123def456"
Body
application/json
IDs of the task's evidence files the reviewer checked (1-5000). Only these files are marked: a file added since they were listed stays awaiting review.
Required array length:
1 - 5000 elementsMaximum string length:
64Example:
["att_abc123def456", "att_def456ghi789"]
Response
200 - application/json
How many of the listed files were marked by this request. Files already marked keep their first reviewer and are not counted, nor are IDs that are not evidence on this task.
Example:
12
Was this page helpful?

