Skip to content

Commit c7560e9

Browse files
authored
Update modules/authorization/proc-sending-request-to-the-rbac-rest-api-by-using-curl.adoc
1 parent 8ac7ddd commit c7560e9

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

modules/authorization/proc-sending-request-to-the-rbac-rest-api-by-using-curl.adoc

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,24 @@ curl -v -H "Content-Type: application/json" \
6262
}'
6363
----
6464

65+
.Example request to update a role
66+
[source,subs="+attributes,+quotes"]
67+
----
68+
curl -v -H "Content-Type: application/json" \
69+
-H "Authorization: Bearer _<token>_" \
70+
-X PUT "{my-product-url}/api/permission/roles/role/default/test" \
71+
-d '{
72+
"oldRole": {
73+
"memberReferences": [ "group:default/example" ],
74+
"name": "role:default/test"
75+
},
76+
"newRole": {
77+
"memberReferences": [ "group:default/example", "user:default/test" ],
78+
"name": "role:default/test"
79+
}
80+
}'
81+
----
82+
6583
.Example request to create a permission policy
6684
[source,subs="+attributes,+quotes"]
6785
----

0 commit comments

Comments
 (0)