Skip to content

Commit

Permalink
EN-199 Add copy data options to clone environment (#85)
Browse files Browse the repository at this point in the history
Co-authored-by: Matus Backor <[email protected]>
  • Loading branch information
Matus Backor and matus12 authored May 29, 2024
1 parent 6d84bc3 commit de3e87f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions net/management-api-v2/cm_api_v2_clone_environment.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,9 @@
RolesToActivate = new[]
{
Guid.Parse("2f925111-1457-49d4-a595-0958feae8ae4")
},
CopyDataOptions = new CopyDataOptions {
ContentItemsAssets = true,
ContentItemVersionHistory = false
}
});
6 changes: 5 additions & 1 deletion rest/management-api-v2/cm_api_v2_clone_environment.curl
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,9 @@ curl --request POST \
--data '
{
"name": "Develop",
"roles_to_activate": ["1144138e-420b-4f0f-9056-10c8c7d60869"]
"roles_to_activate": ["1144138e-420b-4f0f-9056-10c8c7d60869"],
"copy_data_options": {
"content_items_assets": true,
"content_item_version_history": false
}
}'

0 comments on commit de3e87f

Please sign in to comment.