Create Upload Link
create_upload_linkCreate a time-limited browser link for adding one or more files to a Docmost page without using tokens. Share it so others can drop, order, and insert files directly into the page.
Instructions
Make a link for adding files to a page, and the best way to upload: it costs no tokens. Give the link to the person: they open it in a browser, drop in one or more files, put them in order and press Done, and the files appear in the page. If you can run commands with network access, send files you have yourself with the curl command in the result instead of upload_attachment. The link works for 60 minutes and takes files of up to 50 MB in total; files not added by then are deleted. Anyone with the link can add files to the page until then. Check the outcome with get_upload_status.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | Yes | Page id, slug id or Docmost page URL. | |
| after_text | No | Put the files right after the paragraph or block containing this text. | |
| after_heading | No | Put the files at the end of the section under this heading (its text). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||