Subscription endpoints allow you to review, compare, and manage subscriptions and their related links to assets (i.e., filters, config modifiers, translation sets).
You must be a member of the environment and be assigned to an engineer role to manage subscriptions. Learn about roles.
Copy assets
Copy an asset to use existing logic as a base when creating a new asset. Each copy is an independent asset at version 1 that you can edit in the target environment.
You can copy assets within the same environment or across environments.
Assets are copied one at a time. The response lists which ones succeeded and which failed.
cURL request example
Request Body Schema
- fromEnvironmentrequired, object
Specifies where the original assets exist.
- idrequired, string
Contains the unique identifier of the Redox environment.
Format: uuid
- toEnvironmentrequired, object
Specifies where the new copies are created. The
toEnvironmentmay or may not be the same as thefromEnvironment, but both must belong to the same organization.- idrequired, string
Contains the unique identifier of the Redox environment.
Format: uuid
- copyingAssetsrequired, Array of object
Lists the assets to copy (max allowed is 50). If the same asset is listed twice, the request fails.
- idrequired, string
Contains the unique identifier of the asset.
Format: uuid - typerequired, stringPossible Values:
configModifier,filter,translationSet - overridesobject
Contains any edits to the original asset's settings for the new copy. Any settings you don't override are taken from the original asset.
- namestring
Names the copy. Defaults to the original asset's name followed by
(copy). A translation set name must be unique within its environment; a duplicate name causes that translation set's copy to fail.
Contains the required details to copy asset(s) from one environment to another.
- 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
- copiedAssetsArray of object
Lists the new assets and their corresponding IDs in the
toEnvironment. For copied translation sets, any value sets are also automatically copied and listed with the typevalueSet.- idstring
Contains the unique identifier of the asset.
Format: uuid - namestring
Contains the human-readable name of the asset.
- versionnumber
Always set to 1. A copy is a new asset, regardless of the original asset's version number.
- environmentobject
Describes the Redox environment that the asset belongs to.
- idstring
Contains the unique identifier of the Redox environment.
Format: uuid
- typestring
Identifies the type of a copied asset.
valueSetappears only for the value sets copied along with a translation set.Possible Values:configModifier,filter,translationSet,valueSet - copyingAssetobject
Describes the original asset being copied. The response is the only record of this relationship, since a copied asset is independent of the original.
- idstring
Contains the unique identifier of the asset.
Format: uuid - namestring
Contains the human-readable name of the asset.
- versionnumber
Contains the numeric version of the asset. Version numbers start at 1 and increment in whole numbers whenever the asset is updated.
- environmentobject
Describes the Redox environment that the asset belongs to.
- idstring
Contains the unique identifier of the Redox environment.
Format: uuid
- typestring
Identifies the type of a copied asset.
valueSetappears only for the value sets copied along with a translation set.Possible Values:configModifier,filter,translationSet,valueSet
- failuresArray of object
Lists any assets that weren't copied, along with the error that prevented it. See
error.meta.isTransientto learn whether you can safely retry copying an asset. This array is empty when every asset copied successfully.- copyingAssetobject
Identifies one asset in the
fromEnvironmentto copy.- idrequired, string
Contains the unique identifier of the asset.
Format: uuid - typerequired, stringPossible Values:
configModifier,filter,translationSet - overridesobject
Contains any edits to the original asset's settings for the new copy. Any settings you don't override are taken from the original asset.
- namestring
Names the copy. Defaults to the original asset's name followed by
(copy). A translation set name must be unique within its environment; a duplicate name causes that translation set's copy to fail.
- 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.