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>'
This response has no body data.

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.
Response Code: This endpoint returns 204 No Content on successful deletion (no response body).
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