Side Conversation Attachment

File attachments can be included on a side conversation.

JSON Format

Side Conversation Attachments are represented as JSON objects with the following properties:

Name Type Read-only Mandatory Description
content_type string true false The content type of the attachment
height integer true false The height of the attachment image
id string true false The ID of the side conversation attachment
name string false false The name of the attachment
size integer true false The size of the attachment
width integer true false The width of the attachment image

Example

{  "content_type": "image/png",  "height": 214,  "id": "s3-d2a3111e-26d9-4e1c-88b4-cf7c0649d81d",  "name": "image.png",  "size": 50645,  "width": 406}

Create Side Conversation Attachments

  • POST /api/v2/tickets/side_conversations/attachments

Creates a new side conversation attachment.

Allowed For

  • Agents

Request Body

Takes a file object as multipart/form-data for the uploaded attachment.

Using curl

curl https://{subdomain}.zendesk.com/api/v2/tickets/side_conversations/attachments.json \  -F 'file=' \  -H "Content-Type: multipart/form-data" -v -u {email_address}:{password} -X POST

Example Response

Status 201 Created
{  "content_type": "image/png",  "height": 214,  "id": "s3-d2a3111e-26d9-4e1c-88b4-cf7c0649d81d",  "name": "image.png",  "size": 50645,  "width": 406}