@gitbook/api 0.40.0 → 0.42.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.d.ts +114 -183
- package/dist/index.cjs +23 -72
- package/dist/index.js +23 -72
- package/package.json +1 -1
- package/spec/openapi.json +334 -592
- package/spec/openapi.yaml +183 -337
package/spec/openapi.yaml
CHANGED
|
@@ -1265,6 +1265,9 @@ components:
|
|
|
1265
1265
|
apiToken:
|
|
1266
1266
|
type: string
|
|
1267
1267
|
description: Short-lived API token to fetch content related to the space in the context of the URL.
|
|
1268
|
+
organization:
|
|
1269
|
+
type: string
|
|
1270
|
+
description: ID of the organization.
|
|
1268
1271
|
required:
|
|
1269
1272
|
- site
|
|
1270
1273
|
- siteSpace
|
|
@@ -1272,6 +1275,7 @@ components:
|
|
|
1272
1275
|
- pathname
|
|
1273
1276
|
- basePath
|
|
1274
1277
|
- apiToken
|
|
1278
|
+
- organization
|
|
1275
1279
|
SpacePointer:
|
|
1276
1280
|
type: object
|
|
1277
1281
|
properties:
|
|
@@ -4148,8 +4152,12 @@ components:
|
|
|
4148
4152
|
description: Unique identifier for the organization
|
|
4149
4153
|
title:
|
|
4150
4154
|
$ref: "#/components/schemas/OrganizationTitle"
|
|
4155
|
+
createdAt:
|
|
4156
|
+
$ref: "#/components/schemas/Timestamp"
|
|
4151
4157
|
emailDomains:
|
|
4152
4158
|
$ref: "#/components/schemas/OrganizationEmailDomains"
|
|
4159
|
+
hostname:
|
|
4160
|
+
$ref: "#/paths/~1orgs~1%7BorganizationId%7D/patch/requestBody/content/application~1json/schema/properties/hostname"
|
|
4153
4161
|
type:
|
|
4154
4162
|
$ref: "#/components/schemas/OrganizationType"
|
|
4155
4163
|
useCase:
|
|
@@ -4191,6 +4199,7 @@ components:
|
|
|
4191
4199
|
- object
|
|
4192
4200
|
- id
|
|
4193
4201
|
- title
|
|
4202
|
+
- createdAt
|
|
4194
4203
|
- type
|
|
4195
4204
|
- emailDomains
|
|
4196
4205
|
- urls
|
|
@@ -4464,8 +4473,6 @@ components:
|
|
|
4464
4473
|
$ref: "#/components/schemas/OrganizationUsageCollections"
|
|
4465
4474
|
sites:
|
|
4466
4475
|
$ref: "#/components/schemas/OrganizationUsageSites"
|
|
4467
|
-
seats:
|
|
4468
|
-
$ref: "#/components/schemas/OrganizationUsageSeats"
|
|
4469
4476
|
teams:
|
|
4470
4477
|
$ref: "#/components/schemas/OrganizationUsageTeams"
|
|
4471
4478
|
members:
|
|
@@ -4476,7 +4483,6 @@ components:
|
|
|
4476
4483
|
- spaces
|
|
4477
4484
|
- collections
|
|
4478
4485
|
- sites
|
|
4479
|
-
- seats
|
|
4480
4486
|
- teams
|
|
4481
4487
|
- members
|
|
4482
4488
|
- teamMembers
|
|
@@ -4534,6 +4540,9 @@ components:
|
|
|
4534
4540
|
total:
|
|
4535
4541
|
description: Count of all members
|
|
4536
4542
|
type: number
|
|
4543
|
+
seats:
|
|
4544
|
+
description: Count of all paid seats
|
|
4545
|
+
type: number
|
|
4537
4546
|
admin:
|
|
4538
4547
|
description: Count of all admins
|
|
4539
4548
|
type: number
|
|
@@ -4557,6 +4566,7 @@ components:
|
|
|
4557
4566
|
type: number
|
|
4558
4567
|
required:
|
|
4559
4568
|
- total
|
|
4569
|
+
- seats
|
|
4560
4570
|
- admin
|
|
4561
4571
|
- create
|
|
4562
4572
|
- edit
|
|
@@ -4590,19 +4600,6 @@ components:
|
|
|
4590
4600
|
- total
|
|
4591
4601
|
- owner
|
|
4592
4602
|
- member
|
|
4593
|
-
OrganizationUsageSeats:
|
|
4594
|
-
type: object
|
|
4595
|
-
description: Seats usage metrics of an organization
|
|
4596
|
-
properties:
|
|
4597
|
-
total:
|
|
4598
|
-
description: The total amount of seats in the organization.
|
|
4599
|
-
type: number
|
|
4600
|
-
available:
|
|
4601
|
-
description: How many seats are still available.
|
|
4602
|
-
type: number
|
|
4603
|
-
required:
|
|
4604
|
-
- total
|
|
4605
|
-
- available
|
|
4606
4603
|
Capture:
|
|
4607
4604
|
type: object
|
|
4608
4605
|
properties:
|
|
@@ -8545,9 +8542,6 @@ components:
|
|
|
8545
8542
|
- $ref: "#/components/schemas/OrganizationIntegrationsChannel"
|
|
8546
8543
|
- $ref: "#/components/schemas/OrganizationInstallationsChannel"
|
|
8547
8544
|
- $ref: "#/components/schemas/OrganizationSitesChannel"
|
|
8548
|
-
- $ref: "#/components/schemas/OrganizationSeatsChannel"
|
|
8549
|
-
- $ref: "#/components/schemas/OrganizationUsageSeatsChannel"
|
|
8550
|
-
- $ref: "#/components/schemas/OrganizationSeatChannel"
|
|
8551
8545
|
- type: object
|
|
8552
8546
|
properties:
|
|
8553
8547
|
channel:
|
|
@@ -9068,48 +9062,6 @@ components:
|
|
|
9068
9062
|
required:
|
|
9069
9063
|
- channel
|
|
9070
9064
|
- organization
|
|
9071
|
-
OrganizationSeatChannel:
|
|
9072
|
-
type: object
|
|
9073
|
-
description: Subscription channel for changes in a member seat in an organization.
|
|
9074
|
-
properties:
|
|
9075
|
-
channel:
|
|
9076
|
-
type: string
|
|
9077
|
-
enum:
|
|
9078
|
-
- organization-seat
|
|
9079
|
-
organization:
|
|
9080
|
-
type: string
|
|
9081
|
-
member:
|
|
9082
|
-
type: string
|
|
9083
|
-
required:
|
|
9084
|
-
- channel
|
|
9085
|
-
- organization
|
|
9086
|
-
- member
|
|
9087
|
-
OrganizationSeatsChannel:
|
|
9088
|
-
type: object
|
|
9089
|
-
description: Subscription channel for changes in seats in an organization.
|
|
9090
|
-
properties:
|
|
9091
|
-
channel:
|
|
9092
|
-
type: string
|
|
9093
|
-
enum:
|
|
9094
|
-
- organization-seats
|
|
9095
|
-
organization:
|
|
9096
|
-
type: string
|
|
9097
|
-
required:
|
|
9098
|
-
- channel
|
|
9099
|
-
- organization
|
|
9100
|
-
OrganizationUsageSeatsChannel:
|
|
9101
|
-
type: object
|
|
9102
|
-
description: Subscription channel for changes in seats usage in an organization.
|
|
9103
|
-
properties:
|
|
9104
|
-
channel:
|
|
9105
|
-
type: string
|
|
9106
|
-
enum:
|
|
9107
|
-
- organization-usage-seats
|
|
9108
|
-
organization:
|
|
9109
|
-
type: string
|
|
9110
|
-
required:
|
|
9111
|
-
- channel
|
|
9112
|
-
- organization
|
|
9113
9065
|
IntegrationChannel:
|
|
9114
9066
|
type: object
|
|
9115
9067
|
properties:
|
|
@@ -9856,6 +9808,9 @@ components:
|
|
|
9856
9808
|
SiteCustomizationSettings:
|
|
9857
9809
|
type: object
|
|
9858
9810
|
properties:
|
|
9811
|
+
title:
|
|
9812
|
+
description: Title to use for the published site. If not defined, it'll fallback to the default content title.
|
|
9813
|
+
$ref: "#/components/schemas/SiteTitle"
|
|
9859
9814
|
styling:
|
|
9860
9815
|
type: object
|
|
9861
9816
|
properties:
|
|
@@ -10015,6 +9970,9 @@ components:
|
|
|
10015
9970
|
SiteSpaceCustomizationOverrides:
|
|
10016
9971
|
type: object
|
|
10017
9972
|
properties:
|
|
9973
|
+
title:
|
|
9974
|
+
description: Title to use for the published site variant. If not defined, it'll fallback to the content title.
|
|
9975
|
+
$ref: "#/components/schemas/SiteTitle"
|
|
10018
9976
|
styling:
|
|
10019
9977
|
type: object
|
|
10020
9978
|
properties:
|
|
@@ -10308,15 +10266,47 @@ components:
|
|
|
10308
10266
|
default:
|
|
10309
10267
|
type: boolean
|
|
10310
10268
|
description: Whether this is the default space for the site
|
|
10269
|
+
urls:
|
|
10270
|
+
type: object
|
|
10271
|
+
description: URLs associated with the object
|
|
10272
|
+
properties:
|
|
10273
|
+
published:
|
|
10274
|
+
type: string
|
|
10275
|
+
description: URL of the published version of the site-space. Only defined when site is not "unpublished"
|
|
10276
|
+
format: uri
|
|
10277
|
+
required:
|
|
10278
|
+
- location
|
|
10311
10279
|
required:
|
|
10312
10280
|
- id
|
|
10313
10281
|
- space
|
|
10314
10282
|
- path
|
|
10283
|
+
- urls
|
|
10315
10284
|
SiteSpacePath:
|
|
10316
10285
|
type: string
|
|
10317
10286
|
description: Path to the space on the site
|
|
10318
10287
|
minLength: 1
|
|
10319
10288
|
maxLength: 100
|
|
10289
|
+
SiteSpaceMovePosition:
|
|
10290
|
+
type: object
|
|
10291
|
+
description: Position at which to move the site space to.
|
|
10292
|
+
properties:
|
|
10293
|
+
before:
|
|
10294
|
+
$ref: "#/components/schemas/SiteSpacePointer"
|
|
10295
|
+
after:
|
|
10296
|
+
$ref: "#/components/schemas/SiteSpacePointer"
|
|
10297
|
+
SiteSpacePointer:
|
|
10298
|
+
type: object
|
|
10299
|
+
properties:
|
|
10300
|
+
type:
|
|
10301
|
+
type: string
|
|
10302
|
+
enum:
|
|
10303
|
+
- site-space
|
|
10304
|
+
siteSpace:
|
|
10305
|
+
type: string
|
|
10306
|
+
description: Unique identifier for the site space
|
|
10307
|
+
required:
|
|
10308
|
+
- type
|
|
10309
|
+
- siteSpace
|
|
10320
10310
|
SiteSubscriptionStatus:
|
|
10321
10311
|
type: string
|
|
10322
10312
|
enum:
|
|
@@ -10497,6 +10487,28 @@ components:
|
|
|
10497
10487
|
application/json:
|
|
10498
10488
|
schema:
|
|
10499
10489
|
$ref: "#/components/schemas/Error"
|
|
10490
|
+
PreconditionFailedError:
|
|
10491
|
+
description: PreconditionFailed
|
|
10492
|
+
content:
|
|
10493
|
+
application/json:
|
|
10494
|
+
schema:
|
|
10495
|
+
type: object
|
|
10496
|
+
required:
|
|
10497
|
+
- error
|
|
10498
|
+
properties:
|
|
10499
|
+
error:
|
|
10500
|
+
type: object
|
|
10501
|
+
properties:
|
|
10502
|
+
code:
|
|
10503
|
+
type: integer
|
|
10504
|
+
format: int32
|
|
10505
|
+
enum:
|
|
10506
|
+
- 412
|
|
10507
|
+
message:
|
|
10508
|
+
type: string
|
|
10509
|
+
required:
|
|
10510
|
+
- code
|
|
10511
|
+
- message
|
|
10500
10512
|
paths:
|
|
10501
10513
|
/:
|
|
10502
10514
|
get:
|
|
@@ -10891,6 +10903,9 @@ paths:
|
|
|
10891
10903
|
"409":
|
|
10892
10904
|
description: Transfer would not result in any update
|
|
10893
10905
|
$ref: "#/components/responses/ConflictError"
|
|
10906
|
+
"412":
|
|
10907
|
+
description: The space cannot be moved.
|
|
10908
|
+
$ref: "#/components/responses/PreconditionFailedError"
|
|
10894
10909
|
default:
|
|
10895
10910
|
$ref: "#/components/responses/UnexpectedError"
|
|
10896
10911
|
"/spaces/{spaceId}/search":
|
|
@@ -11321,6 +11336,37 @@ paths:
|
|
|
11321
11336
|
$ref: "#/components/schemas/RevisionFile"
|
|
11322
11337
|
default:
|
|
11323
11338
|
$ref: "#/components/responses/UnexpectedError"
|
|
11339
|
+
"/spaces/{spaceId}/content/files/{fileId}/backlinks":
|
|
11340
|
+
get:
|
|
11341
|
+
operationId: listSpaceFileBacklinks
|
|
11342
|
+
summary: Get backlink locations for a file existing in a space.
|
|
11343
|
+
tags:
|
|
11344
|
+
- spaces
|
|
11345
|
+
security:
|
|
11346
|
+
- user: []
|
|
11347
|
+
parameters:
|
|
11348
|
+
- $ref: "#/components/parameters/spaceId"
|
|
11349
|
+
- $ref: "#/components/parameters/fileId"
|
|
11350
|
+
- $ref: "#/components/parameters/listPage"
|
|
11351
|
+
- $ref: "#/components/parameters/listLimit"
|
|
11352
|
+
responses:
|
|
11353
|
+
"200":
|
|
11354
|
+
description: OK
|
|
11355
|
+
content:
|
|
11356
|
+
application/json:
|
|
11357
|
+
schema:
|
|
11358
|
+
allOf:
|
|
11359
|
+
- $ref: "#/components/schemas/List"
|
|
11360
|
+
- type: object
|
|
11361
|
+
required:
|
|
11362
|
+
- items
|
|
11363
|
+
properties:
|
|
11364
|
+
items:
|
|
11365
|
+
type: array
|
|
11366
|
+
items:
|
|
11367
|
+
$ref: "#/components/schemas/ContentLocation"
|
|
11368
|
+
default:
|
|
11369
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
11324
11370
|
"/spaces/{spaceId}/content/page/{pageId}":
|
|
11325
11371
|
get:
|
|
11326
11372
|
operationId: getPageById
|
|
@@ -12208,6 +12254,38 @@ paths:
|
|
|
12208
12254
|
$ref: "#/components/schemas/RevisionFile"
|
|
12209
12255
|
default:
|
|
12210
12256
|
$ref: "#/components/responses/UnexpectedError"
|
|
12257
|
+
"/spaces/{spaceId}/change-requests/{changeRequestId}/content/files/{fileId}/backlinks":
|
|
12258
|
+
get:
|
|
12259
|
+
operationId: listChangeRequestFileBacklinks
|
|
12260
|
+
summary: Get backlink locations for a file existing in a change request.
|
|
12261
|
+
tags:
|
|
12262
|
+
- spaces
|
|
12263
|
+
security:
|
|
12264
|
+
- user: []
|
|
12265
|
+
parameters:
|
|
12266
|
+
- $ref: "#/components/parameters/spaceId"
|
|
12267
|
+
- $ref: "#/components/parameters/changeRequestId"
|
|
12268
|
+
- $ref: "#/components/parameters/fileId"
|
|
12269
|
+
- $ref: "#/components/parameters/listPage"
|
|
12270
|
+
- $ref: "#/components/parameters/listLimit"
|
|
12271
|
+
responses:
|
|
12272
|
+
"200":
|
|
12273
|
+
description: OK
|
|
12274
|
+
content:
|
|
12275
|
+
application/json:
|
|
12276
|
+
schema:
|
|
12277
|
+
allOf:
|
|
12278
|
+
- $ref: "#/components/schemas/List"
|
|
12279
|
+
- type: object
|
|
12280
|
+
required:
|
|
12281
|
+
- items
|
|
12282
|
+
properties:
|
|
12283
|
+
items:
|
|
12284
|
+
type: array
|
|
12285
|
+
items:
|
|
12286
|
+
$ref: "#/components/schemas/ContentLocation"
|
|
12287
|
+
default:
|
|
12288
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
12211
12289
|
"/spaces/{spaceId}/change-requests/{changeRequestId}/content/page/{pageId}":
|
|
12212
12290
|
get:
|
|
12213
12291
|
operationId: getPageInChangeRequestById
|
|
@@ -13431,6 +13509,9 @@ paths:
|
|
|
13431
13509
|
"409":
|
|
13432
13510
|
description: Transfer would not result in any update
|
|
13433
13511
|
$ref: "#/components/responses/ConflictError"
|
|
13512
|
+
"412":
|
|
13513
|
+
description: The collection cannot be moved.
|
|
13514
|
+
$ref: "#/components/responses/PreconditionFailedError"
|
|
13434
13515
|
default:
|
|
13435
13516
|
$ref: "#/components/responses/UnexpectedError"
|
|
13436
13517
|
"/collections/{collectionId}/permissions/aggregate":
|
|
@@ -14475,6 +14556,11 @@ paths:
|
|
|
14475
14556
|
$ref: "#/components/schemas/OrganizationTitle"
|
|
14476
14557
|
emailDomains:
|
|
14477
14558
|
$ref: "#/components/schemas/OrganizationEmailDomains"
|
|
14559
|
+
hostname:
|
|
14560
|
+
type: string
|
|
14561
|
+
description: Default hostname for the organization's public content, e.g. <org-hostname>.gitbook.io
|
|
14562
|
+
minLength: 3
|
|
14563
|
+
maxLength: 32
|
|
14478
14564
|
defaultRole:
|
|
14479
14565
|
$ref: "#/components/schemas/MemberRoleOrGuest"
|
|
14480
14566
|
defaultContent:
|
|
@@ -15209,54 +15295,6 @@ paths:
|
|
|
15209
15295
|
properties: {}
|
|
15210
15296
|
default:
|
|
15211
15297
|
$ref: "#/components/responses/UnexpectedError"
|
|
15212
|
-
"/orgs/{organizationId}/transfer":
|
|
15213
|
-
post:
|
|
15214
|
-
operationId: transferOrganization
|
|
15215
|
-
summary: Transfer one organization (source) into another organization (target).
|
|
15216
|
-
tags:
|
|
15217
|
-
- organizations
|
|
15218
|
-
security:
|
|
15219
|
-
- user: []
|
|
15220
|
-
parameters:
|
|
15221
|
-
- $ref: "#/components/parameters/organizationId"
|
|
15222
|
-
requestBody:
|
|
15223
|
-
required: true
|
|
15224
|
-
content:
|
|
15225
|
-
application/json:
|
|
15226
|
-
schema:
|
|
15227
|
-
type: object
|
|
15228
|
-
required:
|
|
15229
|
-
- source
|
|
15230
|
-
properties:
|
|
15231
|
-
source:
|
|
15232
|
-
type: string
|
|
15233
|
-
description: The unique id of the organization to transfer into the current one.
|
|
15234
|
-
defaultOrgRole:
|
|
15235
|
-
description: Determine the default role members of the source org will have when they are transferred into the target org. Defaults to null, which means no access.
|
|
15236
|
-
oneOf:
|
|
15237
|
-
- $ref: "#/components/schemas/MemberRoleOrGuest"
|
|
15238
|
-
- type: string
|
|
15239
|
-
description: Use SAML's default role for transferred members.
|
|
15240
|
-
enum:
|
|
15241
|
-
- saml
|
|
15242
|
-
responses:
|
|
15243
|
-
"200":
|
|
15244
|
-
description: OK
|
|
15245
|
-
content:
|
|
15246
|
-
application/json:
|
|
15247
|
-
schema:
|
|
15248
|
-
type: object
|
|
15249
|
-
required:
|
|
15250
|
-
- collection
|
|
15251
|
-
properties:
|
|
15252
|
-
collection:
|
|
15253
|
-
type: string
|
|
15254
|
-
description: The unique id of the collection created in the target organization containing the content of the source organization.
|
|
15255
|
-
newSourceHostname:
|
|
15256
|
-
type: string
|
|
15257
|
-
description: The new hostname if the source organization needed to change hostname.
|
|
15258
|
-
default:
|
|
15259
|
-
$ref: "#/components/responses/UnexpectedError"
|
|
15260
15298
|
"/orgs/{organizationId}/search":
|
|
15261
15299
|
get:
|
|
15262
15300
|
operationId: searchOrganizationContent
|
|
@@ -15942,31 +15980,6 @@ paths:
|
|
|
15942
15980
|
- teamMembers
|
|
15943
15981
|
default:
|
|
15944
15982
|
$ref: "#/components/responses/UnexpectedError"
|
|
15945
|
-
"/orgs/{organizationId}/usage/seats":
|
|
15946
|
-
get:
|
|
15947
|
-
operationId: getSeatsUsageForOrganizationById
|
|
15948
|
-
summary: Get seats usage metrics for an organization
|
|
15949
|
-
tags:
|
|
15950
|
-
- organizations
|
|
15951
|
-
- usage
|
|
15952
|
-
security:
|
|
15953
|
-
- user-internal: []
|
|
15954
|
-
parameters:
|
|
15955
|
-
- $ref: "#/components/parameters/organizationId"
|
|
15956
|
-
responses:
|
|
15957
|
-
"200":
|
|
15958
|
-
description: OK
|
|
15959
|
-
content:
|
|
15960
|
-
application/json:
|
|
15961
|
-
schema:
|
|
15962
|
-
type: object
|
|
15963
|
-
properties:
|
|
15964
|
-
seats:
|
|
15965
|
-
$ref: "#/components/schemas/OrganizationUsageSeats"
|
|
15966
|
-
required:
|
|
15967
|
-
- seats
|
|
15968
|
-
default:
|
|
15969
|
-
$ref: "#/components/responses/UnexpectedError"
|
|
15970
15983
|
"/orgs/{organizationId}/schemas":
|
|
15971
15984
|
get:
|
|
15972
15985
|
operationId: listEntitySchemas
|
|
@@ -17446,6 +17459,42 @@ paths:
|
|
|
17446
17459
|
$ref: "#/components/responses/BadRequestError"
|
|
17447
17460
|
default:
|
|
17448
17461
|
$ref: "#/components/responses/UnexpectedError"
|
|
17462
|
+
"/orgs/{organizationId}/sites/{siteId}/spaces/{siteSpaceId}/move":
|
|
17463
|
+
post:
|
|
17464
|
+
operationId: moveSiteSpace
|
|
17465
|
+
summary: Move a site space to a new position in the site.
|
|
17466
|
+
tags:
|
|
17467
|
+
- sites
|
|
17468
|
+
security:
|
|
17469
|
+
- user: []
|
|
17470
|
+
parameters:
|
|
17471
|
+
- $ref: "#/components/parameters/organizationId"
|
|
17472
|
+
- $ref: "#/components/parameters/siteId"
|
|
17473
|
+
- $ref: "#/components/parameters/siteSpaceId"
|
|
17474
|
+
requestBody:
|
|
17475
|
+
content:
|
|
17476
|
+
application/json:
|
|
17477
|
+
schema:
|
|
17478
|
+
type: object
|
|
17479
|
+
properties:
|
|
17480
|
+
position:
|
|
17481
|
+
description: The position where to move the site space. When not provided the site space is moved at the end of the site.
|
|
17482
|
+
$ref: "#/components/schemas/SiteSpaceMovePosition"
|
|
17483
|
+
responses:
|
|
17484
|
+
"200":
|
|
17485
|
+
description: Site space moved
|
|
17486
|
+
content:
|
|
17487
|
+
application/json:
|
|
17488
|
+
schema:
|
|
17489
|
+
$ref: "#/components/schemas/SiteSpace"
|
|
17490
|
+
"400":
|
|
17491
|
+
description: Invalid move site space position provided
|
|
17492
|
+
$ref: "#/components/responses/BadRequestError"
|
|
17493
|
+
"404":
|
|
17494
|
+
description: No matching Site space found
|
|
17495
|
+
$ref: "#/components/responses/NotFoundError"
|
|
17496
|
+
default:
|
|
17497
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
17449
17498
|
"/orgs/{organizationId}/sites/{siteId}/permissions/aggregate":
|
|
17450
17499
|
get:
|
|
17451
17500
|
operationId: listPermissionsAggregateInSite
|
|
@@ -17497,209 +17546,6 @@ paths:
|
|
|
17497
17546
|
- origin
|
|
17498
17547
|
default:
|
|
17499
17548
|
$ref: "#/components/responses/UnexpectedError"
|
|
17500
|
-
"/orgs/{organizationId}/seats":
|
|
17501
|
-
get:
|
|
17502
|
-
operationId: listSeatsInOrganizationById
|
|
17503
|
-
summary: List all seats in an organization
|
|
17504
|
-
tags:
|
|
17505
|
-
- seats
|
|
17506
|
-
security:
|
|
17507
|
-
- user-internal: []
|
|
17508
|
-
parameters:
|
|
17509
|
-
- $ref: "#/components/parameters/organizationId"
|
|
17510
|
-
responses:
|
|
17511
|
-
"200":
|
|
17512
|
-
description: OK
|
|
17513
|
-
content:
|
|
17514
|
-
application/json:
|
|
17515
|
-
schema:
|
|
17516
|
-
allOf:
|
|
17517
|
-
- $ref: "#/components/schemas/List"
|
|
17518
|
-
- type: object
|
|
17519
|
-
required:
|
|
17520
|
-
- items
|
|
17521
|
-
properties:
|
|
17522
|
-
items:
|
|
17523
|
-
type: array
|
|
17524
|
-
items:
|
|
17525
|
-
$ref: "#/components/schemas/Seat"
|
|
17526
|
-
default:
|
|
17527
|
-
$ref: "#/components/responses/UnexpectedError"
|
|
17528
|
-
post:
|
|
17529
|
-
operationId: addSeatsToOrganizationById
|
|
17530
|
-
summary: Add more seats to an organization
|
|
17531
|
-
tags:
|
|
17532
|
-
- seats
|
|
17533
|
-
security:
|
|
17534
|
-
- user-internal: []
|
|
17535
|
-
parameters:
|
|
17536
|
-
- $ref: "#/components/parameters/organizationId"
|
|
17537
|
-
requestBody:
|
|
17538
|
-
required: true
|
|
17539
|
-
content:
|
|
17540
|
-
application/json:
|
|
17541
|
-
schema:
|
|
17542
|
-
type: object
|
|
17543
|
-
properties:
|
|
17544
|
-
amount:
|
|
17545
|
-
description: How many seats to add
|
|
17546
|
-
type: number
|
|
17547
|
-
required:
|
|
17548
|
-
- amount
|
|
17549
|
-
responses:
|
|
17550
|
-
"201":
|
|
17551
|
-
description: Seats added
|
|
17552
|
-
default:
|
|
17553
|
-
$ref: "#/components/responses/UnexpectedError"
|
|
17554
|
-
delete:
|
|
17555
|
-
operationId: removeSeatsFromOrganizationById
|
|
17556
|
-
summary: Remove unassigned seats from an organization
|
|
17557
|
-
tags:
|
|
17558
|
-
- seats
|
|
17559
|
-
security:
|
|
17560
|
-
- user-internal: []
|
|
17561
|
-
parameters:
|
|
17562
|
-
- $ref: "#/components/parameters/organizationId"
|
|
17563
|
-
requestBody:
|
|
17564
|
-
content:
|
|
17565
|
-
application/json:
|
|
17566
|
-
schema:
|
|
17567
|
-
type: object
|
|
17568
|
-
properties:
|
|
17569
|
-
amount:
|
|
17570
|
-
description: How many seats to remove. Omit to remove all unassigned seats.
|
|
17571
|
-
type: number
|
|
17572
|
-
responses:
|
|
17573
|
-
"205":
|
|
17574
|
-
description: Seats removed
|
|
17575
|
-
default:
|
|
17576
|
-
$ref: "#/components/responses/UnexpectedError"
|
|
17577
|
-
"/orgs/{organizationId}/seats/members":
|
|
17578
|
-
put:
|
|
17579
|
-
operationId: assignSeatsToMembersInOrganizationById
|
|
17580
|
-
summary: Assign seats for one or more members within an organization
|
|
17581
|
-
tags:
|
|
17582
|
-
- seats
|
|
17583
|
-
security:
|
|
17584
|
-
- user-internal: []
|
|
17585
|
-
parameters:
|
|
17586
|
-
- $ref: "#/components/parameters/organizationId"
|
|
17587
|
-
requestBody:
|
|
17588
|
-
required: true
|
|
17589
|
-
content:
|
|
17590
|
-
application/json:
|
|
17591
|
-
schema:
|
|
17592
|
-
type: array
|
|
17593
|
-
description: A list of members
|
|
17594
|
-
minItems: 1
|
|
17595
|
-
items:
|
|
17596
|
-
type: object
|
|
17597
|
-
properties:
|
|
17598
|
-
member:
|
|
17599
|
-
description: The unique ID of the organization member
|
|
17600
|
-
type: string
|
|
17601
|
-
required:
|
|
17602
|
-
- member
|
|
17603
|
-
responses:
|
|
17604
|
-
"200":
|
|
17605
|
-
description: Seats assigned
|
|
17606
|
-
"409":
|
|
17607
|
-
description: Not enough seats available
|
|
17608
|
-
$ref: "#/components/responses/ConflictError"
|
|
17609
|
-
default:
|
|
17610
|
-
$ref: "#/components/responses/UnexpectedError"
|
|
17611
|
-
delete:
|
|
17612
|
-
operationId: revokeSeatsFromMembersInOrganizationById
|
|
17613
|
-
summary: Revoke seats for one or more members within an organization
|
|
17614
|
-
tags:
|
|
17615
|
-
- seats
|
|
17616
|
-
security:
|
|
17617
|
-
- user-internal: []
|
|
17618
|
-
parameters:
|
|
17619
|
-
- $ref: "#/components/parameters/organizationId"
|
|
17620
|
-
requestBody:
|
|
17621
|
-
required: true
|
|
17622
|
-
content:
|
|
17623
|
-
application/json:
|
|
17624
|
-
schema:
|
|
17625
|
-
type: array
|
|
17626
|
-
description: A list of members
|
|
17627
|
-
minItems: 1
|
|
17628
|
-
items:
|
|
17629
|
-
type: object
|
|
17630
|
-
properties:
|
|
17631
|
-
member:
|
|
17632
|
-
description: The unique ID of the organization member
|
|
17633
|
-
type: string
|
|
17634
|
-
required:
|
|
17635
|
-
- member
|
|
17636
|
-
responses:
|
|
17637
|
-
"205":
|
|
17638
|
-
description: Seats revoked
|
|
17639
|
-
"409":
|
|
17640
|
-
description: Not enough seats available
|
|
17641
|
-
$ref: "#/components/responses/ConflictError"
|
|
17642
|
-
default:
|
|
17643
|
-
$ref: "#/components/responses/UnexpectedError"
|
|
17644
|
-
"/orgs/{organizationId}/seats/members/{userId}":
|
|
17645
|
-
get:
|
|
17646
|
-
operationId: getSeatForMemberInOrganizationById
|
|
17647
|
-
summary: Get the seat of a member of the organization
|
|
17648
|
-
tags:
|
|
17649
|
-
- seats
|
|
17650
|
-
security:
|
|
17651
|
-
- user-internal: []
|
|
17652
|
-
parameters:
|
|
17653
|
-
- $ref: "#/components/parameters/organizationId"
|
|
17654
|
-
- $ref: "#/components/parameters/userId"
|
|
17655
|
-
responses:
|
|
17656
|
-
"200":
|
|
17657
|
-
description: OK
|
|
17658
|
-
content:
|
|
17659
|
-
application/json:
|
|
17660
|
-
schema:
|
|
17661
|
-
$ref: "#/components/schemas/Seat"
|
|
17662
|
-
"409":
|
|
17663
|
-
description: Member has no seat assigned
|
|
17664
|
-
$ref: "#/components/responses/ConflictError"
|
|
17665
|
-
default:
|
|
17666
|
-
$ref: "#/components/responses/UnexpectedError"
|
|
17667
|
-
put:
|
|
17668
|
-
operationId: assignSeatToMemberInOrganizationById
|
|
17669
|
-
summary: Assign an available seat to a member of the organization
|
|
17670
|
-
tags:
|
|
17671
|
-
- seats
|
|
17672
|
-
security:
|
|
17673
|
-
- user-internal: []
|
|
17674
|
-
parameters:
|
|
17675
|
-
- $ref: "#/components/parameters/organizationId"
|
|
17676
|
-
- $ref: "#/components/parameters/userId"
|
|
17677
|
-
responses:
|
|
17678
|
-
"200":
|
|
17679
|
-
description: Seat assigned
|
|
17680
|
-
"409":
|
|
17681
|
-
description: Not enough seats available
|
|
17682
|
-
$ref: "#/components/responses/ConflictError"
|
|
17683
|
-
default:
|
|
17684
|
-
$ref: "#/components/responses/UnexpectedError"
|
|
17685
|
-
delete:
|
|
17686
|
-
operationId: revokeSeatFromMemberInOrganizationById
|
|
17687
|
-
summary: Revoke a seat from a member of the organization
|
|
17688
|
-
tags:
|
|
17689
|
-
- seats
|
|
17690
|
-
security:
|
|
17691
|
-
- user-internal: []
|
|
17692
|
-
parameters:
|
|
17693
|
-
- $ref: "#/components/parameters/organizationId"
|
|
17694
|
-
- $ref: "#/components/parameters/userId"
|
|
17695
|
-
responses:
|
|
17696
|
-
"205":
|
|
17697
|
-
description: Seat revoked
|
|
17698
|
-
"409":
|
|
17699
|
-
description: Member has no seat assigned
|
|
17700
|
-
$ref: "#/components/responses/ConflictError"
|
|
17701
|
-
default:
|
|
17702
|
-
$ref: "#/components/responses/UnexpectedError"
|
|
17703
17549
|
"/custom-hostnames/{hostname}":
|
|
17704
17550
|
get:
|
|
17705
17551
|
operationId: getCustomHostname
|