@gitbook/api 0.36.0 → 0.37.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 +933 -90
- package/dist/index.cjs +242 -1
- package/dist/index.js +242 -1
- package/package.json +1 -1
- package/spec/openapi.json +3210 -1077
- package/spec/openapi.yaml +1367 -108
package/spec/openapi.yaml
CHANGED
|
@@ -43,6 +43,8 @@ components:
|
|
|
43
43
|
description: The number of results per page
|
|
44
44
|
schema:
|
|
45
45
|
type: number
|
|
46
|
+
minimum: 0
|
|
47
|
+
maximum: 1000
|
|
46
48
|
listPage:
|
|
47
49
|
name: page
|
|
48
50
|
in: query
|
|
@@ -97,7 +99,7 @@ components:
|
|
|
97
99
|
revisionMetadata:
|
|
98
100
|
name: metadata
|
|
99
101
|
in: query
|
|
100
|
-
description: If `false
|
|
102
|
+
description: If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
|
|
101
103
|
schema:
|
|
102
104
|
type: boolean
|
|
103
105
|
default: true
|
|
@@ -285,13 +287,6 @@ components:
|
|
|
285
287
|
description: The custom hostname, for example "docs.gitbook.com"
|
|
286
288
|
schema:
|
|
287
289
|
type: string
|
|
288
|
-
backofficeHostname:
|
|
289
|
-
name: hostname
|
|
290
|
-
in: path
|
|
291
|
-
required: true
|
|
292
|
-
description: The custom hostname
|
|
293
|
-
schema:
|
|
294
|
-
type: string
|
|
295
290
|
ifUnmodifiedSince:
|
|
296
291
|
in: header
|
|
297
292
|
name: If-Unmodified-Since
|
|
@@ -2961,6 +2956,7 @@ components:
|
|
|
2961
2956
|
- data
|
|
2962
2957
|
- isVoid
|
|
2963
2958
|
ContentRef:
|
|
2959
|
+
description: A relative reference to content in GitBook.
|
|
2964
2960
|
oneOf:
|
|
2965
2961
|
- $ref: "#/components/schemas/ContentRefFile"
|
|
2966
2962
|
- $ref: "#/components/schemas/ContentRefURL"
|
|
@@ -3094,6 +3090,143 @@ components:
|
|
|
3094
3090
|
- kind
|
|
3095
3091
|
- syncedBlock
|
|
3096
3092
|
- organization
|
|
3093
|
+
ContentLocation:
|
|
3094
|
+
description: An absolute reference to content in GitBook.
|
|
3095
|
+
oneOf:
|
|
3096
|
+
- $ref: "#/components/schemas/ContentLocationFile"
|
|
3097
|
+
- $ref: "#/components/schemas/ContentLocationURL"
|
|
3098
|
+
- $ref: "#/components/schemas/ContentLocationPage"
|
|
3099
|
+
- $ref: "#/components/schemas/ContentLocationUser"
|
|
3100
|
+
- $ref: "#/components/schemas/ContentLocationCollection"
|
|
3101
|
+
- $ref: "#/components/schemas/ContentLocationSpace"
|
|
3102
|
+
- $ref: "#/components/schemas/ContentLocationSnippet"
|
|
3103
|
+
- $ref: "#/components/schemas/ContentLocationSyncedBlock"
|
|
3104
|
+
ContentLocationURL:
|
|
3105
|
+
type: object
|
|
3106
|
+
properties:
|
|
3107
|
+
kind:
|
|
3108
|
+
type: string
|
|
3109
|
+
enum:
|
|
3110
|
+
- url
|
|
3111
|
+
url:
|
|
3112
|
+
type: string
|
|
3113
|
+
required:
|
|
3114
|
+
- kind
|
|
3115
|
+
- url
|
|
3116
|
+
ContentLocationFile:
|
|
3117
|
+
type: object
|
|
3118
|
+
properties:
|
|
3119
|
+
kind:
|
|
3120
|
+
type: string
|
|
3121
|
+
enum:
|
|
3122
|
+
- file
|
|
3123
|
+
organization:
|
|
3124
|
+
$ref: "#/components/schemas/Organization"
|
|
3125
|
+
space:
|
|
3126
|
+
$ref: "#/components/schemas/Space"
|
|
3127
|
+
changeRequest:
|
|
3128
|
+
$ref: "#/components/schemas/ChangeRequest"
|
|
3129
|
+
file:
|
|
3130
|
+
$ref: "#/components/schemas/RevisionFile"
|
|
3131
|
+
required:
|
|
3132
|
+
- kind
|
|
3133
|
+
- organization
|
|
3134
|
+
- space
|
|
3135
|
+
- file
|
|
3136
|
+
ContentLocationPage:
|
|
3137
|
+
type: object
|
|
3138
|
+
properties:
|
|
3139
|
+
kind:
|
|
3140
|
+
type: string
|
|
3141
|
+
enum:
|
|
3142
|
+
- page
|
|
3143
|
+
organization:
|
|
3144
|
+
$ref: "#/components/schemas/Organization"
|
|
3145
|
+
page:
|
|
3146
|
+
$ref: "#/components/schemas/RevisionPage"
|
|
3147
|
+
space:
|
|
3148
|
+
$ref: "#/components/schemas/Space"
|
|
3149
|
+
changeRequest:
|
|
3150
|
+
$ref: "#/components/schemas/ChangeRequest"
|
|
3151
|
+
anchor:
|
|
3152
|
+
type: string
|
|
3153
|
+
required:
|
|
3154
|
+
- kind
|
|
3155
|
+
- organization
|
|
3156
|
+
- space
|
|
3157
|
+
- page
|
|
3158
|
+
ContentLocationUser:
|
|
3159
|
+
type: object
|
|
3160
|
+
properties:
|
|
3161
|
+
kind:
|
|
3162
|
+
type: string
|
|
3163
|
+
enum:
|
|
3164
|
+
- user
|
|
3165
|
+
user:
|
|
3166
|
+
$ref: "#/components/schemas/User"
|
|
3167
|
+
required:
|
|
3168
|
+
- kind
|
|
3169
|
+
- user
|
|
3170
|
+
ContentLocationCollection:
|
|
3171
|
+
type: object
|
|
3172
|
+
properties:
|
|
3173
|
+
kind:
|
|
3174
|
+
type: string
|
|
3175
|
+
enum:
|
|
3176
|
+
- collection
|
|
3177
|
+
organization:
|
|
3178
|
+
$ref: "#/components/schemas/Organization"
|
|
3179
|
+
collection:
|
|
3180
|
+
$ref: "#/components/schemas/Collection"
|
|
3181
|
+
required:
|
|
3182
|
+
- kind
|
|
3183
|
+
- organization
|
|
3184
|
+
- collection
|
|
3185
|
+
ContentLocationSpace:
|
|
3186
|
+
type: object
|
|
3187
|
+
properties:
|
|
3188
|
+
kind:
|
|
3189
|
+
type: string
|
|
3190
|
+
enum:
|
|
3191
|
+
- space
|
|
3192
|
+
organization:
|
|
3193
|
+
$ref: "#/components/schemas/Organization"
|
|
3194
|
+
space:
|
|
3195
|
+
$ref: "#/components/schemas/Space"
|
|
3196
|
+
required:
|
|
3197
|
+
- kind
|
|
3198
|
+
- organization
|
|
3199
|
+
- space
|
|
3200
|
+
ContentLocationSnippet:
|
|
3201
|
+
type: object
|
|
3202
|
+
properties:
|
|
3203
|
+
kind:
|
|
3204
|
+
type: string
|
|
3205
|
+
enum:
|
|
3206
|
+
- snippet
|
|
3207
|
+
organization:
|
|
3208
|
+
$ref: "#/components/schemas/Organization"
|
|
3209
|
+
snippet:
|
|
3210
|
+
$ref: "#/components/schemas/Snippet"
|
|
3211
|
+
required:
|
|
3212
|
+
- kind
|
|
3213
|
+
- organization
|
|
3214
|
+
- snippet
|
|
3215
|
+
ContentLocationSyncedBlock:
|
|
3216
|
+
type: object
|
|
3217
|
+
properties:
|
|
3218
|
+
kind:
|
|
3219
|
+
type: string
|
|
3220
|
+
enum:
|
|
3221
|
+
- synced-block
|
|
3222
|
+
organization:
|
|
3223
|
+
$ref: "#/components/schemas/Organization"
|
|
3224
|
+
syncedBlock:
|
|
3225
|
+
$ref: "#/components/schemas/SyncedBlock"
|
|
3226
|
+
required:
|
|
3227
|
+
- kind
|
|
3228
|
+
- organization
|
|
3229
|
+
- syncedBlock
|
|
3097
3230
|
Space:
|
|
3098
3231
|
type: object
|
|
3099
3232
|
properties:
|
|
@@ -3190,30 +3323,38 @@ components:
|
|
|
3190
3323
|
maxLength: 50
|
|
3191
3324
|
SpaceVisitorAuth:
|
|
3192
3325
|
oneOf:
|
|
3193
|
-
-
|
|
3194
|
-
|
|
3195
|
-
|
|
3196
|
-
|
|
3197
|
-
|
|
3198
|
-
|
|
3199
|
-
|
|
3200
|
-
|
|
3201
|
-
|
|
3202
|
-
- backend
|
|
3203
|
-
- type: object
|
|
3204
|
-
title: Integration
|
|
3205
|
-
properties:
|
|
3206
|
-
backend:
|
|
3207
|
-
type: string
|
|
3208
|
-
description: Integration as backend for Visitor Authentication
|
|
3209
|
-
enum:
|
|
3326
|
+
- $ref: "#/components/schemas/SpaceVisitorAuthCustomBackend"
|
|
3327
|
+
- allOf:
|
|
3328
|
+
- $ref: "#/components/schemas/SpaceVisitorAuthIntegrationBackend"
|
|
3329
|
+
- type: object
|
|
3330
|
+
properties:
|
|
3331
|
+
integration:
|
|
3332
|
+
type: string
|
|
3333
|
+
description: Name of integration being used as the backend for Visitor Authentication
|
|
3334
|
+
required:
|
|
3210
3335
|
- integration
|
|
3211
|
-
|
|
3212
|
-
|
|
3213
|
-
|
|
3214
|
-
|
|
3215
|
-
|
|
3336
|
+
SpaceVisitorAuthCustomBackend:
|
|
3337
|
+
type: object
|
|
3338
|
+
title: Custom backend for Visitor Authentication
|
|
3339
|
+
properties:
|
|
3340
|
+
backend:
|
|
3341
|
+
type: string
|
|
3342
|
+
description: Custom backend for Visitor Authentication
|
|
3343
|
+
enum:
|
|
3344
|
+
- custom
|
|
3345
|
+
required:
|
|
3346
|
+
- backend
|
|
3347
|
+
SpaceVisitorAuthIntegrationBackend:
|
|
3348
|
+
type: object
|
|
3349
|
+
title: Integration backend for Visitor Authentication
|
|
3350
|
+
properties:
|
|
3351
|
+
backend:
|
|
3352
|
+
type: string
|
|
3353
|
+
description: Integration as backend for Visitor Authentication
|
|
3354
|
+
enum:
|
|
3216
3355
|
- integration
|
|
3356
|
+
required:
|
|
3357
|
+
- backend
|
|
3217
3358
|
RevisionBase:
|
|
3218
3359
|
type: object
|
|
3219
3360
|
properties:
|
|
@@ -4256,6 +4397,155 @@ components:
|
|
|
4256
4397
|
required:
|
|
4257
4398
|
- type
|
|
4258
4399
|
- organization
|
|
4400
|
+
OrganizationUsage:
|
|
4401
|
+
type: object
|
|
4402
|
+
description: All usage metrics of an organization
|
|
4403
|
+
properties:
|
|
4404
|
+
spaces:
|
|
4405
|
+
$ref: "#/components/schemas/OrganizationUsageSpaces"
|
|
4406
|
+
collections:
|
|
4407
|
+
$ref: "#/components/schemas/OrganizationUsageCollections"
|
|
4408
|
+
sites:
|
|
4409
|
+
$ref: "#/components/schemas/OrganizationUsageSites"
|
|
4410
|
+
seats:
|
|
4411
|
+
$ref: "#/components/schemas/OrganizationUsageSeats"
|
|
4412
|
+
teams:
|
|
4413
|
+
$ref: "#/components/schemas/OrganizationUsageTeams"
|
|
4414
|
+
members:
|
|
4415
|
+
$ref: "#/components/schemas/OrganizationUsageMembers"
|
|
4416
|
+
teamMembers:
|
|
4417
|
+
$ref: "#/components/schemas/OrganizationUsageTeamMembers"
|
|
4418
|
+
required:
|
|
4419
|
+
- spaces
|
|
4420
|
+
- collections
|
|
4421
|
+
- sites
|
|
4422
|
+
- seats
|
|
4423
|
+
- teams
|
|
4424
|
+
- members
|
|
4425
|
+
- teamMembers
|
|
4426
|
+
OrganizationUsageSpaces:
|
|
4427
|
+
type: object
|
|
4428
|
+
description: Spaces usage metrics of an organization
|
|
4429
|
+
properties:
|
|
4430
|
+
total:
|
|
4431
|
+
description: Count of all spaces
|
|
4432
|
+
type: number
|
|
4433
|
+
required:
|
|
4434
|
+
- total
|
|
4435
|
+
OrganizationUsageCollections:
|
|
4436
|
+
type: object
|
|
4437
|
+
description: Collections usage metrics of an organization
|
|
4438
|
+
properties:
|
|
4439
|
+
total:
|
|
4440
|
+
description: Count of all collections
|
|
4441
|
+
type: number
|
|
4442
|
+
required:
|
|
4443
|
+
- total
|
|
4444
|
+
OrganizationUsageSites:
|
|
4445
|
+
type: object
|
|
4446
|
+
description: Sites usage metrics of an organization
|
|
4447
|
+
properties:
|
|
4448
|
+
total:
|
|
4449
|
+
description: Count of all sites
|
|
4450
|
+
type: number
|
|
4451
|
+
public:
|
|
4452
|
+
description: Count of all public sites
|
|
4453
|
+
type: number
|
|
4454
|
+
unlisted:
|
|
4455
|
+
description: Count of all unlisted sites
|
|
4456
|
+
type: number
|
|
4457
|
+
shareLink:
|
|
4458
|
+
description: Count of all link-shared sites
|
|
4459
|
+
type: number
|
|
4460
|
+
visitorAuth:
|
|
4461
|
+
description: Count of all visitor-authenticated sites
|
|
4462
|
+
type: number
|
|
4463
|
+
unpublished:
|
|
4464
|
+
description: Count of all unpublished sites
|
|
4465
|
+
type: number
|
|
4466
|
+
required:
|
|
4467
|
+
- total
|
|
4468
|
+
- public
|
|
4469
|
+
- unlisted
|
|
4470
|
+
- shareLink
|
|
4471
|
+
- visitorAuth
|
|
4472
|
+
- unpublished
|
|
4473
|
+
OrganizationUsageMembers:
|
|
4474
|
+
type: object
|
|
4475
|
+
description: Members usage metrics of an organization
|
|
4476
|
+
properties:
|
|
4477
|
+
total:
|
|
4478
|
+
description: Count of all members
|
|
4479
|
+
type: number
|
|
4480
|
+
admin:
|
|
4481
|
+
description: Count of all admins
|
|
4482
|
+
type: number
|
|
4483
|
+
create:
|
|
4484
|
+
description: Count of all creators
|
|
4485
|
+
type: number
|
|
4486
|
+
edit:
|
|
4487
|
+
description: Count of all editors
|
|
4488
|
+
type: number
|
|
4489
|
+
review:
|
|
4490
|
+
description: Count of all reviewers
|
|
4491
|
+
type: number
|
|
4492
|
+
comment:
|
|
4493
|
+
description: Count of all commenters
|
|
4494
|
+
type: number
|
|
4495
|
+
read:
|
|
4496
|
+
description: Count of all readers
|
|
4497
|
+
type: number
|
|
4498
|
+
guest:
|
|
4499
|
+
description: Count of all guests
|
|
4500
|
+
type: number
|
|
4501
|
+
required:
|
|
4502
|
+
- total
|
|
4503
|
+
- admin
|
|
4504
|
+
- create
|
|
4505
|
+
- edit
|
|
4506
|
+
- review
|
|
4507
|
+
- comment
|
|
4508
|
+
- read
|
|
4509
|
+
- guest
|
|
4510
|
+
OrganizationUsageTeams:
|
|
4511
|
+
type: object
|
|
4512
|
+
description: Team members usage metrics of an organization
|
|
4513
|
+
properties:
|
|
4514
|
+
total:
|
|
4515
|
+
description: Count of all teams
|
|
4516
|
+
type: number
|
|
4517
|
+
required:
|
|
4518
|
+
- total
|
|
4519
|
+
OrganizationUsageTeamMembers:
|
|
4520
|
+
type: object
|
|
4521
|
+
description: Team members usage metrics of an organization
|
|
4522
|
+
properties:
|
|
4523
|
+
total:
|
|
4524
|
+
description: Count of all organization members in a team
|
|
4525
|
+
type: number
|
|
4526
|
+
owner:
|
|
4527
|
+
description: Count of all team owners
|
|
4528
|
+
type: number
|
|
4529
|
+
member:
|
|
4530
|
+
description: Count of all team members
|
|
4531
|
+
type: number
|
|
4532
|
+
required:
|
|
4533
|
+
- total
|
|
4534
|
+
- owner
|
|
4535
|
+
- member
|
|
4536
|
+
OrganizationUsageSeats:
|
|
4537
|
+
type: object
|
|
4538
|
+
description: Seats usage metrics of an organization
|
|
4539
|
+
properties:
|
|
4540
|
+
total:
|
|
4541
|
+
description: The total amount of seats in the organization.
|
|
4542
|
+
type: number
|
|
4543
|
+
available:
|
|
4544
|
+
description: How many seats are still available.
|
|
4545
|
+
type: number
|
|
4546
|
+
required:
|
|
4547
|
+
- total
|
|
4548
|
+
- available
|
|
4259
4549
|
Capture:
|
|
4260
4550
|
type: object
|
|
4261
4551
|
properties:
|
|
@@ -4573,8 +4863,6 @@ components:
|
|
|
4573
4863
|
type: string
|
|
4574
4864
|
description: Title describing the synced block.
|
|
4575
4865
|
maxLength: 100
|
|
4576
|
-
document:
|
|
4577
|
-
$ref: "#/components/schemas/JSONDocument"
|
|
4578
4866
|
urls:
|
|
4579
4867
|
type: object
|
|
4580
4868
|
description: URLs associated with the object
|
|
@@ -4584,13 +4872,16 @@ components:
|
|
|
4584
4872
|
$ref: "#/components/schemas/URL"
|
|
4585
4873
|
required:
|
|
4586
4874
|
- location
|
|
4875
|
+
files:
|
|
4876
|
+
type: array
|
|
4877
|
+
items:
|
|
4878
|
+
$ref: "#/components/schemas/RevisionFile"
|
|
4587
4879
|
required:
|
|
4588
4880
|
- id
|
|
4589
4881
|
- organization
|
|
4590
4882
|
- source
|
|
4591
4883
|
- createdAt
|
|
4592
4884
|
- urls
|
|
4593
|
-
- document
|
|
4594
4885
|
ContentAuditRelation:
|
|
4595
4886
|
type: object
|
|
4596
4887
|
description: Content audit relation
|
|
@@ -4745,16 +5036,11 @@ components:
|
|
|
4745
5036
|
total:
|
|
4746
5037
|
description: Count of broken links
|
|
4747
5038
|
type: number
|
|
4748
|
-
space:
|
|
4749
|
-
description: Count of broken links in space. When in the context of a change request it refers to the broken links already existing at the time of the change request creation.
|
|
4750
|
-
type: number
|
|
4751
5039
|
changeRequest:
|
|
4752
5040
|
description: Count of broken links that were broken in current change request, if applicable.
|
|
4753
5041
|
type: number
|
|
4754
5042
|
required:
|
|
4755
5043
|
- total
|
|
4756
|
-
- space
|
|
4757
|
-
- changeRequest
|
|
4758
5044
|
required:
|
|
4759
5045
|
- total
|
|
4760
5046
|
- broken
|
|
@@ -8061,6 +8347,17 @@ components:
|
|
|
8061
8347
|
- $ref: "#/components/schemas/SpacePublishingCustomizationChannel"
|
|
8062
8348
|
- $ref: "#/components/schemas/SpaceEntitiesChannel"
|
|
8063
8349
|
- $ref: "#/components/schemas/SpaceCustomFieldsChannel"
|
|
8350
|
+
- type: object
|
|
8351
|
+
properties:
|
|
8352
|
+
channel:
|
|
8353
|
+
type: string
|
|
8354
|
+
enum:
|
|
8355
|
+
- space-broken-links
|
|
8356
|
+
space:
|
|
8357
|
+
type: string
|
|
8358
|
+
required:
|
|
8359
|
+
- channel
|
|
8360
|
+
- space
|
|
8064
8361
|
- $ref: "#/components/schemas/BackofficeUserInfoChannel"
|
|
8065
8362
|
- $ref: "#/components/schemas/SpaceIntegrationsChannel"
|
|
8066
8363
|
- $ref: "#/components/schemas/OrganizationCustomFieldsChannel"
|
|
@@ -8112,6 +8409,9 @@ components:
|
|
|
8112
8409
|
- $ref: "#/components/schemas/OrganizationIntegrationsChannel"
|
|
8113
8410
|
- $ref: "#/components/schemas/OrganizationInstallationsChannel"
|
|
8114
8411
|
- $ref: "#/components/schemas/OrganizationSitesChannel"
|
|
8412
|
+
- $ref: "#/components/schemas/OrganizationSeatsChannel"
|
|
8413
|
+
- $ref: "#/components/schemas/OrganizationUsageSeatsChannel"
|
|
8414
|
+
- $ref: "#/components/schemas/OrganizationSeatChannel"
|
|
8115
8415
|
- type: object
|
|
8116
8416
|
properties:
|
|
8117
8417
|
channel:
|
|
@@ -8195,19 +8495,13 @@ components:
|
|
|
8195
8495
|
- $ref: "#/components/schemas/IntegrationSiteInstallationChannel"
|
|
8196
8496
|
- $ref: "#/components/schemas/IntegrationSiteInstallationsChannel"
|
|
8197
8497
|
- $ref: "#/components/schemas/SiteChannel"
|
|
8498
|
+
- $ref: "#/components/schemas/SiteCustomizationChannel"
|
|
8198
8499
|
- $ref: "#/components/schemas/SiteSpaceChannel"
|
|
8500
|
+
- $ref: "#/components/schemas/SiteSpaceCustomizationChannel"
|
|
8199
8501
|
- $ref: "#/components/schemas/SiteSpacesChannel"
|
|
8200
|
-
-
|
|
8201
|
-
|
|
8202
|
-
|
|
8203
|
-
type: string
|
|
8204
|
-
enum:
|
|
8205
|
-
- site-publishing-auth
|
|
8206
|
-
site:
|
|
8207
|
-
type: string
|
|
8208
|
-
required:
|
|
8209
|
-
- channel
|
|
8210
|
-
- site
|
|
8502
|
+
- $ref: "#/components/schemas/SitePublishingAuthChannel"
|
|
8503
|
+
- $ref: "#/components/schemas/SiteShareLinksChannel"
|
|
8504
|
+
- $ref: "#/components/schemas/SiteShareLinkChannel"
|
|
8211
8505
|
- $ref: "#/components/schemas/CustomHostnameChannel"
|
|
8212
8506
|
discriminator:
|
|
8213
8507
|
propertyName: channel
|
|
@@ -8638,6 +8932,48 @@ components:
|
|
|
8638
8932
|
required:
|
|
8639
8933
|
- channel
|
|
8640
8934
|
- organization
|
|
8935
|
+
OrganizationSeatChannel:
|
|
8936
|
+
type: object
|
|
8937
|
+
description: Subscription channel for changes in a member seat in an organization.
|
|
8938
|
+
properties:
|
|
8939
|
+
channel:
|
|
8940
|
+
type: string
|
|
8941
|
+
enum:
|
|
8942
|
+
- organization-seat
|
|
8943
|
+
organization:
|
|
8944
|
+
type: string
|
|
8945
|
+
member:
|
|
8946
|
+
type: string
|
|
8947
|
+
required:
|
|
8948
|
+
- channel
|
|
8949
|
+
- organization
|
|
8950
|
+
- member
|
|
8951
|
+
OrganizationSeatsChannel:
|
|
8952
|
+
type: object
|
|
8953
|
+
description: Subscription channel for changes in seats in an organization.
|
|
8954
|
+
properties:
|
|
8955
|
+
channel:
|
|
8956
|
+
type: string
|
|
8957
|
+
enum:
|
|
8958
|
+
- organization-seats
|
|
8959
|
+
organization:
|
|
8960
|
+
type: string
|
|
8961
|
+
required:
|
|
8962
|
+
- channel
|
|
8963
|
+
- organization
|
|
8964
|
+
OrganizationUsageSeatsChannel:
|
|
8965
|
+
type: object
|
|
8966
|
+
description: Subscription channel for changes in seats usage in an organization.
|
|
8967
|
+
properties:
|
|
8968
|
+
channel:
|
|
8969
|
+
type: string
|
|
8970
|
+
enum:
|
|
8971
|
+
- organization-usage-seats
|
|
8972
|
+
organization:
|
|
8973
|
+
type: string
|
|
8974
|
+
required:
|
|
8975
|
+
- channel
|
|
8976
|
+
- organization
|
|
8641
8977
|
IntegrationChannel:
|
|
8642
8978
|
type: object
|
|
8643
8979
|
properties:
|
|
@@ -8743,6 +9079,30 @@ components:
|
|
|
8743
9079
|
required:
|
|
8744
9080
|
- channel
|
|
8745
9081
|
- site
|
|
9082
|
+
SiteCustomizationChannel:
|
|
9083
|
+
type: object
|
|
9084
|
+
properties:
|
|
9085
|
+
channel:
|
|
9086
|
+
type: string
|
|
9087
|
+
enum:
|
|
9088
|
+
- site-customization
|
|
9089
|
+
site:
|
|
9090
|
+
type: string
|
|
9091
|
+
required:
|
|
9092
|
+
- channel
|
|
9093
|
+
- site
|
|
9094
|
+
SitePublishingAuthChannel:
|
|
9095
|
+
type: object
|
|
9096
|
+
properties:
|
|
9097
|
+
channel:
|
|
9098
|
+
type: string
|
|
9099
|
+
enum:
|
|
9100
|
+
- site-publishing-auth
|
|
9101
|
+
site:
|
|
9102
|
+
type: string
|
|
9103
|
+
required:
|
|
9104
|
+
- channel
|
|
9105
|
+
- site
|
|
8746
9106
|
SiteSpaceChannel:
|
|
8747
9107
|
type: object
|
|
8748
9108
|
properties:
|
|
@@ -8758,6 +9118,21 @@ components:
|
|
|
8758
9118
|
- channel
|
|
8759
9119
|
- site
|
|
8760
9120
|
- siteSpace
|
|
9121
|
+
SiteSpaceCustomizationChannel:
|
|
9122
|
+
type: object
|
|
9123
|
+
properties:
|
|
9124
|
+
channel:
|
|
9125
|
+
type: string
|
|
9126
|
+
enum:
|
|
9127
|
+
- site-space-customization
|
|
9128
|
+
site:
|
|
9129
|
+
type: string
|
|
9130
|
+
siteSpace:
|
|
9131
|
+
type: string
|
|
9132
|
+
required:
|
|
9133
|
+
- channel
|
|
9134
|
+
- site
|
|
9135
|
+
- siteSpace
|
|
8761
9136
|
SiteSpacesChannel:
|
|
8762
9137
|
type: object
|
|
8763
9138
|
description: Subscription channel for changes in site spaces in an organization.
|
|
@@ -8771,6 +9146,34 @@ components:
|
|
|
8771
9146
|
required:
|
|
8772
9147
|
- channel
|
|
8773
9148
|
- site
|
|
9149
|
+
SiteShareLinkChannel:
|
|
9150
|
+
type: object
|
|
9151
|
+
properties:
|
|
9152
|
+
channel:
|
|
9153
|
+
type: string
|
|
9154
|
+
enum:
|
|
9155
|
+
- site-share-link
|
|
9156
|
+
site:
|
|
9157
|
+
type: string
|
|
9158
|
+
siteShareLink:
|
|
9159
|
+
type: string
|
|
9160
|
+
required:
|
|
9161
|
+
- channel
|
|
9162
|
+
- site
|
|
9163
|
+
- siteShareLink
|
|
9164
|
+
SiteShareLinksChannel:
|
|
9165
|
+
type: object
|
|
9166
|
+
description: Subscription channel for changes in share links in a site
|
|
9167
|
+
properties:
|
|
9168
|
+
channel:
|
|
9169
|
+
type: string
|
|
9170
|
+
enum:
|
|
9171
|
+
- site-share-links
|
|
9172
|
+
site:
|
|
9173
|
+
type: string
|
|
9174
|
+
required:
|
|
9175
|
+
- channel
|
|
9176
|
+
- site
|
|
8774
9177
|
CustomHostnameChannel:
|
|
8775
9178
|
type: object
|
|
8776
9179
|
properties:
|
|
@@ -9242,6 +9645,19 @@ components:
|
|
|
9242
9645
|
description: Name of the share link
|
|
9243
9646
|
minLength: 0
|
|
9244
9647
|
maxLength: 50
|
|
9648
|
+
SitePointer:
|
|
9649
|
+
type: object
|
|
9650
|
+
properties:
|
|
9651
|
+
type:
|
|
9652
|
+
type: string
|
|
9653
|
+
enum:
|
|
9654
|
+
- site
|
|
9655
|
+
site:
|
|
9656
|
+
type: string
|
|
9657
|
+
description: Unique identifier for the site
|
|
9658
|
+
required:
|
|
9659
|
+
- type
|
|
9660
|
+
- site
|
|
9245
9661
|
Site:
|
|
9246
9662
|
type: object
|
|
9247
9663
|
properties:
|
|
@@ -9495,6 +9911,17 @@ components:
|
|
|
9495
9911
|
- object
|
|
9496
9912
|
- privateKey
|
|
9497
9913
|
- $ref: "#/components/schemas/SpaceVisitorAuth"
|
|
9914
|
+
SitePublishingAuthUpdate:
|
|
9915
|
+
allOf:
|
|
9916
|
+
- oneOf:
|
|
9917
|
+
- $ref: "#/components/schemas/SpaceVisitorAuthCustomBackend"
|
|
9918
|
+
- $ref: "#/components/schemas/SpaceVisitorAuthIntegrationBackend"
|
|
9919
|
+
- type: object
|
|
9920
|
+
properties:
|
|
9921
|
+
fallbackURL:
|
|
9922
|
+
type: string
|
|
9923
|
+
format: uri
|
|
9924
|
+
description: A fallback URL that will be used if authentication fails.
|
|
9498
9925
|
SiteBasename:
|
|
9499
9926
|
type: string
|
|
9500
9927
|
description: Basename for the site. For e.g. api
|
|
@@ -9565,6 +9992,7 @@ components:
|
|
|
9565
9992
|
- $ref: "#/components/schemas/OrganizationPointer"
|
|
9566
9993
|
- $ref: "#/components/schemas/SpacePointer"
|
|
9567
9994
|
- $ref: "#/components/schemas/CollectionPointer"
|
|
9995
|
+
- $ref: "#/components/schemas/SitePointer"
|
|
9568
9996
|
isActive:
|
|
9569
9997
|
type: boolean
|
|
9570
9998
|
status:
|
|
@@ -9637,19 +10065,6 @@ components:
|
|
|
9637
10065
|
- member
|
|
9638
10066
|
- createdAt
|
|
9639
10067
|
- updatedAt
|
|
9640
|
-
SeatsUsage:
|
|
9641
|
-
type: object
|
|
9642
|
-
description: A summary of the seats usage and availability in the organization.
|
|
9643
|
-
properties:
|
|
9644
|
-
total:
|
|
9645
|
-
description: The total amount of seats in the organization.
|
|
9646
|
-
type: number
|
|
9647
|
-
available:
|
|
9648
|
-
description: How many seats are still available.
|
|
9649
|
-
type: number
|
|
9650
|
-
required:
|
|
9651
|
-
- total
|
|
9652
|
-
- available
|
|
9653
10068
|
responses:
|
|
9654
10069
|
BadRequestError:
|
|
9655
10070
|
description: Bad Request
|
|
@@ -11561,6 +11976,42 @@ paths:
|
|
|
11561
11976
|
- contentId
|
|
11562
11977
|
- branchId
|
|
11563
11978
|
- relation
|
|
11979
|
+
"/spaces/{spaceId}/change-requests/{changeRequestId}/pdf":
|
|
11980
|
+
get:
|
|
11981
|
+
operationId: getChangeRequestPDF
|
|
11982
|
+
summary: Generate a URL to export the content of a change request as a PDF.
|
|
11983
|
+
tags:
|
|
11984
|
+
- spaces
|
|
11985
|
+
security:
|
|
11986
|
+
- user: []
|
|
11987
|
+
parameters:
|
|
11988
|
+
- $ref: "#/components/parameters/spaceId"
|
|
11989
|
+
- $ref: "#/components/parameters/changeRequestId"
|
|
11990
|
+
- in: query
|
|
11991
|
+
name: only
|
|
11992
|
+
description: Generate a PDF only for the provided page.
|
|
11993
|
+
schema:
|
|
11994
|
+
type: boolean
|
|
11995
|
+
- in: query
|
|
11996
|
+
name: page
|
|
11997
|
+
description: ID of a specific page to generate a PDF for.
|
|
11998
|
+
schema:
|
|
11999
|
+
type: string
|
|
12000
|
+
responses:
|
|
12001
|
+
"200":
|
|
12002
|
+
description: URL of the PDF
|
|
12003
|
+
content:
|
|
12004
|
+
application/json:
|
|
12005
|
+
schema:
|
|
12006
|
+
type: object
|
|
12007
|
+
properties:
|
|
12008
|
+
url:
|
|
12009
|
+
description: Temporary URL to print the content. The URL will work for 1h.
|
|
12010
|
+
$ref: "#/components/schemas/URL"
|
|
12011
|
+
required:
|
|
12012
|
+
- url
|
|
12013
|
+
default:
|
|
12014
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
11564
12015
|
"/spaces/{spaceId}/revisions/{revisionId}":
|
|
11565
12016
|
get:
|
|
11566
12017
|
operationId: getRevisionById
|
|
@@ -12416,6 +12867,48 @@ paths:
|
|
|
12416
12867
|
description: Space share link has been deleted
|
|
12417
12868
|
default:
|
|
12418
12869
|
$ref: "#/components/responses/UnexpectedError"
|
|
12870
|
+
"/spaces/{spaceId}/links":
|
|
12871
|
+
get:
|
|
12872
|
+
operationId: listSpaceLinks
|
|
12873
|
+
summary: Get all links in the context of a space including their status and location where they appear.
|
|
12874
|
+
tags:
|
|
12875
|
+
- spaces
|
|
12876
|
+
- links
|
|
12877
|
+
security:
|
|
12878
|
+
- user: []
|
|
12879
|
+
parameters:
|
|
12880
|
+
- $ref: "#/components/parameters/spaceId"
|
|
12881
|
+
- $ref: "#/components/parameters/listPage"
|
|
12882
|
+
- $ref: "#/components/parameters/listLimit"
|
|
12883
|
+
- name: status
|
|
12884
|
+
in: query
|
|
12885
|
+
required: false
|
|
12886
|
+
schema:
|
|
12887
|
+
$ref: "#/components/schemas/ContentReferenceStatus"
|
|
12888
|
+
responses:
|
|
12889
|
+
"200":
|
|
12890
|
+
description: OK
|
|
12891
|
+
content:
|
|
12892
|
+
application/json:
|
|
12893
|
+
schema:
|
|
12894
|
+
allOf:
|
|
12895
|
+
- $ref: "#/components/schemas/List"
|
|
12896
|
+
- type: object
|
|
12897
|
+
properties:
|
|
12898
|
+
stats:
|
|
12899
|
+
$ref: "#/components/schemas/ContentReferencesStats"
|
|
12900
|
+
items:
|
|
12901
|
+
type: array
|
|
12902
|
+
items:
|
|
12903
|
+
$ref: "#/components/schemas/ContentReferenceUsage"
|
|
12904
|
+
required:
|
|
12905
|
+
- items
|
|
12906
|
+
- stats
|
|
12907
|
+
"404":
|
|
12908
|
+
description: The space could not be found.
|
|
12909
|
+
$ref: "#/components/responses/NotFoundError"
|
|
12910
|
+
default:
|
|
12911
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
12419
12912
|
"/collections/{collectionId}":
|
|
12420
12913
|
get:
|
|
12421
12914
|
operationId: getCollectionById
|
|
@@ -13400,15 +13893,15 @@ paths:
|
|
|
13400
13893
|
description: The space installation has been deleted.
|
|
13401
13894
|
default:
|
|
13402
13895
|
$ref: "#/components/responses/UnexpectedError"
|
|
13403
|
-
/
|
|
13896
|
+
"/integrations/{integrationName}/installations/{installationId}/sites":
|
|
13404
13897
|
get:
|
|
13405
|
-
operationId:
|
|
13406
|
-
summary:
|
|
13898
|
+
operationId: listIntegrationInstallationSites
|
|
13899
|
+
summary: List installations on sites for an integration in an organization
|
|
13407
13900
|
tags:
|
|
13408
|
-
-
|
|
13409
|
-
security:
|
|
13410
|
-
- user: []
|
|
13901
|
+
- integrations
|
|
13411
13902
|
parameters:
|
|
13903
|
+
- $ref: "#/components/parameters/integrationName"
|
|
13904
|
+
- $ref: "#/components/parameters/installationId"
|
|
13412
13905
|
- $ref: "#/components/parameters/listPage"
|
|
13413
13906
|
- $ref: "#/components/parameters/listLimit"
|
|
13414
13907
|
responses:
|
|
@@ -13420,76 +13913,196 @@ paths:
|
|
|
13420
13913
|
allOf:
|
|
13421
13914
|
- $ref: "#/components/schemas/List"
|
|
13422
13915
|
- type: object
|
|
13916
|
+
required:
|
|
13917
|
+
- items
|
|
13423
13918
|
properties:
|
|
13424
13919
|
items:
|
|
13425
13920
|
type: array
|
|
13426
13921
|
items:
|
|
13427
|
-
$ref: "#/components/schemas/
|
|
13428
|
-
required:
|
|
13429
|
-
- items
|
|
13922
|
+
$ref: "#/components/schemas/IntegrationSiteInstallation"
|
|
13430
13923
|
default:
|
|
13431
13924
|
$ref: "#/components/responses/UnexpectedError"
|
|
13432
13925
|
post:
|
|
13433
|
-
operationId:
|
|
13434
|
-
summary:
|
|
13926
|
+
operationId: installIntegrationOnSite
|
|
13927
|
+
summary: Install integration on a site using an existing installation
|
|
13435
13928
|
tags:
|
|
13436
|
-
-
|
|
13437
|
-
|
|
13438
|
-
-
|
|
13929
|
+
- integrations
|
|
13930
|
+
parameters:
|
|
13931
|
+
- $ref: "#/components/parameters/integrationName"
|
|
13932
|
+
- $ref: "#/components/parameters/installationId"
|
|
13439
13933
|
requestBody:
|
|
13934
|
+
required: true
|
|
13440
13935
|
content:
|
|
13441
13936
|
application/json:
|
|
13442
13937
|
schema:
|
|
13443
|
-
|
|
13938
|
+
type: object
|
|
13939
|
+
required:
|
|
13940
|
+
- siteId
|
|
13941
|
+
properties:
|
|
13942
|
+
siteId:
|
|
13943
|
+
type: string
|
|
13944
|
+
description: ID of the site to install the integration on
|
|
13444
13945
|
responses:
|
|
13445
13946
|
"201":
|
|
13446
|
-
description: Organization created
|
|
13447
13947
|
headers:
|
|
13448
13948
|
Location:
|
|
13449
|
-
description:
|
|
13949
|
+
description: URL for the installed integration on the site
|
|
13450
13950
|
schema:
|
|
13451
13951
|
type: string
|
|
13952
|
+
description: Integration installed successfully on site
|
|
13452
13953
|
content:
|
|
13453
13954
|
application/json:
|
|
13454
13955
|
schema:
|
|
13455
|
-
$ref: "#/components/schemas/
|
|
13956
|
+
$ref: "#/components/schemas/IntegrationSiteInstallation"
|
|
13957
|
+
"404":
|
|
13958
|
+
$ref: "#/components/responses/NotFoundError"
|
|
13456
13959
|
default:
|
|
13457
13960
|
$ref: "#/components/responses/UnexpectedError"
|
|
13458
|
-
"/
|
|
13961
|
+
"/integrations/{integrationName}/installations/{installationId}/sites/{siteId}":
|
|
13459
13962
|
get:
|
|
13460
|
-
operationId:
|
|
13461
|
-
summary: Get
|
|
13963
|
+
operationId: getIntegrationSiteInstallation
|
|
13964
|
+
summary: Get a specific integration's site installation
|
|
13462
13965
|
tags:
|
|
13463
|
-
-
|
|
13464
|
-
security:
|
|
13465
|
-
- user: []
|
|
13966
|
+
- integrations
|
|
13466
13967
|
parameters:
|
|
13467
|
-
- $ref: "#/components/parameters/
|
|
13968
|
+
- $ref: "#/components/parameters/integrationName"
|
|
13969
|
+
- $ref: "#/components/parameters/installationId"
|
|
13970
|
+
- $ref: "#/components/parameters/siteId"
|
|
13468
13971
|
responses:
|
|
13469
13972
|
"200":
|
|
13470
|
-
description:
|
|
13973
|
+
description: Integration site installation
|
|
13471
13974
|
content:
|
|
13472
13975
|
application/json:
|
|
13473
13976
|
schema:
|
|
13474
|
-
$ref: "#/components/schemas/
|
|
13977
|
+
$ref: "#/components/schemas/IntegrationSiteInstallation"
|
|
13475
13978
|
"404":
|
|
13476
|
-
description: No matching organization found for given id
|
|
13477
13979
|
$ref: "#/components/responses/NotFoundError"
|
|
13478
13980
|
default:
|
|
13479
13981
|
$ref: "#/components/responses/UnexpectedError"
|
|
13480
|
-
|
|
13481
|
-
operationId:
|
|
13482
|
-
summary:
|
|
13483
|
-
tags:
|
|
13484
|
-
- organizations
|
|
13485
|
-
security:
|
|
13486
|
-
- user-internal: []
|
|
13982
|
+
patch:
|
|
13983
|
+
operationId: updateIntegrationSiteInstallation
|
|
13984
|
+
summary: Update external IDs and configurations of an integration's installation for a site
|
|
13487
13985
|
parameters:
|
|
13488
|
-
- $ref: "#/components/parameters/
|
|
13986
|
+
- $ref: "#/components/parameters/integrationName"
|
|
13987
|
+
- $ref: "#/components/parameters/installationId"
|
|
13988
|
+
- $ref: "#/components/parameters/siteId"
|
|
13489
13989
|
responses:
|
|
13490
|
-
"
|
|
13491
|
-
description: The
|
|
13492
|
-
|
|
13990
|
+
"200":
|
|
13991
|
+
description: The site installation has been updated.
|
|
13992
|
+
content:
|
|
13993
|
+
application/json:
|
|
13994
|
+
schema:
|
|
13995
|
+
$ref: "#/components/schemas/IntegrationSiteInstallation"
|
|
13996
|
+
default:
|
|
13997
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
13998
|
+
requestBody:
|
|
13999
|
+
required: true
|
|
14000
|
+
content:
|
|
14001
|
+
application/json:
|
|
14002
|
+
schema:
|
|
14003
|
+
$ref: "#/components/schemas/RequestUpdateIntegrationSiteInstallation"
|
|
14004
|
+
delete:
|
|
14005
|
+
operationId: uninstallIntegrationFromSite
|
|
14006
|
+
summary: Uninstall the integration from a site
|
|
14007
|
+
parameters:
|
|
14008
|
+
- $ref: "#/components/parameters/integrationName"
|
|
14009
|
+
- $ref: "#/components/parameters/installationId"
|
|
14010
|
+
- $ref: "#/components/parameters/siteId"
|
|
14011
|
+
responses:
|
|
14012
|
+
"204":
|
|
14013
|
+
description: The site installation has been deleted.
|
|
14014
|
+
default:
|
|
14015
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
14016
|
+
/orgs:
|
|
14017
|
+
get:
|
|
14018
|
+
operationId: listOrganizationsForAuthenticatedUser
|
|
14019
|
+
summary: Get the list of organizations for the currently authenticated user
|
|
14020
|
+
tags:
|
|
14021
|
+
- organizations
|
|
14022
|
+
security:
|
|
14023
|
+
- user: []
|
|
14024
|
+
parameters:
|
|
14025
|
+
- $ref: "#/components/parameters/listPage"
|
|
14026
|
+
- $ref: "#/components/parameters/listLimit"
|
|
14027
|
+
responses:
|
|
14028
|
+
"200":
|
|
14029
|
+
description: OK
|
|
14030
|
+
content:
|
|
14031
|
+
application/json:
|
|
14032
|
+
schema:
|
|
14033
|
+
allOf:
|
|
14034
|
+
- $ref: "#/components/schemas/List"
|
|
14035
|
+
- type: object
|
|
14036
|
+
properties:
|
|
14037
|
+
items:
|
|
14038
|
+
type: array
|
|
14039
|
+
items:
|
|
14040
|
+
$ref: "#/components/schemas/Organization"
|
|
14041
|
+
required:
|
|
14042
|
+
- items
|
|
14043
|
+
default:
|
|
14044
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
14045
|
+
post:
|
|
14046
|
+
operationId: createOrganization
|
|
14047
|
+
summary: Create an organization
|
|
14048
|
+
tags:
|
|
14049
|
+
- organizations
|
|
14050
|
+
security:
|
|
14051
|
+
- user-internal: []
|
|
14052
|
+
requestBody:
|
|
14053
|
+
content:
|
|
14054
|
+
application/json:
|
|
14055
|
+
schema:
|
|
14056
|
+
$ref: "#/components/schemas/RequestCreateOrganization"
|
|
14057
|
+
responses:
|
|
14058
|
+
"201":
|
|
14059
|
+
description: Organization created
|
|
14060
|
+
headers:
|
|
14061
|
+
Location:
|
|
14062
|
+
description: API URL for the newly created organization
|
|
14063
|
+
schema:
|
|
14064
|
+
type: string
|
|
14065
|
+
content:
|
|
14066
|
+
application/json:
|
|
14067
|
+
schema:
|
|
14068
|
+
$ref: "#/components/schemas/Organization"
|
|
14069
|
+
default:
|
|
14070
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
14071
|
+
"/orgs/{organizationId}":
|
|
14072
|
+
get:
|
|
14073
|
+
operationId: getOrganizationById
|
|
14074
|
+
summary: Get an organization by its ID
|
|
14075
|
+
tags:
|
|
14076
|
+
- organizations
|
|
14077
|
+
security:
|
|
14078
|
+
- user: []
|
|
14079
|
+
parameters:
|
|
14080
|
+
- $ref: "#/components/parameters/organizationId"
|
|
14081
|
+
responses:
|
|
14082
|
+
"200":
|
|
14083
|
+
description: OK
|
|
14084
|
+
content:
|
|
14085
|
+
application/json:
|
|
14086
|
+
schema:
|
|
14087
|
+
$ref: "#/components/schemas/Organization"
|
|
14088
|
+
"404":
|
|
14089
|
+
description: No matching organization found for given id
|
|
14090
|
+
$ref: "#/components/responses/NotFoundError"
|
|
14091
|
+
default:
|
|
14092
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
14093
|
+
delete:
|
|
14094
|
+
operationId: deleteOrganizationById
|
|
14095
|
+
summary: Delete an organization by its ID
|
|
14096
|
+
tags:
|
|
14097
|
+
- organizations
|
|
14098
|
+
security:
|
|
14099
|
+
- user-internal: []
|
|
14100
|
+
parameters:
|
|
14101
|
+
- $ref: "#/components/parameters/organizationId"
|
|
14102
|
+
responses:
|
|
14103
|
+
"205":
|
|
14104
|
+
description: The organization has been successfully deleted
|
|
14105
|
+
"404":
|
|
13493
14106
|
description: No matching organization found for given id
|
|
13494
14107
|
$ref: "#/components/responses/NotFoundError"
|
|
13495
14108
|
default:
|
|
@@ -14811,6 +15424,201 @@ paths:
|
|
|
14811
15424
|
description: OK
|
|
14812
15425
|
default:
|
|
14813
15426
|
$ref: "#/components/responses/UnexpectedError"
|
|
15427
|
+
"/orgs/{organizationId}/usage":
|
|
15428
|
+
get:
|
|
15429
|
+
operationId: getUsageForOrganizationById
|
|
15430
|
+
summary: Get all usage metrics for an organization
|
|
15431
|
+
tags:
|
|
15432
|
+
- organizations
|
|
15433
|
+
- usage
|
|
15434
|
+
security:
|
|
15435
|
+
- user-internal: []
|
|
15436
|
+
parameters:
|
|
15437
|
+
- $ref: "#/components/parameters/organizationId"
|
|
15438
|
+
responses:
|
|
15439
|
+
"200":
|
|
15440
|
+
description: OK
|
|
15441
|
+
content:
|
|
15442
|
+
application/json:
|
|
15443
|
+
schema:
|
|
15444
|
+
$ref: "#/components/schemas/OrganizationUsage"
|
|
15445
|
+
default:
|
|
15446
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
15447
|
+
"/orgs/{organizationId}/usage/collections":
|
|
15448
|
+
get:
|
|
15449
|
+
operationId: getCollectionsUsageForOrganizationById
|
|
15450
|
+
summary: Get collections usage metrics for an organization
|
|
15451
|
+
tags:
|
|
15452
|
+
- organizations
|
|
15453
|
+
- usage
|
|
15454
|
+
security:
|
|
15455
|
+
- user-internal: []
|
|
15456
|
+
parameters:
|
|
15457
|
+
- $ref: "#/components/parameters/organizationId"
|
|
15458
|
+
responses:
|
|
15459
|
+
"200":
|
|
15460
|
+
description: OK
|
|
15461
|
+
content:
|
|
15462
|
+
application/json:
|
|
15463
|
+
schema:
|
|
15464
|
+
type: object
|
|
15465
|
+
properties:
|
|
15466
|
+
collections:
|
|
15467
|
+
$ref: "#/components/schemas/OrganizationUsageCollections"
|
|
15468
|
+
required:
|
|
15469
|
+
- collections
|
|
15470
|
+
default:
|
|
15471
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
15472
|
+
"/orgs/{organizationId}/usage/spaces":
|
|
15473
|
+
get:
|
|
15474
|
+
operationId: getSpacesUsageForOrganizationById
|
|
15475
|
+
summary: Get spaces usage metrics for an organization
|
|
15476
|
+
tags:
|
|
15477
|
+
- organizations
|
|
15478
|
+
- usage
|
|
15479
|
+
security:
|
|
15480
|
+
- user-internal: []
|
|
15481
|
+
parameters:
|
|
15482
|
+
- $ref: "#/components/parameters/organizationId"
|
|
15483
|
+
responses:
|
|
15484
|
+
"200":
|
|
15485
|
+
description: OK
|
|
15486
|
+
content:
|
|
15487
|
+
application/json:
|
|
15488
|
+
schema:
|
|
15489
|
+
type: object
|
|
15490
|
+
properties:
|
|
15491
|
+
spaces:
|
|
15492
|
+
$ref: "#/components/schemas/OrganizationUsageSpaces"
|
|
15493
|
+
required:
|
|
15494
|
+
- spaces
|
|
15495
|
+
default:
|
|
15496
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
15497
|
+
"/orgs/{organizationId}/usage/sites":
|
|
15498
|
+
get:
|
|
15499
|
+
operationId: getSitesUsageForOrganizationById
|
|
15500
|
+
summary: Get sites usage metrics for an organization
|
|
15501
|
+
tags:
|
|
15502
|
+
- organizations
|
|
15503
|
+
- usage
|
|
15504
|
+
security:
|
|
15505
|
+
- user-internal: []
|
|
15506
|
+
parameters:
|
|
15507
|
+
- $ref: "#/components/parameters/organizationId"
|
|
15508
|
+
responses:
|
|
15509
|
+
"200":
|
|
15510
|
+
description: OK
|
|
15511
|
+
content:
|
|
15512
|
+
application/json:
|
|
15513
|
+
schema:
|
|
15514
|
+
type: object
|
|
15515
|
+
properties:
|
|
15516
|
+
sites:
|
|
15517
|
+
$ref: "#/components/schemas/OrganizationUsageSites"
|
|
15518
|
+
required:
|
|
15519
|
+
- sites
|
|
15520
|
+
default:
|
|
15521
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
15522
|
+
"/orgs/{organizationId}/usage/teams":
|
|
15523
|
+
get:
|
|
15524
|
+
operationId: getTeamsUsageForOrganizationById
|
|
15525
|
+
summary: Get teams usage metrics for an organization
|
|
15526
|
+
tags:
|
|
15527
|
+
- organizations
|
|
15528
|
+
- usage
|
|
15529
|
+
security:
|
|
15530
|
+
- user-internal: []
|
|
15531
|
+
parameters:
|
|
15532
|
+
- $ref: "#/components/parameters/organizationId"
|
|
15533
|
+
responses:
|
|
15534
|
+
"200":
|
|
15535
|
+
description: OK
|
|
15536
|
+
content:
|
|
15537
|
+
application/json:
|
|
15538
|
+
schema:
|
|
15539
|
+
type: object
|
|
15540
|
+
properties:
|
|
15541
|
+
teams:
|
|
15542
|
+
$ref: "#/components/schemas/OrganizationUsageTeams"
|
|
15543
|
+
required:
|
|
15544
|
+
- teams
|
|
15545
|
+
default:
|
|
15546
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
15547
|
+
"/orgs/{organizationId}/usage/members":
|
|
15548
|
+
get:
|
|
15549
|
+
operationId: getMembersUsageForOrganizationById
|
|
15550
|
+
summary: Get members usage metrics for an organization
|
|
15551
|
+
tags:
|
|
15552
|
+
- organizations
|
|
15553
|
+
- usage
|
|
15554
|
+
security:
|
|
15555
|
+
- user-internal: []
|
|
15556
|
+
parameters:
|
|
15557
|
+
- $ref: "#/components/parameters/organizationId"
|
|
15558
|
+
responses:
|
|
15559
|
+
"200":
|
|
15560
|
+
description: OK
|
|
15561
|
+
content:
|
|
15562
|
+
application/json:
|
|
15563
|
+
schema:
|
|
15564
|
+
type: object
|
|
15565
|
+
properties:
|
|
15566
|
+
members:
|
|
15567
|
+
$ref: "#/components/schemas/OrganizationUsageMembers"
|
|
15568
|
+
required:
|
|
15569
|
+
- members
|
|
15570
|
+
default:
|
|
15571
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
15572
|
+
"/orgs/{organizationId}/usage/team-members":
|
|
15573
|
+
get:
|
|
15574
|
+
operationId: getTeamMembersUsageForOrganizationById
|
|
15575
|
+
summary: Get team members usage metrics for an organization
|
|
15576
|
+
tags:
|
|
15577
|
+
- organizations
|
|
15578
|
+
- usage
|
|
15579
|
+
security:
|
|
15580
|
+
- user-internal: []
|
|
15581
|
+
parameters:
|
|
15582
|
+
- $ref: "#/components/parameters/organizationId"
|
|
15583
|
+
responses:
|
|
15584
|
+
"200":
|
|
15585
|
+
description: OK
|
|
15586
|
+
content:
|
|
15587
|
+
application/json:
|
|
15588
|
+
schema:
|
|
15589
|
+
type: object
|
|
15590
|
+
properties:
|
|
15591
|
+
teamMembers:
|
|
15592
|
+
$ref: "#/components/schemas/OrganizationUsageTeamMembers"
|
|
15593
|
+
required:
|
|
15594
|
+
- teamMembers
|
|
15595
|
+
default:
|
|
15596
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
15597
|
+
"/orgs/{organizationId}/usage/seats":
|
|
15598
|
+
get:
|
|
15599
|
+
operationId: getSeatsUsageForOrganizationById
|
|
15600
|
+
summary: Get seats usage metrics for an organization
|
|
15601
|
+
tags:
|
|
15602
|
+
- organizations
|
|
15603
|
+
- usage
|
|
15604
|
+
security:
|
|
15605
|
+
- user-internal: []
|
|
15606
|
+
parameters:
|
|
15607
|
+
- $ref: "#/components/parameters/organizationId"
|
|
15608
|
+
responses:
|
|
15609
|
+
"200":
|
|
15610
|
+
description: OK
|
|
15611
|
+
content:
|
|
15612
|
+
application/json:
|
|
15613
|
+
schema:
|
|
15614
|
+
type: object
|
|
15615
|
+
properties:
|
|
15616
|
+
seats:
|
|
15617
|
+
$ref: "#/components/schemas/OrganizationUsageSeats"
|
|
15618
|
+
required:
|
|
15619
|
+
- seats
|
|
15620
|
+
default:
|
|
15621
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
14814
15622
|
"/orgs/{organizationId}/schemas":
|
|
14815
15623
|
get:
|
|
14816
15624
|
operationId: listEntitySchemas
|
|
@@ -15481,11 +16289,42 @@ paths:
|
|
|
15481
16289
|
description: OK
|
|
15482
16290
|
default:
|
|
15483
16291
|
$ref: "#/components/responses/UnexpectedError"
|
|
15484
|
-
"/orgs/{organizationId}/
|
|
15485
|
-
|
|
15486
|
-
operationId:
|
|
15487
|
-
summary:
|
|
15488
|
-
|
|
16292
|
+
"/orgs/{organizationId}/synced-blocks/{syncedBlockId}/backlinks":
|
|
16293
|
+
get:
|
|
16294
|
+
operationId: getSyncedBlockBacklinks
|
|
16295
|
+
summary: Get a list of pages that reference this synced block.
|
|
16296
|
+
tags:
|
|
16297
|
+
- organizations
|
|
16298
|
+
security:
|
|
16299
|
+
- user: []
|
|
16300
|
+
parameters:
|
|
16301
|
+
- $ref: "#/components/parameters/organizationId"
|
|
16302
|
+
- $ref: "#/components/parameters/syncedBlockId"
|
|
16303
|
+
- $ref: "#/components/parameters/listPage"
|
|
16304
|
+
- $ref: "#/components/parameters/listLimit"
|
|
16305
|
+
responses:
|
|
16306
|
+
"200":
|
|
16307
|
+
description: OK
|
|
16308
|
+
content:
|
|
16309
|
+
application/json:
|
|
16310
|
+
schema:
|
|
16311
|
+
allOf:
|
|
16312
|
+
- $ref: "#/components/schemas/List"
|
|
16313
|
+
- type: object
|
|
16314
|
+
required:
|
|
16315
|
+
- items
|
|
16316
|
+
properties:
|
|
16317
|
+
items:
|
|
16318
|
+
type: array
|
|
16319
|
+
items:
|
|
16320
|
+
$ref: "#/components/schemas/ContentLocation"
|
|
16321
|
+
default:
|
|
16322
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
16323
|
+
"/orgs/{organizationId}/ask":
|
|
16324
|
+
post:
|
|
16325
|
+
operationId: askInOrganization
|
|
16326
|
+
summary: Ask a question.
|
|
16327
|
+
security:
|
|
15489
16328
|
- user: []
|
|
15490
16329
|
parameters:
|
|
15491
16330
|
- $ref: "#/components/parameters/organizationId"
|
|
@@ -15822,8 +16661,6 @@ paths:
|
|
|
15822
16661
|
$ref: "#/components/schemas/SiteTitle"
|
|
15823
16662
|
visibility:
|
|
15824
16663
|
$ref: "#/components/schemas/SiteVisibility"
|
|
15825
|
-
hostname:
|
|
15826
|
-
$ref: "#/components/schemas/SiteHostname"
|
|
15827
16664
|
basename:
|
|
15828
16665
|
$ref: "#/components/schemas/SiteBasename"
|
|
15829
16666
|
defaultSiteSpace:
|
|
@@ -15853,6 +16690,121 @@ paths:
|
|
|
15853
16690
|
description: Site has been deleted
|
|
15854
16691
|
default:
|
|
15855
16692
|
$ref: "#/components/responses/UnexpectedError"
|
|
16693
|
+
"/orgs/{organizationId}/sites/{siteId}/share-links":
|
|
16694
|
+
get:
|
|
16695
|
+
operationId: listSiteShareLinks
|
|
16696
|
+
summary: List all the share links created in a site
|
|
16697
|
+
tags:
|
|
16698
|
+
- sites
|
|
16699
|
+
security:
|
|
16700
|
+
- user: []
|
|
16701
|
+
parameters:
|
|
16702
|
+
- $ref: "#/components/parameters/organizationId"
|
|
16703
|
+
- $ref: "#/components/parameters/siteId"
|
|
16704
|
+
- $ref: "#/components/parameters/listPage"
|
|
16705
|
+
- $ref: "#/components/parameters/listLimit"
|
|
16706
|
+
responses:
|
|
16707
|
+
"200":
|
|
16708
|
+
description: OK
|
|
16709
|
+
content:
|
|
16710
|
+
application/json:
|
|
16711
|
+
schema:
|
|
16712
|
+
allOf:
|
|
16713
|
+
- $ref: "#/components/schemas/List"
|
|
16714
|
+
- type: object
|
|
16715
|
+
required:
|
|
16716
|
+
- items
|
|
16717
|
+
properties:
|
|
16718
|
+
items:
|
|
16719
|
+
type: array
|
|
16720
|
+
items:
|
|
16721
|
+
$ref: "#/components/schemas/ShareLink"
|
|
16722
|
+
default:
|
|
16723
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
16724
|
+
post:
|
|
16725
|
+
operationId: createSiteShareLink
|
|
16726
|
+
summary: Create a share link in a site
|
|
16727
|
+
tags:
|
|
16728
|
+
- sites
|
|
16729
|
+
security:
|
|
16730
|
+
- user: []
|
|
16731
|
+
parameters:
|
|
16732
|
+
- $ref: "#/components/parameters/organizationId"
|
|
16733
|
+
- $ref: "#/components/parameters/siteId"
|
|
16734
|
+
requestBody:
|
|
16735
|
+
required: true
|
|
16736
|
+
content:
|
|
16737
|
+
application/json:
|
|
16738
|
+
schema:
|
|
16739
|
+
type: object
|
|
16740
|
+
properties:
|
|
16741
|
+
name:
|
|
16742
|
+
$ref: "#/components/schemas/ShareLinkName"
|
|
16743
|
+
required:
|
|
16744
|
+
- name
|
|
16745
|
+
responses:
|
|
16746
|
+
"201":
|
|
16747
|
+
description: The share link has been created
|
|
16748
|
+
headers:
|
|
16749
|
+
Location:
|
|
16750
|
+
description: API URL for the newly created share link
|
|
16751
|
+
schema:
|
|
16752
|
+
type: string
|
|
16753
|
+
content:
|
|
16754
|
+
application/json:
|
|
16755
|
+
schema:
|
|
16756
|
+
$ref: "#/components/schemas/ShareLink"
|
|
16757
|
+
default:
|
|
16758
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
16759
|
+
"/orgs/{organizationId}/sites/{siteId}/share-links/{shareLinkId}":
|
|
16760
|
+
patch:
|
|
16761
|
+
operationId: updateSiteShareLinkById
|
|
16762
|
+
summary: Update the details of a site share link
|
|
16763
|
+
tags:
|
|
16764
|
+
- sites
|
|
16765
|
+
security:
|
|
16766
|
+
- user: []
|
|
16767
|
+
parameters:
|
|
16768
|
+
- $ref: "#/components/parameters/organizationId"
|
|
16769
|
+
- $ref: "#/components/parameters/siteId"
|
|
16770
|
+
- $ref: "#/components/parameters/shareLinkId"
|
|
16771
|
+
requestBody:
|
|
16772
|
+
required: true
|
|
16773
|
+
content:
|
|
16774
|
+
application/json:
|
|
16775
|
+
schema:
|
|
16776
|
+
type: object
|
|
16777
|
+
minProperties: 1
|
|
16778
|
+
properties:
|
|
16779
|
+
active:
|
|
16780
|
+
type: boolean
|
|
16781
|
+
name:
|
|
16782
|
+
$ref: "#/components/schemas/ShareLinkName"
|
|
16783
|
+
responses:
|
|
16784
|
+
"200":
|
|
16785
|
+
description: The site share link has been updated
|
|
16786
|
+
content:
|
|
16787
|
+
application/json:
|
|
16788
|
+
schema:
|
|
16789
|
+
$ref: "#/components/schemas/ShareLink"
|
|
16790
|
+
default:
|
|
16791
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
16792
|
+
delete:
|
|
16793
|
+
operationId: deleteSiteShareLinkById
|
|
16794
|
+
summary: Deletes a site share link
|
|
16795
|
+
tags:
|
|
16796
|
+
- sites
|
|
16797
|
+
security:
|
|
16798
|
+
- user: []
|
|
16799
|
+
parameters:
|
|
16800
|
+
- $ref: "#/components/parameters/organizationId"
|
|
16801
|
+
- $ref: "#/components/parameters/siteId"
|
|
16802
|
+
- $ref: "#/components/parameters/shareLinkId"
|
|
16803
|
+
responses:
|
|
16804
|
+
"205":
|
|
16805
|
+
description: Site share link has been deleted
|
|
16806
|
+
default:
|
|
16807
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
15856
16808
|
"/orgs/{organizationId}/sites/{siteId}/publishing/auth":
|
|
15857
16809
|
get:
|
|
15858
16810
|
operationId: getSitePublishingAuthSettings
|
|
@@ -15875,6 +16827,82 @@ paths:
|
|
|
15875
16827
|
$ref: "#/components/responses/BadRequestError"
|
|
15876
16828
|
default:
|
|
15877
16829
|
$ref: "#/components/responses/UnexpectedError"
|
|
16830
|
+
patch:
|
|
16831
|
+
operationId: updateSitePublishingAuthSettings
|
|
16832
|
+
summary: Update the publishing authentication settings for a site.
|
|
16833
|
+
tags:
|
|
16834
|
+
- sites
|
|
16835
|
+
security:
|
|
16836
|
+
- user: []
|
|
16837
|
+
parameters:
|
|
16838
|
+
- $ref: "#/components/parameters/organizationId"
|
|
16839
|
+
- $ref: "#/components/parameters/siteId"
|
|
16840
|
+
requestBody:
|
|
16841
|
+
required: true
|
|
16842
|
+
content:
|
|
16843
|
+
application/json:
|
|
16844
|
+
schema:
|
|
16845
|
+
$ref: "#/components/schemas/SitePublishingAuthUpdate"
|
|
16846
|
+
responses:
|
|
16847
|
+
"200":
|
|
16848
|
+
description: OK
|
|
16849
|
+
content:
|
|
16850
|
+
application/json:
|
|
16851
|
+
schema:
|
|
16852
|
+
$ref: "#/components/schemas/SitePublishingAuth"
|
|
16853
|
+
"400":
|
|
16854
|
+
$ref: "#/components/responses/BadRequestError"
|
|
16855
|
+
default:
|
|
16856
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
16857
|
+
"/orgs/{organizationId}/sites/{siteId}/customization":
|
|
16858
|
+
get:
|
|
16859
|
+
operationId: getSiteCustomizationById
|
|
16860
|
+
summary: Get the customization configuration for a site.
|
|
16861
|
+
tags:
|
|
16862
|
+
- sites
|
|
16863
|
+
security:
|
|
16864
|
+
- user: []
|
|
16865
|
+
parameters:
|
|
16866
|
+
- $ref: "#/components/parameters/organizationId"
|
|
16867
|
+
- $ref: "#/components/parameters/siteId"
|
|
16868
|
+
responses:
|
|
16869
|
+
"200":
|
|
16870
|
+
description: OK
|
|
16871
|
+
content:
|
|
16872
|
+
application/json:
|
|
16873
|
+
schema:
|
|
16874
|
+
$ref: "#/components/schemas/SiteCustomizationSettings"
|
|
16875
|
+
"400":
|
|
16876
|
+
$ref: "#/components/responses/BadRequestError"
|
|
16877
|
+
default:
|
|
16878
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
16879
|
+
put:
|
|
16880
|
+
operationId: updateSiteCustomizationById
|
|
16881
|
+
summary: Update the customization configuration for a site.
|
|
16882
|
+
tags:
|
|
16883
|
+
- sites
|
|
16884
|
+
security:
|
|
16885
|
+
- user: []
|
|
16886
|
+
parameters:
|
|
16887
|
+
- $ref: "#/components/parameters/organizationId"
|
|
16888
|
+
- $ref: "#/components/parameters/siteId"
|
|
16889
|
+
requestBody:
|
|
16890
|
+
required: true
|
|
16891
|
+
content:
|
|
16892
|
+
application/json:
|
|
16893
|
+
schema:
|
|
16894
|
+
$ref: "#/components/schemas/SiteCustomizationSettings"
|
|
16895
|
+
responses:
|
|
16896
|
+
"200":
|
|
16897
|
+
description: OK
|
|
16898
|
+
content:
|
|
16899
|
+
application/json:
|
|
16900
|
+
schema:
|
|
16901
|
+
$ref: "#/components/schemas/SiteCustomizationSettings"
|
|
16902
|
+
"400":
|
|
16903
|
+
$ref: "#/components/responses/BadRequestError"
|
|
16904
|
+
default:
|
|
16905
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
15878
16906
|
"/orgs/{organizationId}/sites/{siteId}/spaces":
|
|
15879
16907
|
post:
|
|
15880
16908
|
operationId: addSpaceToSite
|
|
@@ -15988,6 +17016,232 @@ paths:
|
|
|
15988
17016
|
description: Site space has been deleted
|
|
15989
17017
|
default:
|
|
15990
17018
|
$ref: "#/components/responses/UnexpectedError"
|
|
17019
|
+
"/orgs/{organizationId}/sites/{siteId}/spaces/{siteSpaceId}/customization":
|
|
17020
|
+
get:
|
|
17021
|
+
operationId: getSiteSpaceCustomizationById
|
|
17022
|
+
summary: Get the customization configuration for a site space.
|
|
17023
|
+
tags:
|
|
17024
|
+
- sites
|
|
17025
|
+
security:
|
|
17026
|
+
- user: []
|
|
17027
|
+
parameters:
|
|
17028
|
+
- $ref: "#/components/parameters/organizationId"
|
|
17029
|
+
- $ref: "#/components/parameters/siteId"
|
|
17030
|
+
- $ref: "#/components/parameters/siteSpaceId"
|
|
17031
|
+
responses:
|
|
17032
|
+
"200":
|
|
17033
|
+
description: OK
|
|
17034
|
+
content:
|
|
17035
|
+
application/json:
|
|
17036
|
+
schema:
|
|
17037
|
+
$ref: "#/components/schemas/SiteCustomizationSettings"
|
|
17038
|
+
"400":
|
|
17039
|
+
$ref: "#/components/responses/BadRequestError"
|
|
17040
|
+
default:
|
|
17041
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
17042
|
+
"/orgs/{organizationId}/seats":
|
|
17043
|
+
get:
|
|
17044
|
+
operationId: listSeatsInOrganizationById
|
|
17045
|
+
summary: List all seats in an organization
|
|
17046
|
+
tags:
|
|
17047
|
+
- seats
|
|
17048
|
+
security:
|
|
17049
|
+
- user-internal: []
|
|
17050
|
+
parameters:
|
|
17051
|
+
- $ref: "#/components/parameters/organizationId"
|
|
17052
|
+
responses:
|
|
17053
|
+
"200":
|
|
17054
|
+
description: OK
|
|
17055
|
+
content:
|
|
17056
|
+
application/json:
|
|
17057
|
+
schema:
|
|
17058
|
+
allOf:
|
|
17059
|
+
- $ref: "#/components/schemas/List"
|
|
17060
|
+
- type: object
|
|
17061
|
+
required:
|
|
17062
|
+
- items
|
|
17063
|
+
properties:
|
|
17064
|
+
items:
|
|
17065
|
+
type: array
|
|
17066
|
+
items:
|
|
17067
|
+
$ref: "#/components/schemas/Seat"
|
|
17068
|
+
default:
|
|
17069
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
17070
|
+
post:
|
|
17071
|
+
operationId: addSeatsToOrganizationById
|
|
17072
|
+
summary: Add more seats to an organization
|
|
17073
|
+
tags:
|
|
17074
|
+
- seats
|
|
17075
|
+
security:
|
|
17076
|
+
- user-internal: []
|
|
17077
|
+
parameters:
|
|
17078
|
+
- $ref: "#/components/parameters/organizationId"
|
|
17079
|
+
requestBody:
|
|
17080
|
+
required: true
|
|
17081
|
+
content:
|
|
17082
|
+
application/json:
|
|
17083
|
+
schema:
|
|
17084
|
+
type: object
|
|
17085
|
+
properties:
|
|
17086
|
+
amount:
|
|
17087
|
+
description: How many seats to add
|
|
17088
|
+
type: number
|
|
17089
|
+
required:
|
|
17090
|
+
- amount
|
|
17091
|
+
responses:
|
|
17092
|
+
"201":
|
|
17093
|
+
description: Seats added
|
|
17094
|
+
default:
|
|
17095
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
17096
|
+
delete:
|
|
17097
|
+
operationId: removeSeatsFromOrganizationById
|
|
17098
|
+
summary: Remove unassigned seats from an organization
|
|
17099
|
+
tags:
|
|
17100
|
+
- seats
|
|
17101
|
+
security:
|
|
17102
|
+
- user-internal: []
|
|
17103
|
+
parameters:
|
|
17104
|
+
- $ref: "#/components/parameters/organizationId"
|
|
17105
|
+
requestBody:
|
|
17106
|
+
content:
|
|
17107
|
+
application/json:
|
|
17108
|
+
schema:
|
|
17109
|
+
type: object
|
|
17110
|
+
properties:
|
|
17111
|
+
amount:
|
|
17112
|
+
description: How many seats to remove. Omit to remove all unassigned seats.
|
|
17113
|
+
type: number
|
|
17114
|
+
responses:
|
|
17115
|
+
"205":
|
|
17116
|
+
description: Seats removed
|
|
17117
|
+
default:
|
|
17118
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
17119
|
+
"/orgs/{organizationId}/seats/members":
|
|
17120
|
+
put:
|
|
17121
|
+
operationId: assignSeatsToMembersInOrganizationById
|
|
17122
|
+
summary: Assign seats for one or more members within an organization
|
|
17123
|
+
tags:
|
|
17124
|
+
- seats
|
|
17125
|
+
security:
|
|
17126
|
+
- user-internal: []
|
|
17127
|
+
parameters:
|
|
17128
|
+
- $ref: "#/components/parameters/organizationId"
|
|
17129
|
+
requestBody:
|
|
17130
|
+
required: true
|
|
17131
|
+
content:
|
|
17132
|
+
application/json:
|
|
17133
|
+
schema:
|
|
17134
|
+
type: array
|
|
17135
|
+
description: A list of members
|
|
17136
|
+
minItems: 1
|
|
17137
|
+
items:
|
|
17138
|
+
type: object
|
|
17139
|
+
properties:
|
|
17140
|
+
member:
|
|
17141
|
+
description: The unique ID of the organization member
|
|
17142
|
+
type: string
|
|
17143
|
+
required:
|
|
17144
|
+
- member
|
|
17145
|
+
responses:
|
|
17146
|
+
"200":
|
|
17147
|
+
description: Seats assigned
|
|
17148
|
+
"409":
|
|
17149
|
+
description: Not enough seats available
|
|
17150
|
+
$ref: "#/components/responses/ConflictError"
|
|
17151
|
+
default:
|
|
17152
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
17153
|
+
delete:
|
|
17154
|
+
operationId: revokeSeatsFromMembersInOrganizationById
|
|
17155
|
+
summary: Revoke seats for one or more members within an organization
|
|
17156
|
+
tags:
|
|
17157
|
+
- seats
|
|
17158
|
+
security:
|
|
17159
|
+
- user-internal: []
|
|
17160
|
+
parameters:
|
|
17161
|
+
- $ref: "#/components/parameters/organizationId"
|
|
17162
|
+
requestBody:
|
|
17163
|
+
required: true
|
|
17164
|
+
content:
|
|
17165
|
+
application/json:
|
|
17166
|
+
schema:
|
|
17167
|
+
type: array
|
|
17168
|
+
description: A list of members
|
|
17169
|
+
minItems: 1
|
|
17170
|
+
items:
|
|
17171
|
+
type: object
|
|
17172
|
+
properties:
|
|
17173
|
+
member:
|
|
17174
|
+
description: The unique ID of the organization member
|
|
17175
|
+
type: string
|
|
17176
|
+
required:
|
|
17177
|
+
- member
|
|
17178
|
+
responses:
|
|
17179
|
+
"205":
|
|
17180
|
+
description: Seats revoked
|
|
17181
|
+
"409":
|
|
17182
|
+
description: Not enough seats available
|
|
17183
|
+
$ref: "#/components/responses/ConflictError"
|
|
17184
|
+
default:
|
|
17185
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
17186
|
+
"/orgs/{organizationId}/seats/members/{userId}":
|
|
17187
|
+
get:
|
|
17188
|
+
operationId: getSeatForMemberInOrganizationById
|
|
17189
|
+
summary: Get the seat of a member of the organization
|
|
17190
|
+
tags:
|
|
17191
|
+
- seats
|
|
17192
|
+
security:
|
|
17193
|
+
- user-internal: []
|
|
17194
|
+
parameters:
|
|
17195
|
+
- $ref: "#/components/parameters/organizationId"
|
|
17196
|
+
- $ref: "#/components/parameters/userId"
|
|
17197
|
+
responses:
|
|
17198
|
+
"200":
|
|
17199
|
+
description: OK
|
|
17200
|
+
content:
|
|
17201
|
+
application/json:
|
|
17202
|
+
schema:
|
|
17203
|
+
$ref: "#/components/schemas/Seat"
|
|
17204
|
+
"409":
|
|
17205
|
+
description: Member has no seat assigned
|
|
17206
|
+
$ref: "#/components/responses/ConflictError"
|
|
17207
|
+
default:
|
|
17208
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
17209
|
+
put:
|
|
17210
|
+
operationId: assignSeatToMemberInOrganizationById
|
|
17211
|
+
summary: Assign an available seat to a member of the organization
|
|
17212
|
+
tags:
|
|
17213
|
+
- seats
|
|
17214
|
+
security:
|
|
17215
|
+
- user-internal: []
|
|
17216
|
+
parameters:
|
|
17217
|
+
- $ref: "#/components/parameters/organizationId"
|
|
17218
|
+
- $ref: "#/components/parameters/userId"
|
|
17219
|
+
responses:
|
|
17220
|
+
"200":
|
|
17221
|
+
description: Seat assigned
|
|
17222
|
+
"409":
|
|
17223
|
+
description: Not enough seats available
|
|
17224
|
+
$ref: "#/components/responses/ConflictError"
|
|
17225
|
+
default:
|
|
17226
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
17227
|
+
delete:
|
|
17228
|
+
operationId: revokeSeatFromMemberInOrganizationById
|
|
17229
|
+
summary: Revoke a seat from a member of the organization
|
|
17230
|
+
tags:
|
|
17231
|
+
- seats
|
|
17232
|
+
security:
|
|
17233
|
+
- user-internal: []
|
|
17234
|
+
parameters:
|
|
17235
|
+
- $ref: "#/components/parameters/organizationId"
|
|
17236
|
+
- $ref: "#/components/parameters/userId"
|
|
17237
|
+
responses:
|
|
17238
|
+
"205":
|
|
17239
|
+
description: Seat revoked
|
|
17240
|
+
"409":
|
|
17241
|
+
description: Member has no seat assigned
|
|
17242
|
+
$ref: "#/components/responses/ConflictError"
|
|
17243
|
+
default:
|
|
17244
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
15991
17245
|
"/custom-hostnames/{hostname}":
|
|
15992
17246
|
get:
|
|
15993
17247
|
operationId: getCustomHostname
|
|
@@ -16027,6 +17281,7 @@ paths:
|
|
|
16027
17281
|
- $ref: "#/components/schemas/OrganizationPointer"
|
|
16028
17282
|
- $ref: "#/components/schemas/SpacePointer"
|
|
16029
17283
|
- $ref: "#/components/schemas/CollectionPointer"
|
|
17284
|
+
- $ref: "#/components/schemas/SitePointer"
|
|
16030
17285
|
required:
|
|
16031
17286
|
- target
|
|
16032
17287
|
responses:
|
|
@@ -16041,6 +17296,9 @@ paths:
|
|
|
16041
17296
|
application/json:
|
|
16042
17297
|
schema:
|
|
16043
17298
|
$ref: "#/components/schemas/CustomHostname"
|
|
17299
|
+
"400":
|
|
17300
|
+
description: Selected custom hostname target does not exist
|
|
17301
|
+
$ref: "#/components/responses/ConflictError"
|
|
16044
17302
|
"409":
|
|
16045
17303
|
description: Custom hostname is already in use on the target
|
|
16046
17304
|
$ref: "#/components/responses/ConflictError"
|
|
@@ -16101,6 +17359,7 @@ paths:
|
|
|
16101
17359
|
- $ref: "#/components/schemas/OrganizationPointer"
|
|
16102
17360
|
- $ref: "#/components/schemas/SpacePointer"
|
|
16103
17361
|
- $ref: "#/components/schemas/CollectionPointer"
|
|
17362
|
+
- $ref: "#/components/schemas/SitePointer"
|
|
16104
17363
|
required:
|
|
16105
17364
|
- target
|
|
16106
17365
|
responses:
|