You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: readme/terminusx-db/reference-guides/http-api.md
+11-3
Original file line number
Diff line number
Diff line change
@@ -235,9 +235,17 @@ POST http://localhost:6363/api/capabilities
235
235
236
236
```jsx
237
237
{ "operation": Operation,
238
-
"scope": Resource,
239
-
"user": User,
240
-
"roles": Roles }
238
+
"scope": ResourceId,
239
+
"user": UserId,
240
+
"roles": [RolesId] }
241
+
```
242
+
243
+
See the example below
244
+
```jsx
245
+
{ "operation":"grant",
246
+
"scope":"Organization/myteam",
247
+
"user":"User/myUser",
248
+
"roles": ["Role/reader"] }
241
249
```
242
250
243
251
Either add or remove the capability for user `User` over resource `Resource` with role `Role`, depending on the `Operation` which is one of `"revoke"` or `"grant"`.
0 commit comments