From 587f31f888ea7b966e0f9b40775d33daddf93193 Mon Sep 17 00:00:00 2001 From: Matus Backor Date: Mon, 15 Jul 2024 15:06:02 +0200 Subject: [PATCH] EN-199 Add copy data options to clone environment JS SDK --- js/management-api-v2/cm_api_v2_clone_environment.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/js/management-api-v2/cm_api_v2_clone_environment.js b/js/management-api-v2/cm_api_v2_clone_environment.js index 3e640305..6771e0c5 100644 --- a/js/management-api-v2/cm_api_v2_clone_environment.js +++ b/js/management-api-v2/cm_api_v2_clone_environment.js @@ -11,7 +11,11 @@ const response = await client.cloneEnvironment() .withData( { name: "Develop", - roles_to_activate: ["95671d8-1234-7890-ab45-1234b0b95000"] + roles_to_activate: ["95671d8-1234-7890-ab45-1234b0b95000"], + copy_data_options: { + content_items_assets: true, + content_item_version_history: false, + } } ) .toPromise();