Upload file to Wiki page
wiki_attachments_uploadUpload a small file and attach it to a specified wiki page in one call. Provide the page ID, file name, and base64-encoded bytes to attach the file.
Instructions
Upload one small file and attach it to a wiki page in a single call.
Runs the whole pipeline end to end: opens an upload session sized to data, PUTs the
bytes as a single part, finishes the session, and attaches it to the page. Small-file
path — for large files drive uploadsessions_create / uploadsessions_parts_upload
(chunked) / uploadsessions_finish + attachments_attach yourself. Returns the
newly-attached files.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | The file's bytes, base64-encoded. | |
| page_id | Yes | Numeric id of the page to attach the file to. | |
| file_name | Yes | Name to give the uploaded file. |