Skip to main content

projects/{pid}/workflows/{did}/attachments/{locale}/file (POST)

Use this to upload an attachment to a specific workflow.

URL

CODE
(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
Instructions/Readme.docx 

Or the equivalent:

CODE
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.

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
attachment.html
instructions/readme.docx
hello world.en.json

string, Mandatory

RESULTS

Returns detailed information about the uploaded file. Example:

CODE
{
    "name": "attachment.html",
    "folder": false,
    "date": "2024-03-28T09:41:03.0291708Z",
    "size": 4368
}

 

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.