Named transformations can be created using the Media Library or the Admin API. If you would like to transfer named transformations between product environments using the API (using our Java SDK):
1. List transformations from the source account
The get transformations method returns transformations in an array, for example:
{
"transformations": [
{
"name": "t_Aspen_LUT",
"allowed_for_strict": true,
"used": false,
"named": true
},
{
"name": "w_110,h_100,c_fill",
"allowed_for_strict": false,
"used": false,
"named": false
}
],
"next_cursor": "8edbc61040178db60b0973ca9494bf3a"
}
2. Create the transformations in the destination account using the result from above
The create transformation method accepts strings for the transformation
parameter, which you can get by using the name
value from each transformation. Writing a script to perform this step for each transformation from step 1 will complete the migration of all named transformations from one product environment to another.
Comments
0 comments
Please sign in to leave a comment.