From 6f682635090384d9353ff01677392ba80be3c0b9 Mon Sep 17 00:00:00 2001 From: Jan Cerman Date: Tue, 3 Dec 2024 16:34:39 +0100 Subject: [PATCH] CTC-2361 Update code samples for custom apps --- net/management-api-v2/cm_api_v2_patch_custom_app.cs | 6 +++--- rest/management-api-v2/cm_api_v2_patch_custom_app.curl | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/net/management-api-v2/cm_api_v2_patch_custom_app.cs b/net/management-api-v2/cm_api_v2_patch_custom_app.cs index ae9a0f54..90c914cd 100644 --- a/net/management-api-v2/cm_api_v2_patch_custom_app.cs +++ b/net/management-api-v2/cm_api_v2_patch_custom_app.cs @@ -14,7 +14,7 @@ PropertyName = PropertyName.AllowedRoles, Value = new[] { - Reference.ByCodename("new_allowed_role_codename_to_be_add_into") + Reference.ByCodename("new_allowed_role_codename_to_add") } }, new CustomAppRemovePatchModel() @@ -22,7 +22,7 @@ PropertyName = PropertyName.AllowedRoles, Value = new[] { - Reference.ByCodename("allowed_role_codename_to_be_removed") + Reference.ByCodename("allowed_role_codename_to_remove") } }, new CustomAppReplacePatchModel() @@ -43,7 +43,7 @@ new CustomAppReplacePatchModel() { PropertyName = PropertyName.Config, - Value = "{}" + Value = "{\"editable\"=false}" }, new CustomAppReplacePatchModel() { diff --git a/rest/management-api-v2/cm_api_v2_patch_custom_app.curl b/rest/management-api-v2/cm_api_v2_patch_custom_app.curl index 76263bac..d973ffe4 100644 --- a/rest/management-api-v2/cm_api_v2_patch_custom_app.curl +++ b/rest/management-api-v2/cm_api_v2_patch_custom_app.curl @@ -7,14 +7,14 @@ curl --request PATCH \ "op": "addInto", "property_name": "allowed_roles", "value": [ - { "codename": "new_allowed_role_codename_to_be_add_into" } + { "codename": "new_allowed_role_codename_to_add" } ] }, { "op": "remove", "property_name": "allowed_roles", "value": [ - { "codename": "allowed_role_codename_to_be_removed" } + { "codename": "allowed_role_codename_to_remove" } ] }, { @@ -35,7 +35,7 @@ curl --request PATCH \ { "op": "replace", "property_name": "config", - "value": "{}" + "value": "{\"editable\"=false}" }, { "op": "replace",