Upload attachment
Upload a local file and get a token; pass the token to Create ticket or Add comment to attach the file.
Command in the Zendesk toolkit · id ooa.zendesk/upload_attachment · 7 inputs (2 required), 2 outputs
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Site | String | Yes | Your Zendesk address, e.g. https://acme.zendesk.com, or just the subdomain acme. | |
| String | No | Email of the agent the API token belongs to. Leave empty when using an OAuth token. | ||
| API token | Credential | No | Zendesk API token from the vault (used with email). | |
| OAuth token | Credential | No | OAuth access token from the vault, instead of email and API token. Or leave it empty and choose a connection that signs in, which gets and renews the token. | |
| Path | File | Yes | Local file to upload. | |
| Add to token | String | No | Token of an earlier upload, to group several files under one token. | |
| File name | String | No | Name to give the attachment; the local file name when empty. |
Outputs
| Output | Type | What it is |
|---|---|---|
| token | String | Upload token to pass in upload_tokens. |
| attachment_id | Number | Id of the stored file. |