Attachments API
A Web Services attachment is the same as an e-mail attachment. In PSDK terms, an attachment is simply a document. Attachments are associated with one Interaction, while one Interaction can own many Attachments.
Important
These operations are not for AJAX, but should be performed as regular HTTP requests.Operations
The following operations are supported on /me/interactions/{id}/attachments:
HTTP Operation | Description | Output | Permissions |
---|---|---|---|
POST | Creates a new Attachment and associates it with an Interaction. Note: The file should be bound to the 'attachment' variable. | {"statusCode":0,"documentId":"00009a8T8Y13002S"} | Agent |
The following operations are supported on /me/interactions/{id}/attachments/{attachmentId}:
HTTP Operation | Description | Output | Permissions |
---|---|---|---|
GET | Returns an Attachment, given an attachmentId (documentId). | Output will be byte content of the attachment, with MimeType set accordingly | Agent |
DELETE | Deletes an Attachment, given an attachmentId (documentId). | {"statusCode":0} | Agent |
This page was last edited on October 31, 2023, at 13:26.
Comments or questions about this documentation? Contact us for support!