Promotion endpoints allow you to push assets from staging to production environments in your Redox organization. This creates a promotion association between the two assets so that you can keep track of when production assets might be out of date. Currently, you can promote config modifiers.
Learn more about promotions. Or learn how to promote any of these assets in the Redox dashboard:
Promote asset
Promote one or more assets (e.g., config modifier, filter, translation set) from a staging environment to a production environment.
If a user edits the asset in staging later, a new version of it is created. That means you have to promote it to production again. You can use this same endpoint for promoting or re-promoting an individual asset or bulk promoting one or more asset types.
cURL request example
Request Body Schema
- promotingAssetsrequired, Array of object
Lists the staging assets to promote (max allowed is 50). Duplicate asset entries cause the request to fail.
- idrequired, string
Contains the unique identifier of the asset.
Format: uuid - typerequired, stringPossible Values:
configModifier,filter,translationSet
- fromEnvironmentrequired, object
Specifies the staging environment where the original asset exists.
- idrequired, string
Contains the unique identifier of the Redox environment.
Format: uuid
- toEnvironmentrequired, object
Specifies the production environment that the asset should be promoted to.
- idrequired, string
Contains the unique identifier of the Redox environment.
Format: uuid
Contains the necessary details to promote asset(s) from staging to production.
- metaobject
- versionstring
Lists the major and minor version number for the format of the returned payload. The payload format or shape may change between minor versions, like including additional or extended fields in later versions. We include the version data in each response so that you have the option to handle the signaled differences.
- payloadobject
- promotedAssetsArray of object
Lists the assets that were promoted, with their IDs and versions in the production environment.
- idstring
Contains the unique identifier of the asset.
Format: uuid - versionnumber
Specifies the version of the promoted asset in the production environment.
- actionstring
Indicates whether the asset was promoted for the first time (i.e., created) or re-promoted with a new version (i.e., updated).
Possible Values:created,updated - environmentobject
Describes the Redox environment that the asset belongs to.
- idstring
Contains the unique identifier of the Redox environment.
Format: uuid
- typestringPossible Values:
configModifier,filter,translationSet - promotingAssetobject
Contains details about the original asset in the staging environment that was promoted to create the production asset.
- idstring
Contains the unique identifier of the asset.
Format: uuid - environmentobject
Describes the Redox environment that the asset belongs to.
- idstring
Contains the unique identifier of the Redox environment.
Format: uuid
- typestringPossible Values:
configModifier,filter,translationSet
- failuresArray of object
Lists any assets that weren't promoted, along with the error that prevented it. See
error.meta.isTransientto learn whether you can safely retry promoting an asset. This array is empty when every asset promoted successfully.- promotingAssetobject
Identifies the staging asset that failed to promote.
- idstring
Contains the unique identifier of the asset.
Format: uuid - typestringPossible Values:
configModifier,filter,translationSet
- errorobject
Explains why one item in a bulk request failed. The overall request still returns
200. A request that's rejected before any work starts (e.g., due to a malformed body) returns400instead.- idrequired, string
Contains a unique identifier for this error instance.
- coderequired, string
Identifies the error type, which can be used to find relevant troubleshooting information.
- titlerequired, string
Displays the high-level error message.
- detailrequired, string
Contains the specific error details for this item.
- metaobject
Contains additional details about the failure. Some errors add other properties, such as the ID of an asset that was partially created.
- isTransientboolean
Indicates whether retrying this item as-is might succeed.
truemeans the failure was temporary (e.g., a timeout), so you can retry the item.falsemeans the item will continue to fail until you correct the issue (e.g., the asset doesn't exist or its name is a duplicate). When absent, the failure wasn't classified; reviewdetailbefore retrying.