Upload a file to a resource. This endpoint supports two modes:
Replace the main resource file (no language parameter):
Uploads a new file to replace the existing resource file. The resource's url is updated to point to the new file. You can optionally update other resource fields (name, metadata, etc.) in the same request.
Upload a translated file (?language={lang}):
Uploads a file as a translation of this resource. The main resource file is unchanged. The translated file is stored on the translation record for the specified language. The uploaded file must have the same extension as the main resource file, and the language must be configured for the account (an unconfigured language returns 400).
Alongside the file you can set the translation's name (translated title) and locked (0/1, prevents auto-translation from overwriting this translation). These fields apply only when ?language= is set; on a base-file upload they are ignored.
Only document (type=1), image (type=2), and video (type=3) resources support file uploads. URL and dynamic resources will return 403.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
