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 a config modifier in the Redox dashboard.
Promote asset (beta)
Promote a config modifier from a staging environment to a production environment.
If a user edits the config modifier in the staging environment 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 a config modifier.
cURL request example
Request Body Schema
- promotingAssetsArray of object
- idstring
Contains the unique identifier of the asset.
Format: uuid - typestringValue:
configModifier
- fromEnvironmentobject
Specifies the staging environment that the asset should be promoted from.
- idstring
Contains the unique identifier of the Redox environment.
Format: uuid
- toEnvironmentobject
Specifies the production environment that the original asset from staging will be promoted to.
- idstring
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
- 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
- typestringValue:
configModifier
- 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
- typestringValue:
configModifier