Skip to main content

Delete an attachment

Request​

Method: DELETE
Path: /api/attachments/{guid}

Authentication: Not required

Parameters​

NameTypeInRequiredDescription
guidstringpathYes
undefinedstringundefinedNo

Responses​

200 - Deleted​

404 - Attachment not found​

Examples​

cURL​

curl -X DELETE \
-H "Content-Type: application/json" \
http://localhost:3000/api/attachments/{guid}

JavaScript​

const response = await fetch('http://localhost:3000/api/attachments/{guid}', {
method: 'DELETE',
headers: {
'Content-Type': 'application/json',
},
});

const data = await response.json();
console.log(data);

This documentation is automatically generated from the OpenAPI specification.