Skip to navigation

Batch replace attachments

Replace the attachments on many Records in one request. Each Record's attachments are overwritten with the files supplied for it, reusing files whose name and checksum already match and removing the rest.

Authentication

AuthorizationBearer

Authenticate every request with Authorization: Bearer <api-key>. Manage keys in Settings > Security.

Request

This endpoint expects a multipart form with multiple files.
filesfilesRequired
itemsstringRequired

Response

Accepted
successfulIdsmap from strings to stringsOptional
failedlist of objectsOptional
successCountinteger or stringOptional
failureCountinteger or stringOptional

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
422
Unprocessable Entity Error
500
Internal Server Error