Upload API (v2.0)
Use the Upload API to upload files to Content Hub. Uploads are completed in three steps:
Generate an upload URL that returns metadata about the upload session. Provide the following information:
Configuration settings to use for the upload - an entity that hosts a predefined configuration, which specifies supported file extensions, the permitted file size, the default asset lifecycle for asset creation, and so on.
Purpose of the newly uploaded file - create a new asset, use the uploaded file as a new master file for an existing asset, or use the file as an alternate file for an existing asset.
Upload the file to the generated upload URL.
Complete the upload by providing the metadata about the session that was generated in step 1.
For more information about the Upload API, see the developer documentation where you'll find examples and details on how to upload large files. To find out more about processing job prioritization, see the media processing documentation.
To use the Upload API, you need:
- The URL of your Content Hub server. You can get this from your Content Hub Administrator. Enter this URL in the {{server}} variable by hovering your mouse over the variable in the Try it pane and then clicking Edit.
- An access token and the client ID. Both are sent with every request. You can create a token through the Content Hub interface or by requesting one using the API itself.