Skip to content

Commit

Permalink
CTC-2361 Update code samples for custom apps
Browse files Browse the repository at this point in the history
  • Loading branch information
jancerman committed Dec 3, 2024
1 parent 870e1f5 commit 6f68263
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions net/management-api-v2/cm_api_v2_patch_custom_app.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@
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()
{
PropertyName = PropertyName.AllowedRoles,
Value = new[]
{
Reference.ByCodename("allowed_role_codename_to_be_removed")
Reference.ByCodename("allowed_role_codename_to_remove")
}
},
new CustomAppReplacePatchModel()
Expand All @@ -43,7 +43,7 @@
new CustomAppReplacePatchModel()
{
PropertyName = PropertyName.Config,
Value = "{}"
Value = "{\"editable\"=false}"
},
new CustomAppReplacePatchModel()
{
Expand Down
6 changes: 3 additions & 3 deletions rest/management-api-v2/cm_api_v2_patch_custom_app.curl
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
]
},
{
Expand All @@ -35,7 +35,7 @@ curl --request PATCH \
{
"op": "replace",
"property_name": "config",
"value": "{}"
"value": "{\"editable\"=false}"
},
{
"op": "replace",
Expand Down

0 comments on commit 6f68263

Please sign in to comment.