Database Attachments

Delete an attachment

DELETE
/api/records/{country}/{key}/files/{file_id}

Authorization

bearerAuth
AuthorizationBearer <token>

Access token from POST /oauth2/token (valid for 300 seconds).

In: header

Path Parameters

country*string

Lowercase ISO country code where the record is stored. One REST API instance serves one country (for https://se-restapi-mt-01.api.incountry.io it is se).

key*string

Record key (record_key) of the record.

file_id*string

Identifier of the attachment.

Response Body

curl -X DELETE "https://example.com/api/records/se/d1c2e12cfeababc8b95daf6902e210b1/files/5416a334-6ce6-4e3b-9a0d-464cb417c094"
Empty