Attachments API
file:important.png Pre-Release Notice: The information contained on this page is not considered final and is managed under the terms and conditions found in the Pre-release Agreement. This page provides the most up-to-date reference information available for this pre-release version and is restricted for use by those who have signed the Pre-release Agreement with Genesys to acquire an early version of the software. |
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!