Attaches a file to a task or to one of its comments.
- Changes data: yes
- Who can use it: Any member of the brand.
What it is for
- Attach a file to a task or a comment. See Tasks and Digital Workers.
Example prompts
- “Attach a CSV with these rates to the task ‘Demo: Call the consignee’.”
Good to know
- Up to 25 MB per file.
Reference
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
task_id | string | yes | The task. |
file_name | string | yes | The file name. |
mime_type | string | yes | The file type. |
content_base64 | string | yes | The file, base64-encoded. |
comment_id | string | no | Attaches the file to this comment. |
Returns
id, file_name, mime_type, size and url.
Errors
Disallowed mime type […].Allowed: PNG, JPEG, GIF, WebP, PDF, Word (.docx), Excel (.xlsx), CSV, text and Markdown, with the type written exactly, lowercase and without parameters, for exampletext/plain.- “File exceeds the size limit.”
- “Comment not found on this task.”
- “Task not found.”
- “content_base64 is not valid base64.”