Upload an attachment to a workflow.
URL
(POST) /api/projects/{pid}/workflows/{did}/attachments/{locale}/file
PARAMETERS
The URL parameters are:
pid | The project ID | int, Mandatory |
did | The document ID | int, Mandatory |
locale | Source or target language code | string, Mandatory |
filename | The file to download. Include any folders. Example: Instructions/Readme.docx Or the equivalent: Instructions\\Readme.docx | string, Mandatory |
The body must be a JSON object with these properties:
token | First use API media/upload to upload a file to the system. The method returns the token to be included here. | string, Mandatory |
name | Set the file name including folders. Examples: attachment.html instructions/readme.docx hello world.en.json | string, Mandatory |
RESULTS
Returns detailed information about the uploaded file. Example:
{ "name": "attachment.html", "folder": false, "date": "2024-03-28T09:41:03.0291708Z", "size": 4368 }