Skip to main content
DELETE
/
applications
/
attachments
/
{id}
Delete attachment
curl --request DELETE \
  --url https://api.incentives.leap.energy/alpha/applications/attachments/{id} \
  --header 'x-api-key: <api-key>'
{
  "ok": true,
  "message": "Attachment deleted successfully"
}

Overview

Delete an attachment from storage and remove the database record.
This operation is permanent and cannot be undone. The file will be deleted from storage and the database record will be removed.
For more information, see the Attachments Workflow section in the API Guide.

Authorizations

x-api-key
string
header
required

API key for authentication. Include your Leap API key in the x-api-key header: x-api-key: leap_live_...

Path Parameters

id
integer
required

Attachment ID to delete

Query Parameters

application_id
integer

Application ID that the attachment belongs to.

Response

Successfully deleted attachment

ok
boolean
Example:

true

message
string
Example:

"Attachment deleted successfully"