Detach Document

Detach a document from a Digits object. Pass the object.kind and
object.id the document was attached with; an attachment of the same ID
under another kind is left in place. While the document stays visible,
detaching is idempotent: if the document is not attached to the object,
the document is returned unchanged.

A document attached only to comments, threads, portals or agent sessions
is not visible through the API. Detaching the last other object from such
a document hides it. Get, Attach and Detach then return 404 for it,
including a retried Detach, and List omits it.

Requires scope: documents:write.

Path Params
string
required

Document's Digits-assigned ID.

Query Params
string
enum

The kind of object.

Allowed:
string

Object's Digits-assigned ID.

string

Entity's Digits-assigned ID, obtained from entity discovery. Required unless
external_id is supplied or the token already identifies the entity.

string

Entity's caller-assigned ID in the authorizing organization's namespace.
Alternative to id for organization-level tokens; not a source or transaction ID.

Responses

Language
Credentials
Bearer
JWT
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json