delete
https://connect.digits.com/v1/document//associations
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.