Skip to content

Commit e598801

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

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

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

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,26 @@ curl -v -H "Content-Type: application/json" \
134134
}'
135135
----
136136

137+
.Example request to update a condition
138+
[source,subs="+attributes,+quotes"]
139+
----
140+
curl -v -H "Content-Type: application/json" \
141+
-H "Authorization: Bearer $token" \
142+
-X PUT "{my-product-url}/api/permission/roles/conditions/1" \
143+
-d '{
144+
"result":"CONDITIONAL",
145+
"roleEntityRef":"role:default/test",
146+
"pluginId":"catalog",
147+
"resourceType":"catalog-entity",
148+
"permissionMapping": ["read", "update", "delete"],
149+
"conditions": {
150+
"rule": "IS_ENTITY_OWNER",
151+
"resourceType": "catalog-entity",
152+
"params": {"claims": ["group:default/janus-authors"]}
153+
}
154+
}'
155+
----
156+
137157
--
138158

139159
.Verification

0 commit comments

Comments
 (0)