@gitbook/api 0.35.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/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
@@ -94,6 +96,13 @@ components:
94
96
  description: The target page of the comment
95
97
  schema:
96
98
  type: string
99
+ revisionMetadata:
100
+ name: metadata
101
+ in: query
102
+ description: If `false` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
103
+ schema:
104
+ type: boolean
105
+ default: true
97
106
  spaceId:
98
107
  name: spaceId
99
108
  in: path
@@ -159,6 +168,13 @@ components:
159
168
  description: The unique id of the site
160
169
  schema:
161
170
  type: string
171
+ siteSpaceId:
172
+ name: siteSpaceId
173
+ in: path
174
+ required: true
175
+ description: The unique id of the site-space relationship
176
+ schema:
177
+ type: string
162
178
  organizationId:
163
179
  name: organizationId
164
180
  in: path
@@ -180,6 +196,13 @@ components:
180
196
  description: The unique id of a snippet
181
197
  schema:
182
198
  type: string
199
+ syncedBlockId:
200
+ name: syncedBlockId
201
+ in: path
202
+ required: true
203
+ description: The unique id of a synced block
204
+ schema:
205
+ type: string
183
206
  userId:
184
207
  name: userId
185
208
  in: path
@@ -257,11 +280,11 @@ components:
257
280
  description: The unique id of the share link
258
281
  schema:
259
282
  type: string
260
- backofficeHostname:
283
+ hostname:
261
284
  name: hostname
262
285
  in: path
263
286
  required: true
264
- description: The custom hostname
287
+ description: The custom hostname, for example "docs.gitbook.com"
265
288
  schema:
266
289
  type: string
267
290
  ifUnmodifiedSince:
@@ -2933,6 +2956,7 @@ components:
2933
2956
  - data
2934
2957
  - isVoid
2935
2958
  ContentRef:
2959
+ description: A relative reference to content in GitBook.
2936
2960
  oneOf:
2937
2961
  - $ref: "#/components/schemas/ContentRefFile"
2938
2962
  - $ref: "#/components/schemas/ContentRefURL"
@@ -3066,6 +3090,143 @@ components:
3066
3090
  - kind
3067
3091
  - syncedBlock
3068
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
3069
3230
  Space:
3070
3231
  type: object
3071
3232
  properties:
@@ -3162,30 +3323,38 @@ components:
3162
3323
  maxLength: 50
3163
3324
  SpaceVisitorAuth:
3164
3325
  oneOf:
3165
- - type: object
3166
- title: Custom
3167
- properties:
3168
- backend:
3169
- type: string
3170
- description: Custom backend for Visitor Authentication
3171
- enum:
3172
- - custom
3173
- required:
3174
- - backend
3175
- - type: object
3176
- title: Integration
3177
- properties:
3178
- backend:
3179
- type: string
3180
- description: Integration as backend for Visitor Authentication
3181
- 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:
3182
3335
  - integration
3183
- integration:
3184
- type: string
3185
- description: Name of integration being used as the backend for Visitor Authentication
3186
- required:
3187
- - backend
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:
3188
3355
  - integration
3356
+ required:
3357
+ - backend
3189
3358
  RevisionBase:
3190
3359
  type: object
3191
3360
  properties:
@@ -4215,6 +4384,168 @@ components:
4215
4384
  required:
4216
4385
  - level
4217
4386
  - collection
4387
+ OrganizationPointer:
4388
+ type: object
4389
+ properties:
4390
+ type:
4391
+ type: string
4392
+ enum:
4393
+ - organization
4394
+ organization:
4395
+ type: string
4396
+ description: Unique identifier for the organization
4397
+ required:
4398
+ - type
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
4218
4549
  Capture:
4219
4550
  type: object
4220
4551
  properties:
@@ -4528,16 +4859,10 @@ components:
4528
4859
  createdAt:
4529
4860
  type: string
4530
4861
  format: date-time
4531
- editedAt:
4532
- type: string
4533
- format: date-time
4534
- description: Timestamp of when the synced block was last edited, if it has been edited since its creation.
4535
4862
  title:
4536
4863
  type: string
4537
4864
  description: Title describing the synced block.
4538
4865
  maxLength: 100
4539
- document:
4540
- $ref: "#/components/schemas/JSONDocument"
4541
4866
  urls:
4542
4867
  type: object
4543
4868
  description: URLs associated with the object
@@ -4547,13 +4872,16 @@ components:
4547
4872
  $ref: "#/components/schemas/URL"
4548
4873
  required:
4549
4874
  - location
4875
+ files:
4876
+ type: array
4877
+ items:
4878
+ $ref: "#/components/schemas/RevisionFile"
4550
4879
  required:
4551
4880
  - id
4552
4881
  - organization
4553
4882
  - source
4554
4883
  - createdAt
4555
4884
  - urls
4556
- - document
4557
4885
  ContentAuditRelation:
4558
4886
  type: object
4559
4887
  description: Content audit relation
@@ -4625,23 +4953,22 @@ components:
4625
4953
  - space
4626
4954
  - page
4627
4955
  ContentReferenceUsage:
4628
- type: array
4629
- items:
4630
- type: object
4631
- properties:
4632
- status:
4633
- $ref: "#/components/schemas/ContentReferenceStatus"
4634
- targetReference:
4635
- description: The reference target where a list of pages are pointing at
4956
+ type: object
4957
+ properties:
4958
+ status:
4959
+ $ref: "#/components/schemas/ContentReferenceStatus"
4960
+ targetReference:
4961
+ description: The reference target where a list of pages are pointing at
4962
+ $ref: "#/components/schemas/ContentReferenceResolved"
4963
+ locationReferences:
4964
+ description: All pages where the target is being referenced.
4965
+ type: array
4966
+ items:
4636
4967
  $ref: "#/components/schemas/ContentReferenceResolved"
4637
- locationReferences:
4638
- description: All pages where the target is being referenced.
4639
- type: array
4640
- items:
4641
- $ref: "#/components/schemas/ContentReferenceResolved"
4642
- required:
4643
- - targetReference
4644
- - locationReferences
4968
+ required:
4969
+ - status
4970
+ - targetReference
4971
+ - locationReferences
4645
4972
  ContentReferenceResolved:
4646
4973
  type: object
4647
4974
  properties:
@@ -4660,16 +4987,21 @@ components:
4660
4987
  - user
4661
4988
  - snippet
4662
4989
  - url
4990
+ - synced-block
4663
4991
  url:
4664
4992
  description: Target in-app url for the reference
4665
4993
  type: string
4666
4994
  extra:
