Database Attachments
Delete an attachment
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
Download an attachment GET
Returns the attachment metadata, including the `download_link` of the file.
Get an upload URL for a new attachment POST
Returns a presigned PostObject form for uploading a file to the object storage (currently Alibaba Cloud OSS). POST every `form_data` field plus the file — the file must be the **last** field — to `action`. Form field keys are limited to 8 KB and values to 2 MB.