removeFormRecordAttachment
DELETE
/api/v1/data-sources/{id}/records/{recordId}/attachments/{attachmentId}
const url = 'https://example.com/api/v1/data-sources/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/records/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/attachments/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0?version=1';const options = {method: 'DELETE'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url 'https://example.com/api/v1/data-sources/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/records/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/attachments/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0?version=1'Unbinds an attachment, clears the field value it backed, and soft-deletes the underlying asset. Uses optimistic concurrency — the record’s current version is required as a query parameter and a mismatch returns 409. Authorization matches record editing. Returns the updated record detail.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters”attachmentId
required
string format: uuid
id
required
string format: uuid
recordId
required
string format: uuid
Query Parameters
Section titled “Query Parameters”version
required
integer
The record’s current version
Responses
Section titled “ Responses ”Updated record detail after removal
Attachment or record not found or not visible to the caller
Record version conflict