v56

latestOpenAPI 3.0.0raw.githubusercontent.com2026-08-014121451.1 MB
Task Management

Upload attachment to task item

Upload a file attachment for a task item with proper S3 path structure: org_{orgId}/attachments/task-item/{entityType}/{entityId}/files.

post/v1/task-management/attachments

Request body

fileNamestring required

Name of the file

fileTypestring required

MIME type of the file

fileDatastring required

Base64 encoded file data

entityType'vendor' | 'risk' required

Type of entity this task item belongs to (vendor or risk)

entityIdstring required

ID of the entity this task item belongs to

Example request

{
  "fileName": "document.pdf",
  "fileType": "application/pdf",
  "fileData": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8/5+hHgAHggJ/PchI7wAAAABJRU5ErkJggg==",
  "entityType": "vendor",
  "entityId": "vnd_abc123def456"
}

Response

Attachment uploaded successfully

idstring required

Unique identifier for the attachment

namestring required

Original filename

typestring required

File type/MIME type

sizenumber required

File size in bytes

downloadUrlstring required

Signed URL for downloading the file (temporary)

createdAtstring date-time required

Upload timestamp

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"
}