NOTE: Used only in Submission API. Represents an attachment.
Attributes (read-only):
Data ExamplesJSON
"attachment": { "id": "", "file_name": "",
XML
<attachment> <id></id> <file_name></ file_name> <file_size> </file_size> <download_url></ download_url></attachment> ActionsCreate AttachmentPOST /attachments Request (Content-type should be multipart/form-data)
{ "attachment": {
} } Response
HTTP/1.1 200 OK
{
"status": "OK",
"attachment": {
"id": "erfu2098fu2uer02fu0reu2290e8fr",
"file_name": " ",
}
} Example of request using curl utility curl -X POST -F attachment[media]=@/path/to/file -H "Accept: application/json" -H "X-ADILITY-API-KEY:YOUR_API_KEY" "http://testapi.adility.com/submission/beta/attachments" Delete AttachmentDELETE /attachments/:id JSON
Response
HTTP/1.1 200 OK
{
"status": "OK"
}
XML
Response
HTTP/1.1 200 OK
<?xml version="1.0" encoding="UTF-8"?>
<response>
<status>OK</status>
</response> |
8 API Reference > Resources >