Create Article Attachment
create_article_attachmentUpload a file to a Zendesk Help Center article and retrieve its attachment ID, name, type, size, and URL. Use this tool to attach assets like images or PDFs to knowledge base articles.
Instructions
Upload a file to a Help Center article and return the created attachment (its id, file name, content type, size and content URL). Not idempotent: calling it again uploads another copy rather than replacing the previous one. This is for article assets — for files on support tickets use get_ticket_attachments, and to see an article's existing attachments use list_article_attachments.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_name | Yes | Name to store the file under, including its extension (e.g. "screenshot.png"); used as the download name. | |
| article_id | Yes | Article ID — the numeric id of the Help Center article. Obtain it from list_articles or search_articles. | |
| file_base64 | Yes | The file's raw bytes as a base64-encoded string; the server decodes them before upload. | |
| content_type | No | MIME type of the file, e.g. "image/png" or "application/pdf". Defaults to application/octet-stream when omitted. | application/octet-stream |