younifyd
Menu

Upload Files

Upload Files

POST/api/v2/uploads

Use it in a workflow

  1. Add a step and choose the Zendesk connector.
  2. Pick the Upload Files action (under Attachments).
  3. Fill in the fields below, then reference the result from later steps as {{uploadFiles.response.data}}.

Request

Query parameters

filenamestringrequired

The name to assign to the uploaded file

Response

Returns 201 with an object. Read it in later steps with {{uploadFiles.response.data.<field>}}.

uploadobject
attachmentobject

A file represented as an [Attachment](/api-reference/ticketing/tickets/ticket-attachments/) object

attachmentsarray<object>
tokenstring

Token for subsequent request

json
{
  "upload": {
    "attachment": {
      "content_type": "image/png",
      "content_url": "https://company.zendesk.com/attachments/my_funny_profile_pic.png",
      "file_name": "my_funny_profile_pic.png",
      "id": 928374,
      "size": 166144,
      "thumbnails": [
        {
          "content_type": "image/png",
          "content_url": "https://company.zendesk.com/attachments/my_funny_profile_pic_thumb.png",
          "file_name": "my_funny_profile_pic_thumb.png",
          "id": 928375,
          "size": 58298
        }
      ]
    },
    "attachments": [
      {
        "content_type": "image/png",
        "content_url": "https://company.zendesk.com/attachments/my_funny_profile_pic.png",
        "file_name": "my_funny_profile_pic.png",
        "id": 928374,
        "size": 166144,
        "thumbnails": [
          {
            "content_type": "image/png",
            "content_url": "https://company.zendesk.com/attachments/my_funny_profile_pic_thumb.png",
            "file_name": "my_funny_profile_pic_thumb.png",
            "id": 928375,
            "size": 58298
          }
        ]
      }
    ],
    "token": "string"
  }
}

Need more? See the Zendesk guide for connection setup and behaviour shared by every action.

Upload Files — Zendesk — Documentation