4667
4995
  type: object
4668
4996
  properties:
4997
+ collection:
4998
+ $ref: "#/components/schemas/Collection"
4669
4999
  space:
4670
5000
  $ref: "#/components/schemas/Space"
4671
5001
  page:
4672
- $ref: "#/components/schemas/RevisionPageDocument"
5002
+ $ref: "#/components/schemas/RevisionPage"
5003
+ anchor:
5004
+ $ref: "#/components/schemas/RevisionPage"
4673
5005
  file:
4674
5006
  $ref: "#/components/schemas/RevisionFile"
4675
5007
  snippet:
@@ -4684,10 +5016,12 @@ components:
4684
5016
  ContentReferenceStatus:
4685
5017
  type: string
4686
5018
  enum:
5019
+ - ok
4687
5020
  - broken
4688
5021
  - in-app
4689
5022
  description: |
4690
5023
  Text to display to represent the reference. Possible values include:
5024
+ - `ok` - No problems detected for this content reference.
4691
5025
  - `broken` - The target does not exist in the revision.
4692
5026
  - `in-app` - The target is a URL link pointing to an internal location in the app.
4693
5027
  ContentReferencesStats:
@@ -4702,16 +5036,11 @@ components:
4702
5036
  total:
4703
5037
  description: Count of broken links
4704
5038
  type: number
4705
- space:
4706
- 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.
4707
- type: number
4708
5039
  changeRequest:
4709
5040
  description: Count of broken links that were broken in current change request, if applicable.
4710
5041
  type: number
4711
5042
  required:
4712
5043
  - total
4713
- - space
4714
- - changeRequest
4715
5044
  required:
4716
5045
  - total
4717
5046
  - broken
@@ -8018,6 +8347,17 @@ components:
8018
8347
  - $ref: "#/components/schemas/SpacePublishingCustomizationChannel"
8019
8348
  - $ref: "#/components/schemas/SpaceEntitiesChannel"
8020
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
8021
8361
  - $ref: "#/components/schemas/BackofficeUserInfoChannel"
8022
8362
  - $ref: "#/components/schemas/SpaceIntegrationsChannel"
8023
8363
  - $ref: "#/components/schemas/OrganizationCustomFieldsChannel"
@@ -8027,6 +8367,20 @@ components:
8027
8367
  - $ref: "#/components/schemas/ChangeRequestChannel"
8028
8368
  - $ref: "#/components/schemas/ChangeRequestsChannel"
8029
8369
  - $ref: "#/components/schemas/ChangeRequestReviewsChannel"
8370
+ - type: object
8371
+ properties:
8372
+ channel:
8373
+ type: string
8374
+ enum:
8375
+ - space-change-request-broken-links
8376
+ space:
8377
+ type: string
8378
+ changeRequest:
8379
+ type: string
8380
+ required:
8381
+ - channel
8382
+ - space
8383
+ - changeRequest
8030
8384
  - $ref: "#/components/schemas/CollectionChannel"
8031
8385
  - $ref: "#/components/schemas/CollectionPublishingCustomizationChannel"
8032
8386
  - type: object
@@ -8055,6 +8409,9 @@ components:
8055
8409
  - $ref: "#/components/schemas/OrganizationIntegrationsChannel"
8056
8410
  - $ref: "#/components/schemas/OrganizationInstallationsChannel"
8057
8411
  - $ref: "#/components/schemas/OrganizationSitesChannel"
8412
+ - $ref: "#/components/schemas/OrganizationSeatsChannel"
8413
+ - $ref: "#/components/schemas/OrganizationUsageSeatsChannel"
8414
+ - $ref: "#/components/schemas/OrganizationSeatChannel"
8058
8415
  - type: object
8059
8416
  properties:
8060
8417
  channel:
@@ -8066,6 +8423,7 @@ components:
8066
8423
  required:
8067
8424
  - channel
8068
8425
  - organization
8426
+ - $ref: "#/components/schemas/OrganizationSyncedBlockChannel"
8069
8427
  - type: object
8070
8428
  properties:
8071
8429
  channel:
@@ -8137,6 +8495,14 @@ components:
8137
8495
  - $ref: "#/components/schemas/IntegrationSiteInstallationChannel"
8138
8496
  - $ref: "#/components/schemas/IntegrationSiteInstallationsChannel"
8139
8497
  - $ref: "#/components/schemas/SiteChannel"
8498
+ - $ref: "#/components/schemas/SiteCustomizationChannel"
8499
+ - $ref: "#/components/schemas/SiteSpaceChannel"
8500
+ - $ref: "#/components/schemas/SiteSpaceCustomizationChannel"
8501
+ - $ref: "#/components/schemas/SiteSpacesChannel"
8502
+ - $ref: "#/components/schemas/SitePublishingAuthChannel"
8503
+ - $ref: "#/components/schemas/SiteShareLinksChannel"
8504
+ - $ref: "#/components/schemas/SiteShareLinkChannel"
8505
+ - $ref: "#/components/schemas/CustomHostnameChannel"
8140
8506
  discriminator:
8141
8507
  propertyName: channel
8142
8508
  SpaceInfoChannel:
@@ -8403,6 +8769,21 @@ components:
8403
8769
  - channel
8404
8770
  - organization
8405
8771
  - team
8772
+ OrganizationSyncedBlockChannel:
8773
+ type: object
8774
+ properties:
8775
+ channel:
8776
+ type: string
8777
+ enum:
8778
+ - organization-synced-block
8779
+ organization:
8780
+ type: string
8781
+ syncedBlock:
8782
+ type: string
8783
+ required:
8784
+ - channel
8785
+ - organization
8786
+ - syncedBlock
8406
8787
  OrganizationTeamMembersChannel:
8407
8788
  type: object
8408
8789
  properties:
@@ -8551,6 +8932,48 @@ components:
8551
8932
  required:
8552
8933
  - channel
8553
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
8554
8977
  IntegrationChannel:
8555
8978
  type: object
8556
8979
  properties:
@@ -8656,6 +9079,113 @@ components:
8656
9079
  required:
8657
9080
  - channel
