Remove Attachments
This request removes communication attachments from the server.
Send the communication attachment info to give up the communication attachment types that need to be removed in the specified period
When the attachments are removed the used space needs to be released (not needed for temporarily recordings), use the call shrink attachments to do this (only Postgres).
WARNING, this call can take a lot of time when a big amount of attachments is removed.
Resource
POST /attachments/remove
Parameters
None
Payload
Response
Context
Authorization |
Administrator |
Errors
Example
Request
POST https://xelion.nl/api/v1/master/attachments/remove
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 15:10:02",
"timeStampEnd": "2019-03-05 15:10:02",
"file": "",
"status": "SUCCESS",
"action": "delete",
"log": {
"content": "Removing 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": "1813134",
"objectType": "Comment"
},
"permissions": "ReadWriteRemove",
"commonName": "2019-03-05 16:10:02",
"oid": "1813127",
"objectType": "XCCAttachmentLog"
},
"links": [
{
"rel": "self",
"href": "http://xelion.nl/api/v1/master/attachments/remove",
"method": "GET"
}
]
}