Export Attachments
This request exports communication attachments to the file system into a ZIP file.
Send the communication attachment info to give up the communication attachment types that need to be exported in the specified period
WARNING, this call can take a lot of time when a big amount of attachments is exported.
Resource
POST /attachments/export
Parameters
None
Payload
Response
Context
Authorization |
Administrator |
Errors
Example
Request
POST https://xelion.nl/api/v1/master/attachments/export
Payload
{
"fromDate":"2018-11-01 16:30:31",
"untilDate":"2018-11-21 16:30:31",
"callRecordings":true,
"voicemails":true,
"chatAttachments":true,
"emailAttachments":true,
"tempRecordings":true,
}
Response
{
"object": {
"timeStamp": "2019-03-05 14:55:25",
"timeStampEnd": "2019-03-05 14:55:26",
"file": "/usr/xelion/tmp/attachments/export_2019-03-05.zip",
"status": "SUCCESS",
"action": "export",
"log": {
"content": "Exporting attachments from 2018-11-01 17:30:31 until 2018-11-21 17:30:31\n<br>types: call recordings, voicemails, chats, mails\n<br>\n<br>",
"oid": "1813113",
"objectType": "Comment"
},
"permissions": "ReadWriteRemove",
"commonName": "2019-03-05 15:55:25",
"oid": "1813106",
"objectType": "XCCAttachmentLog"
},
"links": [
{
"rel": "self",
"href": "http://xelion.nl/api/v1/master/attachments/export",
"method": "GET"
}
]
}