8658
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
9106
+ SiteSpaceChannel:
9107
+ type: object
9108
+ properties:
9109
+ channel:
9110
+ type: string
9111
+ enum:
9112
+ - site-space
9113
+ site:
9114
+ type: string
9115
+ siteSpace:
9116
+ type: string
9117
+ required:
9118
+ - channel
9119
+ - site
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
9136
+ SiteSpacesChannel:
9137
+ type: object
9138
+ description: Subscription channel for changes in site spaces in an organization.
9139
+ properties:
9140
+ channel:
9141
+ type: string
9142
+ enum:
9143
+ - site-spaces
9144
+ site:
9145
+ type: string
9146
+ required:
9147
+ - channel
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
9177
+ CustomHostnameChannel:
9178
+ type: object
9179
+ properties:
9180
+ channel:
9181
+ type: string
9182
+ enum:
9183
+ - custom-hostname
9184
+ customHostname:
9185
+ type: string
9186
+ required:
9187
+ - channel
9188
+ - customHostname
8659
9189
  CustomField:
8660
9190
  type: object
8661
9191
  description: Custom field
@@ -9115,6 +9645,19 @@ components:
9115
9645
  description: Name of the share link
9116
9646
  minLength: 0
9117
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
9118
9661
  Site:
9119
9662
  type: object
9120
9663
  properties:
@@ -9138,6 +9681,8 @@ components:
9138
9681
  createdAt:
9139
9682
  type: string
9140
9683
  format: date-time
9684
+ subscription:
9685
+ $ref: "#/components/schemas/SiteSubscription"
9141
9686
  urls:
9142
9687
  type: object
9143
9688
  description: URLs associated with the object
@@ -9166,6 +9711,7 @@ components:
9166
9711
  - createdAt
9167
9712
  - siteSpaces
9168
9713
  - defaultSpace
9714
+ - subscription
9169
9715
  - urls
9170
9716
  SiteTitle:
9171
9717
  type: string
@@ -9365,17 +9911,34 @@ components:
9365
9911
  - object
9366
9912
  - privateKey
9367
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.
9368
9925
  SiteBasename:
9369
9926
  type: string
9370
- description: Basename for the site. For e.g. /api
9927
+ description: Basename for the site. For e.g. api
9928
+ minLength: 1
9371
9929
  maxLength: 100
9372
9930
  SiteHostname:
9373
9931
  type: string
9374
9932
  description: Custom hostname for the site, for e.g. docs.mycompany.com
