@@ -195,24 +195,6 @@ paths:
195
195
description : If present and `1`, creates a Folder instead of a Domain.
196
196
- $ref : ' #/components/parameters/accept_json'
197
197
- $ref : ' #/components/parameters/authorization'
198
- - name : FolderSpec
199
- in : path
200
- required : true
201
- description : >
202
- Optional JSON object indicating whether the domain should not
203
- possess a root group -- a Folder.
204
-
205
- Default by absence is `false`, resulting in a Domain with a root
206
- group.
207
-
208
- TODO: determine interaction with query parameter.
209
- schema :
210
- type : object
211
- properties :
212
- folder :
213
- type : boolean
214
- example :
215
- folder : True
216
198
responses :
217
199
' 201 ' :
218
200
description : Created.
@@ -2378,10 +2360,30 @@ paths:
2378
2360
- Domain
2379
2361
summary : Set user's access to the Domain.
2380
2362
requestBody :
2363
+ required : true
2364
+ description : >
2365
+ JSON object with one or more keys from the set: 'create', 'read',
2366
+ 'update', 'delete', 'readACL', 'updateACL'. Each key should have
2367
+ a boolean value. Based on keys provided, the user's ACL will be
2368
+ updated for those keys. If no ACL exist for the given user, it
2369
+ will be created.
2381
2370
content :
2382
2371
application/json :
2383
2372
schema :
2384
2373
type : object
2374
+ properties :
2375
+ create :
2376
+ type : boolean
2377
+ update :
2378
+ type : boolean
2379
+ delete :
2380
+ type : boolean
2381
+ updateACL :
2382
+ type : boolean
2383
+ read :
2384
+ type : boolean
2385
+ readACL :
2386
+ type : boolean
2385
2387
parameters :
2386
2388
- name : user
2387
2389
in : path
@@ -2392,27 +2394,7 @@ paths:
2392
2394
- $ref : ' #/components/parameters/query_domain'
2393
2395
- $ref : ' #/components/parameters/accept_json'
2394
2396
- $ref : ' #/components/parameters/authorization'
2395
- - name : ACLDefinition
2396
- in : path
2397
- description : >
2398
- Permissions granted to the user.
2399
- Not all need be set. (TODO: what are the defaults?)
2400
- required : true
2401
- schema :
2402
- type : object
2403
- properties :
2404
- create :
2405
- type : boolean
2406
- update :
2407
- type : boolean
2408
- delete :
2409
- type : boolean
2410
- updateACL :
2411
- type : boolean
2412
- read :
2413
- type : boolean
2414
- readACL :
2415
- type : boolean
2397
+
2416
2398
responses :
2417
2399
' 200 ' :
2418
2400
description : OK
0 commit comments