Upload a file

POST /api/v1/projects/{projectID}/files

Adds a document to the project and makes one job per target language. The format is detected from the file. The maximum size is 50 MB. A completed project accepts no new files (409). A draft published while the file uploads is also a 409: upload the file again.

Who may call it

owner, admin, project_manager

Parameters

NameInRequiredDescription
projectIDpathyes

Responses

201

The stored file.

400

The request is wrong; message says what to fix.

401

The access key is missing, expired or revoked.

403

Your role may not call this endpoint, or the key is read only (read_only_key).

404

The item does not exist in your organization.

409

The item changed since you read it, or its state does not allow the action.

429

Too many requests for this key (rate_limited). Wait for the seconds in Retry-After.