Tasks
Upload task evidence
Changed onUpload an evidence attachment to a task so auditors and reviewers can trace completion back to source documentation.
post/v1/tasks/{taskId}/attachments
Request
- Base URLhttps://api.trycomp.ai
- AuthAPI key in header X-API-Key
Path parameters
taskIdstring required
Example:tsk_abc123def456
Unique task identifier
Request body
Example request
{
"fileName": "document.pdf",
"fileType": "application/pdf",
"fileData": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8/5+hHgAHggJ/PchI7wAAAABJRU5ErkJggg==",
"s3Key": "org_abc123/uploads/attachment/1700000000000-rbac-matrix.xlsx",
"description": "Meeting notes from Q4 planning session",
"userId": "usr_abc123def456"
}Response
Attachment uploaded successfully
Example response
{
"id": "att_abc123def456",
"name": "document.pdf",
"type": "application/pdf",
"size": 1024000,
"downloadUrl": "https://bucket.s3.amazonaws.com/path/to/file.pdf?signature=...",
"createdAt": "2024-01-15T10:30:00Z"
}Changes
- info
added the new optional request property
- info
the request property
became optional
- info
- breaking
the request property
became required - warning
removed the request property
- breaking