Detach File
Files
Detach a File from an Entity
Remove a file↔entity link without deleting the file.
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
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
UUID of the file to detach.
Query Parameters
CRM entity kind of the link to remove, e.g. deal, account, contact, task, or project.
UUID of the entity to unlink the file from.
Response
Successful Response