9375
- maxLength: 100
9933
+ pattern: ^([a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?[.]){2,}[a-z0-9][a-z0-9-]{0,61}[a-z0-9]$
9376
9934
  SiteSpace:
9377
9935
  type: object
9378
9936
  properties:
9937
+ object:
9938
+ type: string
9939
+ description: The object type, which is always "site-space"
9940
+ enum:
9941
+ - site-space
9379
9942
  id:
9380
9943
  type: string
9381
9944
  description: Unique identifier of the site-space
@@ -9395,69 +9958,176 @@ components:
9395
9958
  description: Path to the space on the site
9396
9959
  minLength: 1
9397
9960
  maxLength: 100
9398
- responses:
9399
- BadRequestError:
9400
- description: Bad Request
9401
- content:
9402
- application/json:
9403
- schema:
9404
- type: object
9405
- required:
9406
- - error
9407
- properties:
9408
- error:
9409
- type: object
9410
- properties:
9411
- code:
9412
- type: integer
9413
- format: int32
9414
- enum:
9415
- - 400
9416
- message:
9417
- type: string
9418
- required:
9419
- - code
9420
- - message
9421
- ConflictError:
9422
- description: Conflict
9423
- content:
9424
- application/json:
9425
- schema:
9426
- type: object
9427
- required:
9428
- - error
9429
- properties:
9430
- error:
9431
- type: object
9432
- properties:
9433
- code:
9434
- type: integer
9435
- format: int32
9436
- enum:
9437
- - 409
9438
- message:
9439
- type: string
9440
- required:
9441
- - code
9442
- - message
9443
- NotFoundError:
9444
- description: Not Found
9445
- content:
9446
- application/json:
9447
- schema:
9448
- type: object
9449
- required:
9450
- - error
9451
- properties:
9452
- error:
9453
- type: object
9454
- properties:
9455
- code:
9456
- type: integer
9457
- format: int32
9458
- enum:
9459
- - 404
9460
- message:
9961
+ SiteSubscriptionStatus:
9962
+ type: string
9963
+ enum:
9964
+ - active
9965
+ - inactive
9966
+ SiteSubscriptionType:
9967
+ type: string
9968
+ enum:
9969
+ - basic
9970
+ - premium
9971
+ SiteSubscription:
9972
+ type: object
9973
+ properties:
9974
+ type:
9975
+ $ref: "#/components/schemas/SiteSubscriptionType"
9976
+ status:
9977
+ $ref: "#/components/schemas/SiteSubscriptionStatus"
9978
+ required:
9979
+ - type
9980
+ - status
9981
+ CustomHostname:
9982
+ type: object
9983
+ properties:
9984
+ object:
9985
+ type: string
9986
+ enum:
9987
+ - custom-hostname
9988
+ hostname:
9989
+ $ref: "#/components/schemas/SiteHostname"
9990
+ target:
9991
+ oneOf:
9992
+ - $ref: "#/components/schemas/OrganizationPointer"
9993
+ - $ref: "#/components/schemas/SpacePointer"
9994
+ - $ref: "#/components/schemas/CollectionPointer"
9995
+ - $ref: "#/components/schemas/SitePointer"
9996
+ isActive:
9997
+ type: boolean
9998
+ status:
9999
+ $ref: "#/components/schemas/CustomHostnameStatus"
10000
+ urls:
10001
+ type: object
10002
+ description: URLs associated with the object
10003
+ properties:
10004
+ location:
10005
+ type: string
10006
+ description: URL of the custom hostname in the API
10007
+ format: uri
10008
+ required:
10009
+ - location
10010
+ required:
10011
+ - object
10012
+ - hostname
10013
+ - target
10014
+ - isActive
10015
+ - urls
10016
+ CustomHostnameStatus:
10017
+ type: string
10018
+ oneOf:
10019
+ - $ref: "#/components/schemas/CustomHostnameDnsStatus"
10020
+ - $ref: "#/components/schemas/CustomHostnameSslStatus"
10021
+ - $ref: "#/components/schemas/CustomHostnameErrorStatus"
10022
+ CustomHostnameDnsStatus:
10023
+ type: string
10024
+ enum:
10025
+ - dns_passed
10026
+ - dns_wrong_cname
10027
+ - dns_no_cname
10028
+ - dns_cloudflare_proxied
10029
+ - dns_wrong_caa
10030
+ CustomHostnameSslStatus:
10031
+ type: string
10032
+ enum:
10033
+ - live
10034
+ - ssl_unknown
10035
+ - ssl_pending
10036
+ - ssl_failed
10037
+ - ssl_retry_expired
10038
+ CustomHostnameErrorStatus:
10039
+ type: string
10040
+ enum:
10041
+ - invalid_domain
10042
+ - internal_error
10043
+ Seat:
10044
+ type: object
10045
+ properties:
10046
+ object:
10047
+ type: string
10048
+ enum:
10049
+ - seat
10050
+ organization:
10051
+ description: The unique ID of the organization
10052
+ type: string
10053
+ member:
10054
+ description: The unique ID of the organization member
10055
+ type: string
10056
+ createdAt:
10057
+ type: string
10058
+ format: date-time
10059
+ updatedAt:
10060
+ type: string
10061
+ format: date-time
10062
+ required:
10063
+ - object
10064
+ - organization
10065
+ - member
10066
+ - createdAt
10067
+ - updatedAt
10068
+ responses:
10069
+ BadRequestError:
10070
+ description: Bad Request
10071
+ content:
10072
+ application/json:
10073
+ schema:
10074
+ type: object
10075
+ required:
10076
+ - error
10077
+ properties:
10078
+ error:
10079
+ type: object
10080
+ properties:
10081
+ code:
10082
+ type: integer
10083
+ format: int32
10084
+ enum:
10085
+ - 400
10086
+ message:
10087
+ type: string
10088
+ required:
10089
+ - code
10090
+ - message
10091
+ ConflictError:
10092
+ description: Conflict
10093
+ content:
10094
+ application/json:
10095
+ schema:
10096
+ type: object
10097
+ required:
10098
+ - error
10099
+ properties:
10100
+ error:
10101
+ type: object
10102
+ properties:
10103
+ code:
10104
+ type: integer
10105
+ format: int32
10106
+ enum:
10107
+ - 409
10108
+ message:
10109
+ type: string
10110
+ required:
10111
+ - code
10112
+ - message
10113
+ NotFoundError:
10114
+ description: Not Found
10115
+ content:
10116
+ application/json:
10117
+ schema:
10118
+ type: object
10119
+ required:
10120
+ - error
10121
+ properties:
10122
+ error:
10123
+ type: object
10124
+ properties:
10125
+ code:
10126
+ type: integer
10127
+ format: int32
10128
+ enum:
10129
+ - 404
10130
+ message:
9461
10131
  type: string
9462
10132
  required:
9463
10133
  - code
@@ -10198,6 +10868,7 @@ paths:
10198
10868
  - user: []
10199
10869
  parameters:
10200
10870
  - $ref: "#/components/parameters/spaceId"
10871
+ - $ref: "#/components/parameters/revisionMetadata"
10201
10872
  responses:
10202
10873
  "200":
10203
10874
  description: OK
@@ -10243,6 +10914,7 @@ paths:
10243
10914
  - user: []
10244
10915
  parameters:
10245
10916
  - $ref: "#/components/parameters/spaceId"
10917
+ - $ref: "#/components/parameters/revisionMetadata"
10246
10918
  responses:
10247
10919
  "200":
10248
10920
  description: OK
@@ -10269,6 +10941,7 @@ paths:
10269
10941
  - $ref: "#/components/parameters/spaceId"
10270
10942
  - $ref: "#/components/parameters/listPage"
10271
10943
  - $ref: "#/components/parameters/listLimit"
10944
+ - $ref: "#/components/parameters/revisionMetadata"
10272
10945
  responses:
10273
10946
  "200":
10274
10947
  description: OK
@@ -10296,6 +10969,7 @@ paths:
10296
10969
  parameters:
10297
10970
  - $ref: "#/components/parameters/spaceId"
10298
10971
  - $ref: "#/components/parameters/fileId"
10972
+ - $ref: "#/components/parameters/revisionMetadata"
10299
10973
  responses:
10300
10974
  "200":
10301
10975
  description: OK
@@ -10315,6 +10989,7 @@ paths:
10315
10989
  - $ref: "#/components/parameters/spaceId"
10316
10990
  - $ref: "#/components/parameters/pageId"
10317
10991
  - $ref: "#/components/parameters/pageFormat"
10992
+ - $ref: "#/components/parameters/revisionMetadata"
10318
10993
  responses:
10319
10994
  "200":
10320
10995
  description: OK
@@ -10363,6 +11038,7 @@ paths:
10363
11038
  - $ref: "#/components/parameters/spaceId"
10364
11039
  - $ref: "#/components/parameters/pagePath"
10365
11040
  - $ref: "#/components/parameters/pageFormat"
11041
+ - $ref: "#/components/parameters/revisionMetadata"
10366
11042
  responses:
10367
11043
  "200":
10368
11044
  description: OK
@@ -10726,6 +11402,57 @@ paths:
10726
11402
  description: Optionally, update the subject of the change request when requesting reviewers.
10727
11403
  required:
10728
11404
  - users
11405
+ "/spaces/{spaceId}/change-requests/{changeRequestId}/links":
11406
+ get:
11407
+ operationId: listChangeRequestLinks
11408
+ summary: Get all links in the context of a change request including their status and location where they appear.
11409
+ tags:
11410
+ - spaces
11411
+ - links
11412
+ security:
11413
+ - user: []
11414
+ parameters:
11415
+ - $ref: "#/components/parameters/spaceId"
11416
+ - $ref: "#/components/parameters/changeRequestId"
11417
+ - $ref: "#/components/parameters/listPage"
11418
+ - $ref: "#/components/parameters/listLimit"
11419
+ - name: status
11420
+ in: query
11421
+ required: false
11422
+ schema:
11423
+ $ref: "#/components/schemas/ContentReferenceStatus"
11424
+ - name: brokenContext
11425
+ in: query
11426
+ required: false
11427
+ schema:
11428
+ type: string
11429
+ enum:
11430
+ - change-request
11431
+ - space
11432
+ responses:
11433
+ "200":
11434
+ description: OK
11435
+ content:
11436
+ application/json:
11437
+ schema:
11438
+ allOf:
11439
+ - $ref: "#/components/schemas/List"
11440
+ - type: object
11441
+ properties:
11442
+ stats:
11443
+ $ref: "#/components/schemas/ContentReferencesStats"
11444
+ items:
11445
+ type: array
11446
+ items:
11447
+ $ref: "#/components/schemas/ContentReferenceUsage"
11448
+ required:
11449
+ - items
11450
+ - stats
11451
+ "404":
11452
+ description: The change request could not be found.
11453
+ $ref: "#/components/responses/NotFoundError"
11454
+ default:
11455
+ $ref: "#/components/responses/UnexpectedError"
10729
11456
  "/spaces/{spaceId}/change-requests/{changeRequestId}/comments":
10730
11457
  get:
10731
11458
  operationId: listCommentsInChangeRequest
@@ -11018,6 +11745,7 @@ paths:
11018
11745
  parameters:
11019
11746
  - $ref: "#/components/parameters/spaceId"
11020
11747
  - $ref: "#/components/parameters/changeRequestId"
11748
+ - $ref: "#/components/parameters/revisionMetadata"
11021
11749
  responses:
11022
11750
  "200":
11023
11751
  description: OK
@@ -11065,6 +11793,7 @@ paths:
11065
11793
  parameters:
11066
11794
  - $ref: "#/components/parameters/spaceId"
11067
11795
  - $ref: "#/components/parameters/changeRequestId"
11796
+ - $ref: "#/components/parameters/revisionMetadata"
11068
11797
  responses:
11069
11798
  "200":
11070
11799
  description: OK
@@ -11092,6 +11821,7 @@ paths:
11092
11821
  - $ref: "#/components/parameters/changeRequestId"
11093
11822
  - $ref: "#/components/parameters/listPage"
11094
11823
  - $ref: "#/components/parameters/listLimit"
11824
+ - $ref: "#/components/parameters/revisionMetadata"
11095
11825
  responses:
11096
11826
  "200":
11097
11827
  description: OK
@@ -11120,6 +11850,7 @@ paths:
11120
11850
  - $ref: "#/components/parameters/spaceId"
11121
11851
  - $ref: "#/components/parameters/changeRequestId"
11122
11852
  - $ref: "#/components/parameters/fileId"
11853
+ - $ref: "#/components/parameters/revisionMetadata"
11123
11854
  responses:
11124
11855
  "200":
11125
11856
  description: OK
@@ -11140,6 +11871,7 @@ paths:
11140
11871
  - $ref: "#/components/parameters/changeRequestId"
11141
11872
  - $ref: "#/components/parameters/pageId"
11142
11873
  - $ref: "#/components/parameters/pageFormat"
11874
+ - $ref: "#/components/parameters/revisionMetadata"
11143
11875
  responses:
11144
11876
  "200":
11145
11877
  description: OK
@@ -11190,6 +11922,7 @@ paths:
11190
11922
  - $ref: "#/components/parameters/changeRequestId"
11191
11923
  - $ref: "#/components/parameters/pagePath"
11192
11924
  - $ref: "#/components/parameters/pageFormat"
11925
+ - $ref: "#/components/parameters/revisionMetadata"
11193
11926
  responses:
11194
11927
  "200":
11195
11928
  description: OK
@@ -11243,6 +11976,42 @@ paths:
11243
11976
  - contentId
11244
11977
  - branchId
11245
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"
11246
12015
  "/spaces/{spaceId}/revisions/{revisionId}":
11247
12016
  get:
11248
12017
  operationId: getRevisionById
@@ -11252,6 +12021,7 @@ paths:
11252
12021
  parameters:
11253
12022
  - $ref: "#/components/parameters/spaceId"
11254
12023
  - $ref: "#/components/parameters/revisionId"
12024
+ - $ref: "#/components/parameters/revisionMetadata"
11255
12025
  responses:
11256
12026
  "200":
11257
12027
  description: OK
@@ -11270,18 +12040,13 @@ paths:
11270
12040
  parameters:
11271
12041
  - $ref: "#/components/parameters/spaceId"
11272
12042
  - $ref: "#/components/parameters/revisionId"
12043
+ - $ref: "#/components/parameters/revisionMetadata"
11273
12044
  - name: limit
11274
12045
  in: query
11275
12046
  description: Limit the number of changes returned
11276
12047
  schema:
11277
12048
  type: number
11278
12049
  default: 10
11279
- - name: metadata
11280
- in: query
11281
- description: Whether to include changes to metadata, such as git information and custom fields
11282
- schema:
11283
- type: boolean
11284
- default: true
11285
12050
  responses:
11286
12051
  "200":
11287
12052
  description: OK
@@ -11309,6 +12074,8 @@ paths:
11309
12074
  - user: []
11310
12075
  parameters:
11311
12076
  - $ref: "#/components/parameters/spaceId"
12077
+ - $ref: "#/components/parameters/revisionId"
12078
+ - $ref: "#/components/parameters/revisionMetadata"
11312
12079
  responses:
11313
12080
  "200":
11314
12081
  description: OK
@@ -11336,6 +12103,7 @@ paths:
11336
12103
  - $ref: "#/components/parameters/revisionId"
11337
12104
  - $ref: "#/components/parameters/listPage"
11338
12105
  - $ref: "#/components/parameters/listLimit"
12106
+ - $ref: "#/components/parameters/revisionMetadata"
11339
12107
  responses:
11340
12108
  "200":
11341
12109
  description: OK
@@ -11364,6 +12132,7 @@ paths:
11364
12132
  - $ref: "#/components/parameters/spaceId"
11365
12133
  - $ref: "#/components/parameters/revisionId"
11366
12134
  - $ref: "#/components/parameters/fileId"
12135
+ - $ref: "#/components/parameters/revisionMetadata"
11367
12136
  responses:
11368
12137
  "200":
11369
12138
  description: OK
@@ -11384,6 +12153,7 @@ paths:
11384
12153
  - $ref: "#/components/parameters/revisionId"
11385
12154
  - $ref: "#/components/parameters/pageId"
11386
12155
  - $ref: "#/components/parameters/pageFormat"
12156
+ - $ref: "#/components/parameters/revisionMetadata"
11387
12157
  responses:
11388
12158
  "200":
11389
12159
  description: OK
@@ -11404,6 +12174,7 @@ paths:
11404
12174
  - $ref: "#/components/parameters/revisionId"
11405
12175
  - $ref: "#/components/parameters/pagePath"
11406
12176
  - $ref: "#/components/parameters/pageFormat"
12177
+ - $ref: "#/components/parameters/revisionMetadata"
11407
12178
  responses:
11408
12179
  "200":
11409
12180
  description: OK
@@ -12096,6 +12867,48 @@ paths:
12096
12867
  description: Space share link has been deleted
12097
12868
  default:
12098
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"
12099
12912
  "/collections/{collectionId}":
12100
12913
  get:
12101
12914
  operationId: getCollectionById
@@ -13080,15 +13893,15 @@ paths:
13080
13893
  description: The space installation has been deleted.
13081
13894
  default:
13082
13895
  $ref: "#/components/responses/UnexpectedError"
13083
- /orgs:
13896
+ "/integrations/{integrationName}/installations/{installationId}/sites":
13084
13897
  get:
13085
- operationId: listOrganizationsForAuthenticatedUser
13086
- summary: Get the list of organizations for the currently authenticated user
13898
+ operationId: listIntegrationInstallationSites
13899
+ summary: List installations on sites for an integration in an organization
13087
13900
  tags:
13088
- - organizations
13089
- security:
13090
- - user: []
13901
+ - integrations
13091
13902
  parameters:
13903
+ - $ref: "#/components/parameters/integrationName"
13904
+ - $ref: "#/components/parameters/installationId"
13092
13905
  - $ref: "#/components/parameters/listPage"
13093
13906
  - $ref: "#/components/parameters/listLimit"
13094
13907
  responses:
@@ -13100,7 +13913,127 @@ paths:
13100
13913
  allOf:
13101
13914
  - $ref: "#/components/schemas/List"
13102
13915
  - type: object
13103
- properties:
13916
+ required:
13917
+ - items
13918
+ properties:
13919
+ items:
13920
+ type: array
13921
+ items:
13922
+ $ref: "#/components/schemas/IntegrationSiteInstallation"
13923
+ default:
13924
+ $ref: "#/components/responses/UnexpectedError"
13925
+ post:
13926
+ operationId: installIntegrationOnSite
13927
+ summary: Install integration on a site using an existing installation
13928
+ tags:
13929
+ - integrations
13930
+ parameters:
13931
+ - $ref: "#/components/parameters/integrationName"
13932
+ - $ref: "#/components/parameters/installationId"
13933
+ requestBody:
13934
+ required: true
13935
+ content:
13936
+ application/json:
13937
+ schema:
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
13945
+ responses:
13946
+ "201":
13947
+ headers:
13948
+ Location:
13949
+ description: URL for the installed integration on the site
13950
+ schema:
13951
+ type: string
13952
+ description: Integration installed successfully on site
13953
+ content:
13954
+ application/json:
13955
+ schema:
13956
+ $ref: "#/components/schemas/IntegrationSiteInstallation"
13957
+ "404":
13958
+ $ref: "#/components/responses/NotFoundError"
13959
+ default:
13960
+ $ref: "#/components/responses/UnexpectedError"
13961
+ "/integrations/{integrationName}/installations/{installationId}/sites/{siteId}":
13962
+ get:
13963
+ operationId: getIntegrationSiteInstallation
13964
+ summary: Get a specific integration's site installation
13965
+ tags:
13966
+ - integrations
13967
+ parameters:
13968
+ - $ref: "#/components/parameters/integrationName"
13969
+ - $ref: "#/components/parameters/installationId"
13970
+ - $ref: "#/components/parameters/siteId"
13971
+ responses:
13972
+ "200":
13973
+ description: Integration site installation
13974
+ content:
13975
+ application/json:
13976
+ schema:
13977
+ $ref: "#/components/schemas/IntegrationSiteInstallation"
13978
+ "404":
13979
+ $ref: "#/components/responses/NotFoundError"
13980
+ default:
13981
+ $ref: "#/components/responses/UnexpectedError"
13982
+ patch:
13983
+ operationId: updateIntegrationSiteInstallation
13984
+ summary: Update external IDs and configurations of an integration's installation for a site
13985
+ parameters:
13986
+ - $ref: "#/components/parameters/integrationName"
13987
+ - $ref: "#/components/parameters/installationId"
13988
+ - $ref: "#/components/parameters/siteId"
13989
+ responses:
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:
13104
14037
  items:
13105
14038
  type: array
13106
14039
  items:
@@ -14491,6 +15424,201 @@ paths:
14491
15424
  description: OK
14492
15425
  default:
14493
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"
14494
15622
  "/orgs/{organizationId}/schemas":
14495
15623
  get:
14496
15624
  operationId: listEntitySchemas
@@ -15126,12 +16254,7 @@ paths:
15126
16254
  - user: []
15127
16255
  parameters:
15128
16256
  - $ref: "#/components/parameters/organizationId"
15129
- - name: syncedBlockId
15130
- in: path
15131
- required: true
15132
- description: The unique id of a synced block
15133
- schema:
15134
- type: string
16257
+ - $ref: "#/components/parameters/syncedBlockId"
15135
16258
  responses:
15136
16259
  "200":
15137
16260
  description: OK
@@ -15141,26 +16264,82 @@ paths:
15141
16264
  $ref: "#/components/schemas/SyncedBlock"
15142
16265
  default:
15143
16266
  $ref: "#/components/responses/UnexpectedError"
15144
- "/orgs/{organizationId}/ask":
15145
- post:
15146
- operationId: askInOrganization
15147
- summary: Ask a question.
16267
+ put:
16268
+ operationId: updateSyncedBlock
16269
+ summary: Update an existing synced block.
16270
+ tags:
16271
+ - organizations
15148
16272
  security:
15149
16273
  - user: []
15150
16274
  parameters:
15151
16275
  - $ref: "#/components/parameters/organizationId"
15152
- - $ref: "#/components/parameters/pageFormat"
16276
+ - $ref: "#/components/parameters/syncedBlockId"
15153
16277
  requestBody:
15154
16278
  required: true
15155
16279
  content:
15156
16280
  application/json:
15157
16281
  schema:
15158
- $ref: "#/components/schemas/SearchAIQuery"
16282
+ type: object
16283
+ properties:
16284
+ title:
16285
+ type: string
16286
+ description: A new title for the Synced Block.
15159
16287
  responses:
15160
16288
  "200":
15161
16289
  description: OK
15162
- content:
15163
- application/json:
16290
+ default:
16291
+ $ref: "#/components/responses/UnexpectedError"
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:
16328
+ - user: []
16329
+ parameters:
16330
+ - $ref: "#/components/parameters/organizationId"
16331
+ - $ref: "#/components/parameters/pageFormat"
16332
+ requestBody:
16333
+ required: true
16334
+ content:
16335
+ application/json:
16336
+ schema:
16337
+ $ref: "#/components/schemas/SearchAIQuery"
16338
+ responses:
16339
+ "200":
16340
+ description: OK
16341
+ content:
16342
+ application/json:
15164
16343
  schema:
15165
16344
  type: object
15166
16345
  properties:
@@ -15376,6 +16555,12 @@ paths:
15376
16555
  - $ref: "#/components/parameters/organizationId"
15377
16556
  - $ref: "#/components/parameters/listPage"
15378
16557
  - $ref: "#/components/parameters/listLimit"
16558
+ - name: space
16559
+ in: query
16560
+ description: Identifier of the space to filter the sites by
16561
+ required: false
16562
+ schema:
16563
+ type: string
15379
16564
  responses:
15380
16565
  "200":
15381
16566
  description: OK
@@ -15404,7 +16589,6 @@ paths:
15404
16589
  parameters:
15405
16590
  - $ref: "#/components/parameters/organizationId"
15406
16591
  requestBody:
15407
- required: true
15408
16592
  content:
15409
16593
  application/json:
15410
16594
  schema:
@@ -15419,9 +16603,6 @@ paths:
15419
16603
  description: ID of spaces to be added to the site
15420
16604
  items:
15421
16605
  type: string
15422
- required:
15423
- - title
15424
- - spaces
15425
16606
  responses:
15426
16607
  "201":
15427
16608
  description: Site created
@@ -15436,6 +16617,762 @@ paths:
15436
16617
  $ref: "#/components/schemas/Site"
15437
16618
  default:
15438
16619
  $ref: "#/components/responses/UnexpectedError"
16620
+ "/orgs/{organizationId}/sites/{siteId}":
16621
+ get:
16622
+ operationId: getSiteById
16623
+ summary: Get an organization site by its ID
16624
+ tags:
16625
+ - sites
16626
+ security:
16627
+ - user: []
16628
+ parameters:
16629
+ - $ref: "#/components/parameters/organizationId"
16630
+ - $ref: "#/components/parameters/siteId"
16631
+ responses:
16632
+ "200":
16633
+ description: OK
16634
+ content:
16635
+ application/json:
16636
+ schema:
16637
+ $ref: "#/components/schemas/Site"
16638
+ "404":
16639
+ description: No matching site found
16640
+ $ref: "#/components/responses/NotFoundError"
16641
+ default:
16642
+ $ref: "#/components/responses/UnexpectedError"
16643
+ patch:
16644
+ operationId: updateSiteById
16645
+ summary: Update a site in an organization
16646
+ tags:
16647
+ - sites
16648
+ security:
16649
+ - user: []
16650
+ parameters:
16651
+ - $ref: "#/components/parameters/organizationId"
16652
+ - $ref: "#/components/parameters/siteId"
16653
+ requestBody:
16654
+ required: true
16655
+ content:
16656
+ application/json:
16657
+ schema:
16658
+ type: object
16659
+ properties:
16660
+ title:
16661
+ $ref: "#/components/schemas/SiteTitle"
16662
+ visibility:
16663
+ $ref: "#/components/schemas/SiteVisibility"
16664
+ basename:
16665
+ $ref: "#/components/schemas/SiteBasename"
16666
+ defaultSiteSpace:
16667
+ type: string
16668
+ description: ID of the site-space to be used as the default
16669
+ responses:
16670
+ "200":
16671
+ description: OK
16672
+ content:
16673
+ application/json:
16674
+ schema:
16675
+ $ref: "#/components/schemas/Site"
16676
+ default:
16677
+ $ref: "#/components/responses/UnexpectedError"
16678
+ delete:
16679
+ operationId: deleteSiteById
16680
+ summary: Delete a site in an organization
16681
+ tags:
16682
+ - sites
16683
+ security:
16684
+ - user: []
16685
+ parameters:
16686
+ - $ref: "#/components/parameters/organizationId"
16687
+ - $ref: "#/components/parameters/siteId"
16688
+ responses:
16689
+ "205":
16690
+ description: Site has been deleted
16691
+ default:
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"
16808
+ "/orgs/{organizationId}/sites/{siteId}/publishing/auth":
16809
+ get:
16810
+ operationId: getSitePublishingAuthSettings
16811
+ summary: Get the publishing authentication settings for a site.
16812
+ tags:
16813
+ - sites
16814
+ security:
16815
+ - user: []
16816
+ parameters:
16817
+ - $ref: "#/components/parameters/organizationId"
16818
+ - $ref: "#/components/parameters/siteId"
16819
+ responses:
16820
+ "200":
16821
+ description: OK
16822
+ content:
16823
+ application/json:
16824
+ schema:
16825
+ $ref: "#/components/schemas/SitePublishingAuth"
16826
+ "400":
16827
+ $ref: "#/components/responses/BadRequestError"
16828
+ default:
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"
16906
+ "/orgs/{organizationId}/sites/{siteId}/spaces":
16907
+ post:
16908
+ operationId: addSpaceToSite
16909
+ summary: Add a space to a site in an organization
16910
+ tags:
16911
+ - sites
16912
+ security:
16913
+ - user: []
16914
+ parameters:
16915
+ - $ref: "#/components/parameters/organizationId"
16916
+ - $ref: "#/components/parameters/siteId"
16917
+ requestBody:
16918
+ required: true
16919
+ content:
16920
+ application/json:
16921
+ schema:
16922
+ type: object
16923
+ properties:
16924
+ spaceId:
16925
+ type: string
16926
+ description: ID of the space
16927
+ required:
16928
+ - spaceId
16929
+ responses:
16930
+ "201":
16931
+ description: Space added to the site
16932
+ headers:
16933
+ Location:
16934
+ description: API URL for the newly created site-space relationship
16935
+ schema:
16936
+ type: string
16937
+ content:
16938
+ application/json:
16939
+ schema:
16940
+ $ref: "#/components/schemas/SiteSpace"
16941
+ default:
16942
+ $ref: "#/components/responses/UnexpectedError"
16943
+ get:
16944
+ operationId: listSiteSpaces
16945
+ summary: List all the site spaces under a site in an organization
16946
+ tags:
16947
+ - sites
16948
+ security:
16949
+ - user: []
16950
+ parameters:
16951
+ - $ref: "#/components/parameters/organizationId"
16952
+ - $ref: "#/components/parameters/siteId"
16953
+ - $ref: "#/components/parameters/listPage"
16954
+ - $ref: "#/components/parameters/listLimit"
16955
+ responses:
16956
+ "200":
16957
+ description: OK
16958
+ content:
16959
+ application/json:
16960
+ schema:
16961
+ allOf:
16962
+ - $ref: "#/components/schemas/List"
16963
+ - type: object
16964
+ required:
16965
+ - items
16966
+ properties:
16967
+ items:
16968
+ type: array
16969
+ items:
16970
+ $ref: "#/components/schemas/SiteSpace"
16971
+ default:
16972
+ $ref: "#/components/responses/UnexpectedError"
16973
+ "/orgs/{organizationId}/sites/{siteId}/spaces/{siteSpaceId}":
16974
+ patch:
16975
+ operationId: updateSiteSpaceById
16976
+ summary: Update a space on a site in an organization
16977
+ tags:
16978
+ - sites
16979
+ security:
16980
+ - user: []
16981
+ parameters:
16982
+ - $ref: "#/components/parameters/organizationId"
16983
+ - $ref: "#/components/parameters/siteId"
16984
+ - $ref: "#/components/parameters/siteSpaceId"
16985
+ requestBody:
16986
+ required: true
16987
+ content:
16988
+ application/json:
16989
+ schema:
16990
+ type: object
16991
+ properties:
16992
+ path:
16993
+ $ref: "#/components/schemas/SiteSpacePath"
16994
+ responses:
16995
+ "200":
16996
+ description: OK
16997
+ content:
16998
+ application/json:
16999
+ schema:
17000
+ $ref: "#/components/schemas/SiteSpace"
17001
+ default:
17002
+ $ref: "#/components/responses/UnexpectedError"
17003
+ delete:
17004
+ operationId: deleteSiteSpaceById
17005
+ summary: Delete a space on a site in an organization
17006
+ tags:
17007
+ - sites
17008
+ security:
17009
+ - user: []
17010
+ parameters:
17011
+ - $ref: "#/components/parameters/organizationId"
17012
+ - $ref: "#/components/parameters/siteId"
17013
+ - $ref: "#/components/parameters/siteSpaceId"
17014
+ responses:
17015
+ "205":
17016
+ description: Site space has been deleted
17017
+ default:
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"
17245
+ "/custom-hostnames/{hostname}":
17246
+ get:
17247
+ operationId: getCustomHostname
17248
+ summary: Get the details about a custom hostname.
17249
+ tags:
17250
+ - custom-hostnames
17251
+ security:
17252
+ - user-internal: []
17253
+ parameters:
17254
+ - $ref: "#/components/parameters/hostname"
17255
+ responses:
17256
+ "200":
17257
+ description: OK
17258
+ content:
17259
+ application/json:
17260
+ schema:
17261
+ $ref: "#/components/schemas/CustomHostname"
17262
+ default:
17263
+ $ref: "#/components/responses/UnexpectedError"
17264
+ post:
17265
+ operationId: setupCustomHostname
17266
+ summary: Setup a custom hostname on a content or an organization. Any previously set custom hostname will continue pointing to the target but marked as available for use with another target.
17267
+ tags:
17268
+ - custom-hostnames
17269
+ security:
17270
+ - user-internal: []
17271
+ parameters:
17272
+ - $ref: "#/components/parameters/hostname"
17273
+ requestBody:
17274
+ content:
17275
+ application/json:
17276
+ schema:
17277
+ type: object
17278
+ properties:
17279
+ target:
17280
+ oneOf:
17281
+ - $ref: "#/components/schemas/OrganizationPointer"
17282
+ - $ref: "#/components/schemas/SpacePointer"
17283
+ - $ref: "#/components/schemas/CollectionPointer"
17284
+ - $ref: "#/components/schemas/SitePointer"
17285
+ required:
17286
+ - target
17287
+ responses:
17288
+ "201":
17289
+ description: Custom hostname created
17290
+ headers:
17291
+ Location:
17292
+ description: API URL for the newly created custom hostname
17293
+ schema:
17294
+ type: string
17295
+ content:
17296
+ application/json:
17297
+ schema:
17298
+ $ref: "#/components/schemas/CustomHostname"
17299
+ "400":
17300
+ description: Selected custom hostname target does not exist
17301
+ $ref: "#/components/responses/ConflictError"
17302
+ "409":
17303
+ description: Custom hostname is already in use on the target
17304
+ $ref: "#/components/responses/ConflictError"
17305
+ default:
17306
+ $ref: "#/components/responses/UnexpectedError"
17307
+ patch:
17308
+ operationId: dnsRevalidateCustomHostname
17309
+ summary: Revalidate a custom hostname's DNS records and status.
17310
+ tags:
17311
+ - custom-hostnames
17312
+ security:
17313
+ - user-internal: []
17314
+ parameters:
17315
+ - $ref: "#/components/parameters/hostname"
17316
+ responses:
17317
+ "204":
17318
+ description: DNS validation has been retriggered
17319
+ "400":
17320
+ description: The current custom hostname is inactive and cannot be revalidated
17321
+ $ref: "#/components/responses/ConflictError"
17322
+ "409":
17323
+ description: The current custom hostname status does not allow DNS revalidation
17324
+ $ref: "#/components/responses/ConflictError"
17325
+ default:
17326
+ $ref: "#/components/responses/UnexpectedError"
17327
+ delete:
17328
+ operationId: removeCustomHostname
17329
+ summary: Remove a custom hostname from a content or organization. The custom hostname will continue to point to the content or organization unless it is used for another one.
17330
+ tags:
17331
+ - custom-hostnames
17332
+ security:
17333
+ - user-internal: []
17334
+ parameters:
17335
+ - $ref: "#/components/parameters/hostname"
17336
+ responses:
17337
+ "205":
17338
+ description: Custom hostname has been removed
17339
+ default:
17340
+ $ref: "#/components/responses/UnexpectedError"
17341
+ "/custom-hostnames/{hostname}/test":
17342
+ post:
17343
+ operationId: testCustomHostname
17344
+ summary: Test if a custom hostname can be used for a content or organization.
17345
+ tags:
17346
+ - custom-hostnames
17347
+ security:
17348
+ - user-internal: []
17349
+ parameters:
17350
+ - $ref: "#/components/parameters/hostname"
17351
+ requestBody:
17352
+ content:
17353
+ application/json:
17354
+ schema:
17355
+ type: object
17356
+ properties:
17357
+ target:
17358
+ oneOf:
17359
+ - $ref: "#/components/schemas/OrganizationPointer"
17360
+ - $ref: "#/components/schemas/SpacePointer"
17361
+ - $ref: "#/components/schemas/CollectionPointer"
17362
+ - $ref: "#/components/schemas/SitePointer"
17363
+ required:
17364
+ - target
17365
+ responses:
17366
+ "204":
17367
+ description: The custom hostname is available and valid.
17368
+ "400":
17369
+ description: The custom hostname is invalid.
17370
+ $ref: "#/components/responses/BadRequestError"
17371
+ "409":
17372
+ description: The custom hostname is already configured for this target or a different one.
17373
+ $ref: "#/components/responses/ConflictError"
17374
+ default:
17375
+ $ref: "#/components/responses/UnexpectedError"
15439
17376
  /internal/hive/token:
15440
17377
  post:
15441
17378
  operationId: generateHiveAccessToken