Delete document attachment
delete_document_attachmentRemove the attachment from an issued or received document without modifying the document itself. This action is irreversible.
Instructions
Remove the attachment from an issued or received document (the document itself is untouched). Irreversible. Note: the FIC API has been observed returning 500 on this endpoint; deleting the document or replacing the attachment via update (new attachment_token) are alternatives.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | Yes | "issued" for issued documents (invoices...), "received" for received documents (expenses...). | |
| company_id | No | Fatture in Cloud company ID. Omit to use the default company configured for the session; discover IDs with list_companies. | |
| document_id | Yes | The ID of the document. |