DELETE
/
v1
/
tasks
/
{taskId}
/
attachments
/
{attachmentId}
Delete task attachment
curl --request DELETE \
  --url https://api.trycomp.ai/v1/tasks/{taskId}/attachments/{attachmentId} \
  --header 'X-API-Key: <api-key>'
{
  "success": true,
  "deletedAttachmentId": "att_abc123def456",
  "message": "Attachment deleted successfully"
}

Authorizations

X-API-Key
string
header
required

API key for authentication

Headers

X-Organization-Id
string

Organization ID (required for session auth, optional for API key auth)

Path Parameters

taskId
string
required

Unique task identifier

Example:

"tsk_abc123def456"

attachmentId
string
required

Unique attachment identifier

Example:

"att_abc123def456"

Response

Attachment deleted successfully

success
boolean
Example:

true

deletedAttachmentId
string
Example:

"att_abc123def456"

message
string
Example:

"Attachment deleted successfully"