Update the configuration settings
To configure Content Hub, you must either be a superuser or have the necessary permissions granted to you through user group policies.
The upload configuration settings give you the ability to determine how an upload is done and what it affects.
Change the upload URL lifetime
To change the upload URL lifetime:
-
On the menu bar, click Manage
and, on the Manage page, click Entities. -
On the Entities page, in the left pane, search for and click M.UploadConfiguration.
-
In the right pane, next to AssetUploadConfiguration, click Details.
-
On the Entity details page, on the System tab, click Edit
. -
In the ConfigurationSettings field, from the drop-down list, click Text.
-
Add or edit the
upload_url_lifetime_in_minutesparameter. This sets the lifetime of the upload URL in minutes. Its value is an integer between1and1440. The default is10.
Define the upload configuration
To define the upload configuration:
-
On the menu bar, click Manage
and, on the Manage page, click Entities. -
On the Entities page, in the left pane, search for and click M.UploadConfiguration.
-
In the right pane, next to AssetUploadConfiguration, click Details.
-
On the Entity details page, on the System tab, click Edit
. -
In the ConfigurationSettings field, from the drop-down list, click Text.
-
Modify upload configuration settings as required.
Modify entity relations in the upload configuration
An asset upload can directly link the asset to another entity upon creation. This is useful, for example, when uploading an asset for a product. To do this, modify the ConfigurationSettings.entityConfiguration.relations object in M.UploadConfiguration (for example, AssetUploadConfiguration):
This example sets a default value for the relation that a user cannot overwrite using the API:
This example customizes the relation name:
In this example, the payload uses a customized name:
To modify entity relations in the upload configuration:
-
On the menu bar, click Manage
and, on the Manage page, click Entities. -
On the Entities page, in the left pane, search for and click M.UploadConfiguration.
-
In the right pane, next to AssetUploadConfiguration, click Details.
-
On the Entity details page, on the System tab, click Edit
. -
In the ConfigurationSettings field, from the drop-down list, click Text.
-
Modify relations as required.