API / Reference / Attachments
Delete attachment
DELETE
https://api.light.inc/v1/attachments/{attachmentId}
Deletes a specific attachment and its associated file
The stored file is not deleted. Despite the description, this removes only the attachment record; the uploaded object stays in storage. Deleting is refused with ATTACHMENT_CANNOT_BE_DELETED_FOR_POSTED_DOCUMENT when the resource is an accounting document that has been posted. Any principal in the company may delete, not only the uploader. Success is 204 with no body.
Authorization
Send one of these on every request. See Authentication for how to get credentials.
- API key
Basic authentication header of the form Basic <api_key>, where <api_key> is your api key.
- Bearer token
Path parameters
-
attachmentIdstring · uuidrequired
Response
This endpoint returns no content.