Skip to main content

Upload File

Uploads a file that can be attached to a ticket comment.

External Documentation

To learn more, visit the Zendesk documentation.

Parameters

ParameterDescription
File IdentifierThe identifier of the file. You can create a file identifier using the Set File Variable action.
File NameSpecifies what the file will be named when attached to the ticket comment.For example: user_crash.log.
TokenA token that's used for adding multiple files to the same upload. The token is valid for 3 days.For further information, please refer to Zendesk Documentation.

Example Output

{
"upload": {
"attachment": {
"content_type": "image/png",
"content_url": "https://company.zendesk.com/attachments/token/tyBq1ms40dFaHefSIigxZpwGg/?name=crash.png",
"deleted": false,
"file_name": "crash.png",
"height": "62",
"id": 1503729607981,
"inline": false,
"mapped_content_url": "https://company.zendesk.com/attachments/token/tyBq1ms40dFaHefSIigxZpwGg/?name=crash.png",
"size": 5172,
"thumbnails": [],
"url": "https://company.zendesk.com/api/v2/attachments/1503729607981.json",
"width": "80"
},
"attachments": [
{
"content_type": "image/png",
"content_url": "https://company.zendesk.com/attachments/token/tyBq1ms40dFaHefSIigxZpwGg/?name=crash.png",
"deleted": false,
"file_name": "crash.png",
"height": "62",
"id": 1503729607981,
"inline": false,
"mapped_content_url": "https://company.zendesk.com/attachments/token/tyBq1ms40dFaHefSIigxZpwGg/?name=crash.png",
"size": 5172,
"thumbnails": [],
"url": "https://company.zendesk.com/api/v2/attachments/1503729607981.json",
"width": "80"
}
],
"token": "LXJdriewLBP8JrtzzkN7Ne4k6"
}
}

Workflow Library Example

Upload File with Zendesk and Send Results Via Email

Workflow LibraryPreview this Workflow on desktop