@@ -151,13 +151,6 @@ paths:
151
151
string parameter.
152
152
summary : List Users
153
153
parameters :
154
- - name : sort
155
- in : query
156
- description : Field and order to sort the result by.
157
- schema :
158
- type : string
159
- nullable : true
160
- enum : [name_asc, name_desc, email_asc, email_desc]
161
154
- name : page_size
162
155
in : query
163
156
description : Number of results per page. Defaults to 10 if parameter not sent.
@@ -372,6 +365,7 @@ paths:
372
365
- name : id
373
366
in : query
374
367
description : The user's id.
368
+ required : true
375
369
schema :
376
370
type : string
377
371
nullable : false
@@ -688,11 +682,13 @@ paths:
688
682
summary : Create Organization
689
683
requestBody :
690
684
description : Organization details.
691
- required : false
685
+ required : true
692
686
content :
693
687
application/json :
694
688
schema :
695
689
type : object
690
+ required :
691
+ - name
696
692
properties :
697
693
name :
698
694
description : The organization's name.
@@ -2274,6 +2270,60 @@ paths:
2274
2270
$ref : ' #/components/schemas/error_response'
2275
2271
' 429 ' :
2276
2272
description : Request was throttled.
2273
+ post :
2274
+ tags :
2275
+ - Roles
2276
+ operationId : CreateRole
2277
+ description : Create role.
2278
+ summary : Create Role
2279
+ requestBody :
2280
+ description : Role details.
2281
+ required : false
2282
+ content :
2283
+ application/json :
2284
+ schema :
2285
+ type : object
2286
+ properties :
2287
+ name :
2288
+ description : The role's name.
2289
+ type : string
2290
+ description :
2291
+ description : The role's description.
2292
+ type : string
2293
+ key :
2294
+ description : The role identifier to use in code.
2295
+ type : string
2296
+ is_default_role :
2297
+ description : Set role as default for new users.
2298
+ type : boolean
2299
+ responses :
2300
+ ' 201 ' :
2301
+ description : Role successfully created
2302
+ content :
2303
+ application/json :
2304
+ schema :
2305
+ $ref : ' #/components/schemas/success_response'
2306
+ application/json; charset=utf-8 :
2307
+ schema :
2308
+ $ref : ' #/components/schemas/success_response'
2309
+ ' 400 ' :
2310
+ description : Invalid request.
2311
+ content :
2312
+ application/json :
2313
+ schema :
2314
+ $ref : ' #/components/schemas/error_response'
2315
+ application/json; charset=utf-8 :
2316
+ schema :
2317
+ $ref : ' #/components/schemas/error_response'
2318
+ ' 403 ' :
2319
+ description : Invalid credentials.
2320
+ content :
2321
+ application/json :
2322
+ schema :
2323
+ $ref : ' #/components/schemas/error_response'
2324
+ application/json; charset=utf-8 :
2325
+ schema :
2326
+ $ref : ' #/components/schemas/error_response'
2277
2327
/api/v1/roles/{role_id}/permissions :
2278
2328
get :
2279
2329
tags :
@@ -2431,52 +2481,6 @@ paths:
2431
2481
description : Invalid credentials.
2432
2482
' 429 ' :
2433
2483
description : Request was throttled.
2434
- /api/v1/role :
2435
- post :
2436
- tags :
2437
- - Roles
2438
- operationId : CreateRole
2439
- description : Create role.
2440
- summary : Create Role
2441
- requestBody :
2442
- description : Role details.
2443
- required : false
2444
- content :
2445
- application/json :
2446
- schema :
2447
- type : object
2448
- properties :
2449
- name :
2450
- description : The role's name.
2451
- type : string
2452
- description :
2453
- description : The role's description.
2454
- type : string
2455
- key :
2456
- description : The role identifier to use in code.
2457
- type : string
2458
- is_default_role :
2459
- description : Set role as default for new users.
2460
- type : boolean
2461
- responses :
2462
- ' 201 ' :
2463
- description : Role successfully created
2464
- content :
2465
- application/json; charset=utf-8 :
2466
- schema :
2467
- $ref : ' #/components/schemas/success_response'
2468
- ' 400 ' :
2469
- description : Invalid request.
2470
- content :
2471
- application/json; charset=utf-8 :
2472
- schema :
2473
- $ref : ' #/components/schemas/error_response'
2474
- ' 403 ' :
2475
- description : Invalid credentials.
2476
- content :
2477
- application/json; charset=utf-8 :
2478
- schema :
2479
- $ref : ' #/components/schemas/error_response'
2480
2484
/api/v1/roles/{role_id} :
2481
2485
patch :
2482
2486
tags :
@@ -4371,6 +4375,9 @@ components:
4371
4375
type : object
4372
4376
properties :
4373
4377
id :
4378
+ type : string
4379
+ description : The permission's id.
4380
+ key :
4374
4381
type : string
4375
4382
description : The permission identifier to use in code.
4376
4383
name :
0 commit comments