Salesly API
API Reference

Detach a document from an opportunity

Removes the link only. The document and the stored file are preserved.

DELETE
/opportunities/{id}/documents/{document}

Authorization

x-api-key<token>

Your tenant API key

In: header

Path Parameters

id
Required
integer
document
Required
integer

Numeric document ID

curl -X DELETE "https://rest.salesly.app/api/v1/developers/opportunities/0/documents/0" \
  -H "x-api-key: <token>"

Document detached

{
  "detached": true
}