Skip to main content
DELETE
Detach File
Removes the file_attachments row without deleting the file itself. Idempotent — succeeds even if no matching link exists. entity_type is the same free-form value used when attaching (in practice one of deal, account, contact, task, or project).

Auth

Requires a CRM manage scope and an active organization on the token. Any *:manage scope qualifies — in practice contacts:manage, deals:manage, companies:manage, or activities:manage.

Response

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

file_id
string
required

UUID of the file to detach.

Query Parameters

entity_type
string
required

CRM entity kind of the link to remove, e.g. deal, account, contact, task, or project.

entity_id
string
required

UUID of the entity to unlink the file from.

Response

Successful Response

{key}
boolean