projects/{pid}/workflows/{did}/attachments/{locale}/file (POST)
Use this to upload an attachment to a specific 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:
CODE
Or the equivalent:
CODE
| 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. If you need to upload multiple files to get multiple tokens, use the multi-upload: media/upload/multi | string, Mandatory |
name | Set the file name including folders. Examples:
CODE
| 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
}