@gitbook/api 0.34.0 → 0.36.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
@@ -94,6 +94,13 @@ components:
94
94
  description: The target page of the comment
95
95
  schema:
96
96
  type: string
97
+ revisionMetadata:
98
+ name: metadata
99
+ in: query
100
+ description: If `false`` is passed, "git" mutable metadata will not returned. Passing `false` can optimize performances of the lookup.
101
+ schema:
102
+ type: boolean
103
+ default: true
97
104
  spaceId:
98
105
  name: spaceId
99
106
  in: path
@@ -121,9 +128,7 @@ components:
121
128
  required: true
122
129
  description: The unique ID of the change request or its number identifier in the space
123
130
  schema:
124
- anyOf:
125
- - type: string
126
- - type: integer
131
+ type: string
127
132
  commentId:
128
133
  name: commentId
129
134
  in: path
@@ -142,7 +147,7 @@ components:
142
147
  name: integrationName
143
148
  in: path
144
149
  required: true
145
- description: Name of the integration. Allowed characters are a-z, A-Z, 0-9, -, _, .
150
+ description: Name of the integration.
146
151
  schema:
147
152
  type: string
148
153
  pattern: ^[a-zA-Z0-9-_.]+$
@@ -154,6 +159,20 @@ components:
154
159
  description: Identifier of the installation
155
160
  schema:
156
161
  type: string
162
+ siteId:
163
+ name: siteId
164
+ in: path
165
+ required: true
166
+ description: The unique id of the site
167
+ schema:
168
+ type: string
169
+ siteSpaceId:
170
+ name: siteSpaceId
171
+ in: path
172
+ required: true
173
+ description: The unique id of the site-space relationship
174
+ schema:
175
+ type: string
157
176
  organizationId:
158
177
  name: organizationId
159
178
  in: path
@@ -175,6 +194,13 @@ components:
175
194
  description: The unique id of a snippet
176
195
  schema:
177
196
  type: string
197
+ syncedBlockId:
198
+ name: syncedBlockId
199
+ in: path
200
+ required: true
201
+ description: The unique id of a synced block
202
+ schema:
203
+ type: string
178
204
  userId:
179
205
  name: userId
180
206
  in: path
@@ -252,6 +278,13 @@ components:
252
278
  description: The unique id of the share link
253
279
  schema:
254
280
  type: string
281
+ hostname:
282
+ name: hostname
283
+ in: path
284
+ required: true
285
+ description: The custom hostname, for example "docs.gitbook.com"
286
+ schema:
287
+ type: string
255
288
  backofficeHostname:
256
289
  name: hostname
257
290
  in: path
@@ -454,6 +487,20 @@ components:
454
487
  $ref: "#/components/schemas/IntegrationInstallationConfiguration"
455
488
  space_selection:
456
489
  $ref: "#/components/schemas/IntegrationInstallationSpaceSelection"
490
+ RequestUpdateIntegrationSpaceInstallation:
491
+ type: object
492
+ properties:
493
+ externalIds:
494
+ $ref: "#/components/schemas/IntegrationInstallationExternalIds"
495
+ configuration:
496
+ $ref: "#/components/schemas/IntegrationInstallationConfiguration"
497
+ RequestUpdateIntegrationSiteInstallation:
498
+ type: object
499
+ properties:
500
+ externalIds:
501
+ $ref: "#/components/schemas/IntegrationInstallationExternalIds"
502
+ configuration:
503
+ $ref: "#/components/schemas/IntegrationInstallationConfiguration"
457
504
  RequestUpgradeOrganizationBilling:
458
505
  type: object
459
506
  properties:
@@ -538,6 +585,54 @@ components:
538
585
  required:
539
586
  - url
540
587
  - ref
588
+ RequestSyncGitRepository:
589
+ type: object
590
+ properties:
591
+ ref:
592
+ type: string
593
+ description: Git ref in the format "refs/heads/main"
594
+ repoURL:
595
+ type: string
596
+ description: URL of the Git repository used for synchronization. It can contain basic auth credentials.
597
+ repoTreeURL:
598
+ type: string
599
+ description: URL to use as a prefix for external file references.
600
+ repoCommitURL:
601
+ type: string
602
+ description: URL to use as a prefix for the commit URL.
603
+ repoProjectDirectory:
604
+ type: string
605
+ description: Path to a root directory for the project in the repository.
606
+ commitMessageTemplate:
607
+ type: string
608
+ description: Template message for the commit generated during the synchronization.
609
+ standalone:
610
+ type: boolean
611
+ description: If true, the synchronization of the ref will generate a revision without updating the space primary content.
612
+ force:
613
+ type: object
614
+ description: Whether to force the synchronization
615
+ properties:
616
+ priority:
617
+ type: string
618
+ enum:
619
+ - gitbook
620
+ - git
621
+ required:
622
+ - priority
623
+ timestamp:
624
+ description: |
625
+ The timestamp of the event. It ensures the synchronize operations are executed in the same order on GitBook and on the remote repository.
626
+ $ref: "#/components/schemas/Timestamp"
627
+ gitInfo:
628
+ description: Optional metadata to store on the space about the Git provider
629
+ $ref: "#/components/schemas/RequestUpdateSpaceGitInfo"
630
+ required:
631
+ - ref
632
+ - repoURL
633
+ - repoTreeURL
634
+ - repoCommitURL
635
+ - commitMessageTemplate
541
636
  RequestExportToGitRepository:
542
637
  type: object
543
638
  properties:
@@ -660,6 +755,43 @@ components:
660
755
  url:
661
756
  type: string
662
757
  description: The repository's tree URL
758
+ CreateOrganizationInvite:
759
+ oneOf:
760
+ - $ref: "#/components/schemas/CreateInviteToOrganization"
761
+ - $ref: "#/components/schemas/CreateInviteToSpace"
762
+ - $ref: "#/components/schemas/CreateInviteToCollection"
763
+ CreateInviteToSpace:
764
+ type: object
765
+ properties:
766
+ level:
767
+ $ref: "#/components/schemas/MemberRoleOrGuest"
768
+ description: The level of the member in the target space
769
+ space:
770
+ type: string
771
+ description: The ID of space the member has been invited to
772
+ required:
773
+ - level
774
+ - space
775
+ CreateInviteToCollection:
776
+ type: object
777
+ properties:
778
+ level:
779
+ $ref: "#/components/schemas/MemberRoleOrGuest"
780
+ description: The level of the member in the target collection
781
+ collection:
782
+ type: string
783
+ description: The ID of collection the member has been invited to
784
+ required:
785
+ - level
786
+ - collection
787
+ CreateInviteToOrganization:
788
+ type: object
789
+ properties:
790
+ role:
791
+ $ref: "#/components/schemas/MemberRoleOrGuest"
792
+ description: The role of the member in the organization
793
+ required:
794
+ - role
663
795
  ApiInformation:
664
796
  type: object
665
797
  properties:
@@ -735,6 +867,8 @@ components:
735
867
  type: string
736
868
  description: URL of the user in the API
737
869
  format: uri
870
+ required:
871
+ - location
738
872
  required:
739
873
  - object
740
874
  - id
@@ -1208,6 +1342,7 @@ components:
1208
1342
  - $ref: "#/components/schemas/DocumentBlockSwagger"
1209
1343
  - $ref: "#/components/schemas/DocumentBlockContentRef"
1210
1344
  - $ref: "#/components/schemas/DocumentBlockIntegration"
1345
+ - $ref: "#/components/schemas/DocumentBlockSyncedBlock"
1211
1346
  DocumentInline:
1212
1347
  oneOf:
1213
1348
  - $ref: "#/components/schemas/DocumentInlineLink"
@@ -1277,6 +1412,7 @@ components:
1277
1412
  - $ref: "#/components/schemas/DocumentBlockSwagger"
1278
1413
  - $ref: "#/components/schemas/DocumentBlockContentRef"
1279
1414
  - $ref: "#/components/schemas/DocumentBlockIntegration"
1415
+ - $ref: "#/components/schemas/DocumentBlockSyncedBlock"
1280
1416
  DocumentTextLeaf:
1281
1417
  type: object
1282
1418
  properties:
@@ -1868,6 +2004,11 @@ components:
1868
2004
  items:
1869
2005
  oneOf:
1870
2006
  - $ref: "#/components/schemas/DocumentBlocksEssentials"
2007
+ - $ref: "#/components/schemas/DocumentBlockCode"
2008
+ - $ref: "#/components/schemas/DocumentBlockHint"
2009
+ - $ref: "#/components/schemas/DocumentBlockQuote"
2010
+ - $ref: "#/components/schemas/DocumentBlockMath"
2011
+ - $ref: "#/components/schemas/DocumentBlockTable"
1871
2012
  isVoid:
1872
2013
  type: boolean
1873
2014
  enum:
@@ -2782,6 +2923,43 @@ components:
2782
2923
  - type
2783
2924
  - isVoid
2784
2925
  - data
2926
+ DocumentBlockSyncedBlock:
2927
+ type: object
2928
+ properties:
2929
+ object:
2930
+ type: string
2931
+ enum:
2932
+ - block
2933
+ type:
2934
+ type: string
2935
+ enum:
2936
+ - synced-block
2937
+ key:
2938
+ type: string
2939
+ data:
2940
+ type: object
2941
+ properties:
2942
+ ref:
2943
+ $ref: "#/components/schemas/ContentRefSyncedBlock"
2944
+ required:
2945
+ - ref
2946
+ meta:
2947
+ type: object
2948
+ properties:
2949
+ apiToken:
2950
+ description: API Token to use to fetch the synced block from the API.
2951
+ type: string
2952
+ required:
2953
+ - apiToken
2954
+ isVoid:
2955
+ type: boolean
2956
+ enum:
2957
+ - true
2958
+ required:
2959
+ - object
2960
+ - type
2961
+ - data
2962
+ - isVoid
2785
2963
  ContentRef:
2786
2964
  oneOf:
2787
2965
  - $ref: "#/components/schemas/ContentRefFile"
@@ -2792,6 +2970,7 @@ components:
2792
2970
  - $ref: "#/components/schemas/ContentRefCollection"
2793
2971
  - $ref: "#/components/schemas/ContentRefSpace"
2794
2972
  - $ref: "#/components/schemas/ContentRefSnippet"
2973
+ - $ref: "#/components/schemas/ContentRefSyncedBlock"
2795
2974
  ContentRefURL:
2796
2975
  type: object
2797
2976
  properties:
@@ -2900,6 +3079,21 @@ components:
2900
3079
  - kind
2901
3080
  - snippet
2902
3081
  - organization
3082
+ ContentRefSyncedBlock:
3083
+ type: object
3084
+ properties:
3085
+ kind:
3086
+ type: string
3087
+ enum:
3088
+ - synced-block
3089
+ syncedBlock:
3090
+ type: string
3091
+ organization:
3092
+ type: string
3093
+ required:
3094
+ - kind
3095
+ - syncedBlock
3096
+ - organization
2903
3097
  Space:
2904
3098
  type: object
2905
3099
  properties:
@@ -2961,31 +3155,7 @@ components:
2961
3155
  gitSync:
2962
3156
  $ref: "#/components/schemas/GitSyncState"
2963
3157
  visitorAuth:
2964
- oneOf:
2965
- - type: object
2966
- title: Custom
2967
- properties:
2968
- backend:
2969
- type: string
2970
- description: Custom backend for Visitor Authentication
2971
- enum:
2972
- - custom
2973
- required:
2974
- - backend
2975
- - type: object
2976
- title: Integration
2977
- properties:
2978
- backend:
2979
- type: string
2980
- description: Integration as backend for Visitor Authentication
2981
- enum:
2982
- - integration
2983
- integration:
2984
- type: string
2985
- description: Name of integration being used as the backend for Visitor Authentication
2986
- required:
2987
- - backend
2988
- - integration
3158
+ $ref: "#/components/schemas/SpaceVisitorAuth"
2989
3159
  revision:
2990
3160
  type: string
2991
3161
  description: ID of the active revision in the space.
@@ -3018,6 +3188,32 @@ components:
3018
3188
  description: Title of the space
3019
3189
  minLength: 1
3020
3190
  maxLength: 50
3191
+ SpaceVisitorAuth:
3192
+ oneOf:
3193
+ - type: object
3194
+ title: Custom
3195
+ properties:
3196
+ backend:
3197
+ type: string
3198
+ description: Custom backend for Visitor Authentication
3199
+ enum:
3200
+ - custom
3201
+ required:
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:
3210
+ - integration
3211
+ integration:
3212
+ type: string
3213
+ description: Name of integration being used as the backend for Visitor Authentication
3214
+ required:
3215
+ - backend
3216
+ - integration
3021
3217
  RevisionBase:
3022
3218
  type: object
3023
3219
  properties:
@@ -4003,49 +4199,7 @@ components:
4003
4199
  - $ref: "#/components/schemas/SpacePointer"
4004
4200
  - $ref: "#/components/schemas/CollectionPointer"
4005
4201
  OrganizationInvite:
4006
- oneOf:
4007
- - type: object
4008
- properties:
4009
- object:
4010
- type: string
4011
- description: Type of Object, always equals to "invite"
4012
- enum:
4013
- - invite
4014
- id:
4015
- type: string
4016
- description: Unique identifier for the organization invite
4017
- role:
4018
- $ref: "#/components/schemas/MemberRoleOrGuest"
4019
- description: The role of the member in the organization
4020
- required:
4021
- - object
4022
- - id
4023
- - role
4024
- - type: object
4025
- properties:
4026
- object:
4027
- type: string
4028
- description: Type of Object, always equals to "invite"
4029
- enum:
4030
- - invite
4031
- id:
4032
- type: string
4033
- description: Unique identifier for the organization invite
4034
- role:
4035
- $ref: "#/components/schemas/MemberRoleOrGuest"
4036
- description: The role of the member in the organization
4037
- contentLevel:
4038
- $ref: "#/components/schemas/MemberRoleOrGuest"
4039
- description: The role of the member in the target space
4040
- space:
4041
- $ref: "#/components/schemas/Space"
4042
- description: The space the member has been invited to
4043
- required:
4044
- - object
4045
- - id
4046
- - role
4047
- - contentLevel
4048
- - space
4202
+ allOf:
4049
4203
  - type: object
4050
4204
  properties:
4051
4205
  object:
@@ -4056,21 +4210,52 @@ components:
4056
4210
  id:
4057
4211
  type: string
4058
4212
  description: Unique identifier for the organization invite
4059
- role:
4060
- $ref: "#/components/schemas/MemberRoleOrGuest"
4061
- description: The role of the member in the organization
4062
- contentLevel:
4063
- $ref: "#/components/schemas/MemberRoleOrGuest"
4064
- description: The role of the member in the target collection
4065
- collection:
4066
- $ref: "#/components/schemas/Collection"
4067
- description: The collection the member has been invited to
4068
4213
  required:
4069
4214
  - object
4070
4215
  - id
4071
- - role
4072
- - contentLevel
4073
- - collection
4216
+ - oneOf:
4217
+ - type: object
4218
+ properties:
4219
+ role:
4220
+ $ref: "#/components/schemas/MemberRoleOrGuest"
4221
+ description: The role of the member in the organization
4222
+ required:
4223
+ - role
4224
+ - type: object
4225
+ properties:
4226
+ level:
4227
+ $ref: "#/components/schemas/MemberRoleOrGuest"
4228
+ description: The level of the member in the target space
4229
+ space:
4230
+ $ref: "#/components/schemas/Space"
4231
+ description: The space the member has been invited to
4232
+ required:
4233
+ - level
4234
+ - space
4235
+ - type: object
4236
+ properties:
4237
+ level:
4238
+ $ref: "#/components/schemas/MemberRoleOrGuest"
4239
+ description: The level of the member in the target collection
4240
+ collection:
4241
+ $ref: "#/components/schemas/Collection"
4242
+ description: The collection the member has been invited to
4243
+ required:
4244
+ - level
4245
+ - collection
4246
+ OrganizationPointer:
4247
+ type: object
4248
+ properties:
4249
+ type:
4250
+ type: string
4251
+ enum:
4252
+ - organization
4253
+ organization:
4254
+ type: string
4255
+ description: Unique identifier for the organization
4256
+ required:
4257
+ - type
4258
+ - organization
4074
4259
  Capture:
4075
4260
  type: object
4076
4261
  properties:
@@ -4372,6 +4557,40 @@ components:
4372
4557
  title:
4373
4558
  type: string
4374
4559
  description: A new title for the snippet.
4560
+ SyncedBlock:
4561
+ type: object
4562
+ properties:
4563
+ id:
4564
+ type: string
4565
+ description: Unique identifier for the synced block
4566
+ organization:
4567
+ type: string
4568
+ description: ID of the organization owning this synced block
4569
+ createdAt:
4570
+ type: string
4571
+ format: date-time
4572
+ title:
4573
+ type: string
4574
+ description: Title describing the synced block.
4575
+ maxLength: 100
4576
+ document:
4577
+ $ref: "#/components/schemas/JSONDocument"
4578
+ urls:
4579
+ type: object
4580
+ description: URLs associated with the object
4581
+ properties:
4582
+ location:
4583
+ description: URL of the synced block in the API
4584
+ $ref: "#/components/schemas/URL"
4585
+ required:
4586
+ - location
4587
+ required:
4588
+ - id
4589
+ - organization
4590
+ - source
4591
+ - createdAt
4592
+ - urls
4593
+ - document
4375
4594
  ContentAuditRelation:
4376
4595
  type: object
4377
4596
  description: Content audit relation
@@ -4442,7 +4661,104 @@ components:
4442
4661
  - type
4443
4662
  - space
4444
4663
  - page
4445
- ChangeRequest:
4664
+ ContentReferenceUsage:
4665
+ type: object
4666
+ properties:
4667
+ status:
4668
+ $ref: "#/components/schemas/ContentReferenceStatus"
4669
+ targetReference:
4670
+ description: The reference target where a list of pages are pointing at
4671
+ $ref: "#/components/schemas/ContentReferenceResolved"
4672
+ locationReferences:
4673
+ description: All pages where the target is being referenced.
4674
+ type: array
4675
+ items:
4676
+ $ref: "#/components/schemas/ContentReferenceResolved"
4677
+ required:
4678
+ - status
4679
+ - targetReference
4680
+ - locationReferences
4681
+ ContentReferenceResolved:
4682
+ type: object
4683
+ properties:
4684
+ text:
4685
+ description: Text to display to represent the reference
4686
+ type: string
4687
+ type:
4688
+ description: The type of the content reference
4689
+ type: string
4690
+ enum:
4691
+ - space
4692
+ - page
4693
+ - file
4694
+ - anchor
4695
+ - collection
4696
+ - user
4697
+ - snippet
4698
+ - url
4699
+ - synced-block
4700
+ url:
4701
+ description: Target in-app url for the reference
4702
+ type: string
4703
+ extra:
4704
+ type: object
4705
+ properties:
4706
+ collection:
4707
+ $ref: "#/components/schemas/Collection"
4708
+ space:
4709
+ $ref: "#/components/schemas/Space"
4710
+ page:
4711
+ $ref: "#/components/schemas/RevisionPage"
4712
+ anchor:
4713
+ $ref: "#/components/schemas/RevisionPage"
4714
+ file:
4715
+ $ref: "#/components/schemas/RevisionFile"
4716
+ snippet:
4717
+ $ref: "#/components/schemas/Snippet"
4718
+ user:
4719
+ $ref: "#/components/schemas/User"
4720
+ required:
4721
+ - text
4722
+ - type
4723
+ - url
4724
+ - extra
4725
+ ContentReferenceStatus:
4726
+ type: string
4727
+ enum:
4728
+ - ok
4729
+ - broken
4730
+ - in-app
4731
+ description: |
4732
+ Text to display to represent the reference. Possible values include:
4733
+ - `ok` - No problems detected for this content reference.
4734
+ - `broken` - The target does not exist in the revision.
4735
+ - `in-app` - The target is a URL link pointing to an internal location in the app.
4736
+ ContentReferencesStats:
4737
+ type: object
4738
+ properties:
4739
+ total:
4740
+ description: Total count of links
4741
+ type: number
4742
+ broken:
4743
+ type: object
4744
+ properties:
4745
+ total:
4746
+ description: Count of broken links
4747
+ 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
+ changeRequest:
4752
+ description: Count of broken links that were broken in current change request, if applicable.
4753
+ type: number
4754
+ required:
4755
+ - total
4756
+ - space
4757
+ - changeRequest
4758
+ required:
4759
+ - total
4760
+ - broken
4761
+ ChangeRequest:
4446
4762
  type: object
4447
4763
  properties:
4448
4764
  object:
@@ -4477,8 +4793,13 @@ components:
4477
4793
  type: string
4478
4794
  description: URL of the space in the application
4479
4795
  format: uri
4796
+ location:
4797
+ type: string
4798
+ description: URL of the user in the API
4799
+ format: uri
4480
4800
  required:
4481
4801
  - app
4802
+ - location
4482
4803
  required:
4483
4804
  - object
4484
4805
  - id
@@ -4900,6 +5221,13 @@ components:
4900
5221
  type: string
4901
5222
  required:
4902
5223
  - questions
5224
+ SearchAIRecommendedQuestionStream:
5225
+ type: object
5226
+ properties:
5227
+ question:
5228
+ type: string
5229
+ required:
5230
+ - question
4903
5231
  AnalyticsSearchPeriod:
4904
5232
  type: string
4905
5233
  enum:
@@ -5226,6 +5554,7 @@ components:
5226
5554
  - space:script:cookies
5227
5555
  - space:git:sync
5228
5556
  - space:visitor:auth
5557
+ - site:visitor:auth
5229
5558
  IntegrationSearchQuery:
5230
5559
  name: search
5231
5560
  in: query
@@ -5561,6 +5890,49 @@ components:
5561
5890
  - configuration
5562
5891
  - externalIds
5563
5892
  - urls
5893
+ IntegrationSiteInstallation:
5894
+ type: object
5895
+ description: Installation of an integration at a site level
5896
+ properties:
5897
+ integration:
5898
+ description: Unique name identifier of the integration
5899
+ type: string
5900
+ installation:
5901
+ description: ID of the integration installation
5902
+ type: string
5903
+ site:
5904
+ description: ID of the site the integration is installed on.
5905
+ type: string
5906
+ status:
5907
+ $ref: "#/components/schemas/IntegrationInstallationStatus"
5908
+ configuration:
5909
+ description: Configuration of the integration for this site
5910
+ type: object
5911
+ externalIds:
5912
+ $ref: "#/components/schemas/IntegrationInstallationExternalIds"
5913
+ urls:
5914
+ type: object
5915
+ description: URLs associated with the object
5916
+ properties:
5917
+ location:
5918
+ type: string
5919
+ description: URL of the integration's site installation in the API
5920
+ format: uri
5921
+ publicEndpoint:
5922
+ type: string
5923
+ description: Public HTTP endpoint for the integration's site installation
5924
+ format: uri
5925
+ required:
5926
+ - location
5927
+ - publicEndpoint
5928
+ required:
5929
+ - integration
5930
+ - installation
5931
+ - site
5932
+ - status
5933
+ - configuration
5934
+ - externalIds
5935
+ - urls
5564
5936
  IntegrationInstallationStatus:
5565
5937
  type: string
5566
5938
  enum:
@@ -7698,6 +8070,20 @@ components:
7698
8070
  - $ref: "#/components/schemas/ChangeRequestChannel"
7699
8071
  - $ref: "#/components/schemas/ChangeRequestsChannel"
7700
8072
  - $ref: "#/components/schemas/ChangeRequestReviewsChannel"
8073
+ - type: object
8074
+ properties:
8075
+ channel:
8076
+ type: string
8077
+ enum:
8078
+ - space-change-request-broken-links
8079
+ space:
8080
+ type: string
8081
+ changeRequest:
8082
+ type: string
8083
+ required:
8084
+ - channel
8085
+ - space
8086
+ - changeRequest
7701
8087
  - $ref: "#/components/schemas/CollectionChannel"
7702
8088
  - $ref: "#/components/schemas/CollectionPublishingCustomizationChannel"
7703
8089
  - type: object
@@ -7725,6 +8111,7 @@ components:
7725
8111
  - $ref: "#/components/schemas/OrganizationContentAuditsChannel"
7726
8112
  - $ref: "#/components/schemas/OrganizationIntegrationsChannel"
7727
8113
  - $ref: "#/components/schemas/OrganizationInstallationsChannel"
8114
+ - $ref: "#/components/schemas/OrganizationSitesChannel"
7728
8115
  - type: object
7729
8116
  properties:
7730
8117
  channel:
@@ -7736,6 +8123,7 @@ components:
7736
8123
  required:
7737
8124
  - channel
7738
8125
  - organization
8126
+ - $ref: "#/components/schemas/OrganizationSyncedBlockChannel"
7739
8127
  - type: object
7740
8128
  properties:
7741
8129
  channel:
@@ -7804,6 +8192,23 @@ components:
7804
8192
  - $ref: "#/components/schemas/IntegrationInstallationChannel"
7805
8193
  - $ref: "#/components/schemas/IntegrationSpaceInstallationChannel"
7806
8194
  - $ref: "#/components/schemas/IntegrationSpaceInstallationsChannel"
8195
+ - $ref: "#/components/schemas/IntegrationSiteInstallationChannel"
8196
+ - $ref: "#/components/schemas/IntegrationSiteInstallationsChannel"
8197
+ - $ref: "#/components/schemas/SiteChannel"
8198
+ - $ref: "#/components/schemas/SiteSpaceChannel"
8199
+ - $ref: "#/components/schemas/SiteSpacesChannel"
8200
+ - type: object
8201
+ properties:
8202
+ channel:
8203
+ type: string
8204
+ enum:
8205
+ - site-publishing-auth
8206
+ site:
8207
+ type: string
8208
+ required:
8209
+ - channel
8210
+ - site
8211
+ - $ref: "#/components/schemas/CustomHostnameChannel"
7807
8212
  discriminator:
7808
8213
  propertyName: channel
7809
8214
  SpaceInfoChannel:
@@ -8070,6 +8475,21 @@ components:
8070
8475
  - channel
8071
8476
  - organization
8072
8477
  - team
8478
+ OrganizationSyncedBlockChannel:
8479
+ type: object
8480
+ properties:
8481
+ channel:
8482
+ type: string
8483
+ enum:
8484
+ - organization-synced-block
8485
+ organization:
8486
+ type: string
8487
+ syncedBlock:
8488
+ type: string
8489
+ required:
8490
+ - channel
8491
+ - organization
8492
+ - syncedBlock
8073
8493
  OrganizationTeamMembersChannel:
8074
8494
  type: object
8075
8495
  properties:
@@ -8205,6 +8625,19 @@ components:
8205
8625
  required:
8206
8626
  - channel
8207
8627
  - organization
8628
+ OrganizationSitesChannel:
8629
+ type: object
8630
+ description: Subscription channel for changes in sites in an organization.
8631
+ properties:
8632
+ channel:
8633
+ type: string
8634
+ enum:
8635
+ - organization-sites
8636
+ organization:
8637
+ type: string
8638
+ required:
8639
+ - channel
8640
+ - organization
8208
8641
  IntegrationChannel:
8209
8642
  type: object
8210
8643
  properties:
@@ -8265,6 +8698,91 @@ components:
8265
8698
  - channel
8266
8699
  - integration
8267
8700
  - installation
8701
+ IntegrationSiteInstallationChannel:
8702
+ type: object
8703
+ properties:
8704
+ channel:
8705
+ type: string
8706
+ enum:
8707
+ - integration-site-installation
8708
+ integration:
8709
+ type: string
8710
+ installation:
8711
+ type: string
8712
+ site:
8713
+ type: string
8714
+ required:
8715
+ - channel
8716
+ - integration
8717
+ - installation
8718
+ - site
8719
+ IntegrationSiteInstallationsChannel:
8720
+ type: object
8721
+ properties:
8722
+ channel:
8723
+ type: string
8724
+ enum:
8725
+ - integration-site-installations
8726
+ integration:
8727
+ type: string
8728
+ installation:
8729
+ type: string
8730
+ required:
8731
+ - channel
8732
+ - integration
8733
+ - installation
8734
+ SiteChannel:
8735
+ type: object
8736
+ properties:
8737
+ channel:
8738
+ type: string
8739
+ enum:
8740
+ - site
8741
+ site:
8742
+ type: string
8743
+ required:
8744
+ - channel
8745
+ - site
8746
+ SiteSpaceChannel:
8747
+ type: object
8748
+ properties:
8749
+ channel:
8750
+ type: string
8751
+ enum:
8752
+ - site-space
8753
+ site:
8754
+ type: string
8755
+ siteSpace:
8756
+ type: string
8757
+ required:
8758
+ - channel
8759
+ - site
8760
+ - siteSpace
8761
+ SiteSpacesChannel:
8762
+ type: object
8763
+ description: Subscription channel for changes in site spaces in an organization.
8764
+ properties:
8765
+ channel:
8766
+ type: string
8767
+ enum:
8768
+ - site-spaces
8769
+ site:
8770
+ type: string
8771
+ required:
8772
+ - channel
8773
+ - site
8774
+ CustomHostnameChannel:
8775
+ type: object
8776
+ properties:
8777
+ channel:
8778
+ type: string
8779
+ enum:
8780
+ - custom-hostname
8781
+ customHostname:
8782
+ type: string
8783
+ required:
8784
+ - channel
8785
+ - customHostname
8268
8786
  CustomField:
8269
8787
  type: object
8270
8788
  description: Custom field
@@ -8724,58 +9242,466 @@ components:
8724
9242
  description: Name of the share link
8725
9243
  minLength: 0
8726
9244
  maxLength: 50
8727
- responses:
8728
- BadRequestError:
8729
- description: Bad Request
8730
- content:
8731
- application/json:
8732
- schema:
8733
- type: object
8734
- required:
8735
- - error
8736
- properties:
8737
- error:
8738
- type: object
8739
- properties:
8740
- code:
8741
- type: integer
8742
- format: int32
8743
- enum:
8744
- - 400
8745
- message:
8746
- type: string
8747
- required:
8748
- - code
8749
- - message
8750
- ConflictError:
8751
- description: Conflict
8752
- content:
8753
- application/json:
8754
- schema:
8755
- type: object
8756
- required:
8757
- - error
8758
- properties:
8759
- error:
8760
- type: object
8761
- properties:
8762
- code:
8763
- type: integer
8764
- format: int32
8765
- enum:
8766
- - 409
8767
- message:
8768
- type: string
8769
- required:
8770
- - code
8771
- - message
8772
- NotFoundError:
8773
- description: Not Found
8774
- content:
8775
- application/json:
8776
- schema:
8777
- type: object
8778
- required:
9245
+ Site:
9246
+ type: object
9247
+ properties:
9248
+ object:
9249
+ type: string
9250
+ enum:
9251
+ - site
9252
+ id:
9253
+ type: string
9254
+ description: Unique identifier of the site
9255
+ title:
9256
+ $ref: "#/components/schemas/SiteTitle"
9257
+ hostname:
9258
+ $ref: "#/components/schemas/SiteHostname"
9259
+ basename:
9260
+ $ref: "#/components/schemas/SiteBasename"
9261
+ visibility:
9262
+ $ref: "#/components/schemas/SiteVisibility"
9263
+ siteSpaces:
9264
+ type: number
9265
+ createdAt:
9266
+ type: string
9267
+ format: date-time
9268
+ subscription:
9269
+ $ref: "#/components/schemas/SiteSubscription"
9270
+ urls:
9271
+ type: object
9272
+ description: URLs associated with the object
9273
+ properties:
9274
+ location:
9275
+ type: string
9276
+ description: URL of the site in the API
9277
+ format: uri
9278
+ app:
9279
+ type: string
9280
+ description: URL of the site in the application
9281
+ format: uri
9282
+ published:
9283
+ type: string
9284
+ description: URL of the published version of the site. Only defined when visibility is not "unpublished."
9285
+ format: uri
9286
+ required:
9287
+ - app
9288
+ - location
9289
+ required:
9290
+ - object
9291
+ - id
9292
+ - title
9293
+ - basename
9294
+ - visibility
9295
+ - createdAt
9296
+ - siteSpaces
9297
+ - defaultSpace
9298
+ - subscription
9299
+ - urls
9300
+ SiteTitle:
9301
+ type: string
9302
+ description: Title of the site
9303
+ minLength: 2
9304
+ maxLength: 50
9305
+ SiteCustomizationSettings:
9306
+ type: object
9307
+ properties:
9308
+ styling:
9309
+ type: object
9310
+ properties:
9311
+ primaryColor:
9312
+ $ref: "#/components/schemas/CustomizationThemedColor"
9313
+ corners:
9314
+ $ref: "#/components/schemas/CustomizationCorners"
9315
+ font:
9316
+ $ref: "#/components/schemas/CustomizationFont"
9317
+ background:
9318
+ $ref: "#/components/schemas/CustomizationBackground"
9319
+ required:
9320
+ - primaryColor
9321
+ - corners
9322
+ - font
9323
+ - background
9324
+ internationalization:
9325
+ type: object
9326
+ properties:
9327
+ locale:
9328
+ $ref: "#/components/schemas/CustomizationLocale"
9329
+ required:
9330
+ - locale
9331
+ favicon:
9332
+ oneOf:
9333
+ - type: object
9334
+ properties:
9335
+ icon:
9336
+ $ref: "#/components/schemas/CustomizationThemedURL"
9337
+ required:
9338
+ - icon
9339
+ - type: object
9340
+ properties:
9341
+ emoji:
9342
+ $ref: "#/components/schemas/Emoji"
9343
+ required:
9344
+ - emoji
9345
+ - type: object
9346
+ properties: {}
9347
+ additionalProperties: false
9348
+ header:
9349
+ type: object
9350
+ properties:
9351
+ preset:
9352
+ $ref: "#/components/schemas/CustomizationHeaderPreset"
9353
+ logo:
9354
+ $ref: "#/components/schemas/CustomizationThemedURL"
9355
+ backgroundColor:
9356
+ $ref: "#/components/schemas/CustomizationThemedColor"
9357
+ linkColor:
9358
+ $ref: "#/components/schemas/CustomizationThemedColor"
9359
+ links:
9360
+ type: array
9361
+ items:
9362
+ $ref: "#/components/schemas/CustomizationHeaderLink"
9363
+ required:
9364
+ - preset
9365
+ - links
9366
+ footer:
9367
+ type: object
9368
+ properties:
9369
+ logo:
9370
+ $ref: "#/components/schemas/CustomizationThemedURL"
9371
+ groups:
9372
+ type: array
9373
+ items:
9374
+ $ref: "#/components/schemas/CustomizationFooterGroup"
9375
+ copyright:
9376
+ type: string
9377
+ maxLength: 300
9378
+ required:
9379
+ - groups
9380
+ themes:
9381
+ type: object
9382
+ properties:
9383
+ default:
9384
+ $ref: "#/components/schemas/CustomizationThemeMode"
9385
+ toggeable:
9386
+ description: Should the reader be able to switch between dark and light mode
9387
+ type: boolean
9388
+ required:
9389
+ - default
9390
+ - toggeable
9391
+ pdf:
9392
+ type: object
9393
+ properties:
9394
+ enabled:
9395
+ type: boolean
9396
+ description: If true, PDF export is enabled for the published site.
9397
+ required:
9398
+ - enabled
9399
+ feedback:
9400
+ type: object
9401
+ properties:
9402
+ enabled:
9403
+ type: boolean
9404
+ description: If true, feedback gathering is enabled
9405
+ required:
9406
+ - enabled
9407
+ aiSearch:
9408
+ type: object
9409
+ properties:
9410
+ enabled:
9411
+ type: boolean
9412
+ description: If true, AI search is enabled
9413
+ required:
9414
+ - enabled
9415
+ git:
9416
+ type: object
9417
+ properties:
9418
+ showEditLink:
9419
+ type: boolean
9420
+ description: Whether the published site should show a link to edit the content on the git provider set up in the Git Sync
9421
+ required:
9422
+ - showEditLink
9423
+ pagination:
9424
+ type: object
9425
+ properties:
9426
+ enabled:
9427
+ type: boolean
9428
+ description: Whether the pagination navigation should be displayed on pages.
9429
+ required:
9430
+ - enabled
9431
+ trademark:
9432
+ type: object
9433
+ properties:
9434
+ enabled:
9435
+ type: boolean
9436
+ description: Whether the GitBook trademark ("Powered by GitBook") should be visible
9437
+ required:
9438
+ - enabled
9439
+ privacyPolicy:
9440
+ type: object
9441
+ properties:
9442
+ url:
9443
+ $ref: "#/components/schemas/URL"
9444
+ socialPreview:
9445
+ type: object
9446
+ properties:
9447
+ url:
9448
+ $ref: "#/components/schemas/URL"
9449
+ required:
9450
+ - styling
9451
+ - internationalization
9452
+ - favicon
9453
+ - header
9454
+ - footer
9455
+ - themes
9456
+ - pdf
9457
+ - feedback
9458
+ - aiSearch
9459
+ - trademark
9460
+ - pagination
9461
+ - git
9462
+ - privacyPolicy
9463
+ - socialPreview
9464
+ SiteVisibility:
9465
+ type: string
9466
+ description: |
9467
+ * `public`: Anyone can access the site, and the site is indexed by search engines.
9468
+ * `unlisted`: Anyone can access the site, and the site is not indexed by search engines
9469
+ * `share-link`: Anyone with a secret token in the url can access the site.
9470
+ * `visitor-auth`: Anyone authenticated through a JWT token can access the site.
9471
+ * `unpublished`: The site is not accessible to anyone.
9472
+ enum:
9473
+ - public
9474
+ - unlisted
9475
+ - share-link
9476
+ - visitor-auth
9477
+ - unpublished
9478
+ SitePublishingAuth:
9479
+ allOf:
9480
+ - type: object
9481
+ properties:
9482
+ object:
9483
+ type: string
9484
+ description: Type of Object, always equals to "publishing-auth"
9485
+ enum:
9486
+ - publishing-auth
9487
+ privateKey:
9488
+ type: string
9489
+ description: Private key used to sign JWT tokens.
9490
+ fallbackURL:
9491
+ type: string
9492
+ format: uri
9493
+ description: URL to redirect to when the visitor auth secret is invalid.
9494
+ required:
9495
+ - object
9496
+ - privateKey
9497
+ - $ref: "#/components/schemas/SpaceVisitorAuth"
9498
+ SiteBasename:
9499
+ type: string
9500
+ description: Basename for the site. For e.g. api
9501
+ minLength: 1
9502
+ maxLength: 100
9503
+ SiteHostname:
9504
+ type: string
9505
+ description: Custom hostname for the site, for e.g. docs.mycompany.com
9506
+ pattern: ^([a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?[.]){2,}[a-z0-9][a-z0-9-]{0,61}[a-z0-9]$
9507
+ SiteSpace:
9508
+ type: object
9509
+ properties:
9510
+ object:
9511
+ type: string
9512
+ description: The object type, which is always "site-space"
9513
+ enum:
9514
+ - site-space
9515
+ id:
9516
+ type: string
9517
+ description: Unique identifier of the site-space
9518
+ path:
9519
+ $ref: "#/components/schemas/SiteSpacePath"
9520
+ space:
9521
+ $ref: "#/components/schemas/Space"
9522
+ default:
9523
+ type: boolean
9524
+ description: Whether this is the default space for the site
9525
+ required:
9526
+ - id
9527
+ - space
9528
+ - path
9529
+ SiteSpacePath:
9530
+ type: string
9531
+ description: Path to the space on the site
9532
+ minLength: 1
9533
+ maxLength: 100
9534
+ SiteSubscriptionStatus:
9535
+ type: string
9536
+ enum:
9537
+ - active
9538
+ - inactive
9539
+ SiteSubscriptionType:
9540
+ type: string
9541
+ enum:
9542
+ - basic
9543
+ - premium
9544
+ SiteSubscription:
9545
+ type: object
9546
+ properties:
9547
+ type:
9548
+ $ref: "#/components/schemas/SiteSubscriptionType"
9549
+ status:
9550
+ $ref: "#/components/schemas/SiteSubscriptionStatus"
9551
+ required:
9552
+ - type
9553
+ - status
9554
+ CustomHostname:
9555
+ type: object
9556
+ properties:
9557
+ object:
9558
+ type: string
9559
+ enum:
9560
+ - custom-hostname
9561
+ hostname:
9562
+ $ref: "#/components/schemas/SiteHostname"
9563
+ target:
9564
+ oneOf:
9565
+ - $ref: "#/components/schemas/OrganizationPointer"
9566
+ - $ref: "#/components/schemas/SpacePointer"
9567
+ - $ref: "#/components/schemas/CollectionPointer"
9568
+ isActive:
9569
+ type: boolean
9570
+ status:
9571
+ $ref: "#/components/schemas/CustomHostnameStatus"
9572
+ urls:
9573
+ type: object
9574
+ description: URLs associated with the object
9575
+ properties:
9576
+ location:
9577
+ type: string
9578
+ description: URL of the custom hostname in the API
9579
+ format: uri
9580
+ required:
9581
+ - location
9582
+ required:
9583
+ - object
9584
+ - hostname
9585
+ - target
9586
+ - isActive
9587
+ - urls
9588
+ CustomHostnameStatus:
9589
+ type: string
9590
+ oneOf:
9591
+ - $ref: "#/components/schemas/CustomHostnameDnsStatus"
9592
+ - $ref: "#/components/schemas/CustomHostnameSslStatus"
9593
+ - $ref: "#/components/schemas/CustomHostnameErrorStatus"
9594
+ CustomHostnameDnsStatus:
9595
+ type: string
9596
+ enum:
9597
+ - dns_passed
9598
+ - dns_wrong_cname
9599
+ - dns_no_cname
9600
+ - dns_cloudflare_proxied
9601
+ - dns_wrong_caa
9602
+ CustomHostnameSslStatus:
9603
+ type: string
9604
+ enum:
9605
+ - live
9606
+ - ssl_unknown
9607
+ - ssl_pending
9608
+ - ssl_failed
9609
+ - ssl_retry_expired
9610
+ CustomHostnameErrorStatus:
9611
+ type: string
9612
+ enum:
9613
+ - invalid_domain
9614
+ - internal_error
9615
+ Seat:
9616
+ type: object
9617
+ properties:
9618
+ object:
9619
+ type: string
9620
+ enum:
9621
+ - seat
9622
+ organization:
9623
+ description: The unique ID of the organization
9624
+ type: string
9625
+ member:
9626
+ description: The unique ID of the organization member
9627
+ type: string
9628
+ createdAt:
9629
+ type: string
9630
+ format: date-time
9631
+ updatedAt:
9632
+ type: string
9633
+ format: date-time
9634
+ required:
9635
+ - object
9636
+ - organization
9637
+ - member
9638
+ - createdAt
9639
+ - 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
+ responses:
9654
+ BadRequestError:
9655
+ description: Bad Request
9656
+ content:
9657
+ application/json:
9658
+ schema:
9659
+ type: object
9660
+ required:
9661
+ - error
9662
+ properties:
9663
+ error:
9664
+ type: object
9665
+ properties:
9666
+ code:
9667
+ type: integer
9668
+ format: int32
9669
+ enum:
9670
+ - 400
9671
+ message:
9672
+ type: string
9673
+ required:
9674
+ - code
9675
+ - message
9676
+ ConflictError:
9677
+ description: Conflict
9678
+ content:
9679
+ application/json:
9680
+ schema:
9681
+ type: object
9682
+ required:
9683
+ - error
9684
+ properties:
9685
+ error:
9686
+ type: object
9687
+ properties:
9688
+ code:
9689
+ type: integer
9690
+ format: int32
9691
+ enum:
9692
+ - 409
9693
+ message:
9694
+ type: string
9695
+ required:
9696
+ - code
9697
+ - message
9698
+ NotFoundError:
9699
+ description: Not Found
9700
+ content:
9701
+ application/json:
9702
+ schema:
9703
+ type: object
9704
+ required:
8779
9705
  - error
8780
9706
  properties:
8781
9707
  error:
@@ -9015,7 +9941,7 @@ paths:
9015
9941
  visibility:
9016
9942
  $ref: "#/components/schemas/ContentVisibility"
9017
9943
  visitorAuth:
9018
- $ref: "#/components/schemas/Space/properties/visitorAuth"
9944
+ $ref: "#/components/schemas/SpaceVisitorAuth"
9019
9945
  description: The integration property, if set, is ignored.
9020
9946
  defaultLevel:
9021
9947
  $ref: "#/components/schemas/DefaultLevel"
@@ -9328,6 +10254,21 @@ paths:
9328
10254
  $ref: "#/components/schemas/SearchAIRecommendedQuestions"
9329
10255
  default:
9330
10256
  $ref: "#/components/responses/UnexpectedError"
10257
+ "/spaces/{spaceId}/search/questions/stream":
10258
+ get:
10259
+ operationId: streamRecommendedQuestionsInSpace
10260
+ summary: Stream a list of questions that can be asked in a space.
10261
+ parameters:
10262
+ - $ref: "#/components/parameters/spaceId"
10263
+ responses:
10264
+ "200":
10265
+ description: OK
10266
+ content:
10267
+ text/event-stream:
10268
+ schema:
10269
+ $ref: "#/components/schemas/SearchAIRecommendedQuestionStream"
10270
+ default:
10271
+ $ref: "#/components/responses/UnexpectedError"
9331
10272
  "/spaces/{spaceId}/git/import":
9332
10273
  post:
9333
10274
  operationId: importGitRepository
@@ -9370,6 +10311,27 @@ paths:
9370
10311
  application/json:
9371
10312
  schema:
9372
10313
  $ref: "#/components/schemas/RequestExportToGitRepository"
10314
+ "/spaces/{spaceId}/git/sync":
10315
+ post:
10316
+ operationId: syncGitRepository
10317
+ summary: Synchronize a Git repository with the space content.
10318
+ tags:
10319
+ - spaces
10320
+ security:
10321
+ - user: []
10322
+ parameters:
10323
+ - $ref: "#/components/parameters/spaceId"
10324
+ responses:
10325
+ "204":
10326
+ description: Operation to synchronize the repository has been started.
10327
+ default:
10328
+ $ref: "#/components/responses/UnexpectedError"
10329
+ requestBody:
10330
+ required: true
10331
+ content:
10332
+ application/json:
10333
+ schema:
10334
+ $ref: "#/components/schemas/RequestSyncGitRepository"
9373
10335
  "/spaces/{spaceId}/git/info":
9374
10336
  get:
9375
10337
  operationId: getSpaceGitInfo
@@ -9491,6 +10453,7 @@ paths:
9491
10453
  - user: []
9492
10454
  parameters:
9493
10455
  - $ref: "#/components/parameters/spaceId"
10456
+ - $ref: "#/components/parameters/revisionMetadata"
9494
10457
  responses:
9495
10458
  "200":
9496
10459
  description: OK
@@ -9536,6 +10499,7 @@ paths:
9536
10499
  - user: []
9537
10500
  parameters:
9538
10501
  - $ref: "#/components/parameters/spaceId"
10502
+ - $ref: "#/components/parameters/revisionMetadata"
9539
10503
  responses:
9540
10504
  "200":
9541
10505
  description: OK
@@ -9562,6 +10526,7 @@ paths:
9562
10526
  - $ref: "#/components/parameters/spaceId"
9563
10527
  - $ref: "#/components/parameters/listPage"
9564
10528
  - $ref: "#/components/parameters/listLimit"
10529
+ - $ref: "#/components/parameters/revisionMetadata"
9565
10530
  responses:
9566
10531
  "200":
9567
10532
  description: OK
@@ -9589,6 +10554,7 @@ paths:
9589
10554
  parameters:
9590
10555
  - $ref: "#/components/parameters/spaceId"
9591
10556
  - $ref: "#/components/parameters/fileId"
10557
+ - $ref: "#/components/parameters/revisionMetadata"
9592
10558
  responses:
9593
10559
  "200":
9594
10560
  description: OK
@@ -9608,6 +10574,7 @@ paths:
9608
10574
  - $ref: "#/components/parameters/spaceId"
9609
10575
  - $ref: "#/components/parameters/pageId"
9610
10576
  - $ref: "#/components/parameters/pageFormat"
10577
+ - $ref: "#/components/parameters/revisionMetadata"
9611
10578
  responses:
9612
10579
  "200":
9613
10580
  description: OK
@@ -9656,6 +10623,7 @@ paths:
9656
10623
  - $ref: "#/components/parameters/spaceId"
9657
10624
  - $ref: "#/components/parameters/pagePath"
9658
10625
  - $ref: "#/components/parameters/pageFormat"
10626
+ - $ref: "#/components/parameters/revisionMetadata"
9659
10627
  responses:
9660
10628
  "200":
9661
10629
  description: OK
@@ -10019,6 +10987,57 @@ paths:
10019
10987
  description: Optionally, update the subject of the change request when requesting reviewers.
10020
10988
  required:
10021
10989
  - users
10990
+ "/spaces/{spaceId}/change-requests/{changeRequestId}/links":
10991
+ get:
10992
+ operationId: listChangeRequestLinks
10993
+ summary: Get all links in the context of a change request including their status and location where they appear.
10994
+ tags:
10995
+ - spaces
10996
+ - links
10997
+ security:
10998
+ - user: []
10999
+ parameters:
11000
+ - $ref: "#/components/parameters/spaceId"
11001
+ - $ref: "#/components/parameters/changeRequestId"
11002
+ - $ref: "#/components/parameters/listPage"
11003
+ - $ref: "#/components/parameters/listLimit"
11004
+ - name: status
11005
+ in: query
11006
+ required: false
11007
+ schema:
11008
+ $ref: "#/components/schemas/ContentReferenceStatus"
11009
+ - name: brokenContext
11010
+ in: query
11011
+ required: false
11012
+ schema:
11013
+ type: string
11014
+ enum:
11015
+ - change-request
11016
+ - space
11017
+ responses:
11018
+ "200":
11019
+ description: OK
11020
+ content:
11021
+ application/json:
11022
+ schema:
11023
+ allOf:
11024
+ - $ref: "#/components/schemas/List"
11025
+ - type: object
11026
+ properties:
11027
+ stats:
11028
+ $ref: "#/components/schemas/ContentReferencesStats"
11029
+ items:
11030
+ type: array
11031
+ items:
11032
+ $ref: "#/components/schemas/ContentReferenceUsage"
11033
+ required:
11034
+ - items
11035
+ - stats
11036
+ "404":
11037
+ description: The change request could not be found.
11038
+ $ref: "#/components/responses/NotFoundError"
11039
+ default:
11040
+ $ref: "#/components/responses/UnexpectedError"
10022
11041
  "/spaces/{spaceId}/change-requests/{changeRequestId}/comments":
10023
11042
  get:
10024
11043
  operationId: listCommentsInChangeRequest
@@ -10311,6 +11330,7 @@ paths:
10311
11330
  parameters:
10312
11331
  - $ref: "#/components/parameters/spaceId"
10313
11332
  - $ref: "#/components/parameters/changeRequestId"
11333
+ - $ref: "#/components/parameters/revisionMetadata"
10314
11334
  responses:
10315
11335
  "200":
10316
11336
  description: OK
@@ -10358,6 +11378,7 @@ paths:
10358
11378
  parameters:
10359
11379
  - $ref: "#/components/parameters/spaceId"
10360
11380
  - $ref: "#/components/parameters/changeRequestId"
11381
+ - $ref: "#/components/parameters/revisionMetadata"
10361
11382
  responses:
10362
11383
  "200":
10363
11384
  description: OK
@@ -10385,6 +11406,7 @@ paths:
10385
11406
  - $ref: "#/components/parameters/changeRequestId"
10386
11407
  - $ref: "#/components/parameters/listPage"
10387
11408
  - $ref: "#/components/parameters/listLimit"
11409
+ - $ref: "#/components/parameters/revisionMetadata"
10388
11410
  responses:
10389
11411
  "200":
10390
11412
  description: OK
@@ -10413,6 +11435,7 @@ paths:
10413
11435
  - $ref: "#/components/parameters/spaceId"
10414
11436
  - $ref: "#/components/parameters/changeRequestId"
10415
11437
  - $ref: "#/components/parameters/fileId"
11438
+ - $ref: "#/components/parameters/revisionMetadata"
10416
11439
  responses:
10417
11440
  "200":
10418
11441
  description: OK
@@ -10433,6 +11456,7 @@ paths:
10433
11456
  - $ref: "#/components/parameters/changeRequestId"
10434
11457
  - $ref: "#/components/parameters/pageId"
10435
11458
  - $ref: "#/components/parameters/pageFormat"
11459
+ - $ref: "#/components/parameters/revisionMetadata"
10436
11460
  responses:
10437
11461
  "200":
10438
11462
  description: OK
@@ -10483,6 +11507,7 @@ paths:
10483
11507
  - $ref: "#/components/parameters/changeRequestId"
10484
11508
  - $ref: "#/components/parameters/pagePath"
10485
11509
  - $ref: "#/components/parameters/pageFormat"
11510
+ - $ref: "#/components/parameters/revisionMetadata"
10486
11511
  responses:
10487
11512
  "200":
10488
11513
  description: OK
@@ -10494,6 +11519,48 @@ paths:
10494
11519
  - $ref: "#/components/schemas/RevisionPageGroup"
10495
11520
  default:
10496
11521
  $ref: "#/components/responses/UnexpectedError"
11522
+ "/spaces/{spaceId}/change-requests/{changeRequestId}/touched-content":
11523
+ post:
11524
+ operationId: touchContentInChangeRequest
11525
+ summary: Touch Hive content, marking it as modified as part of this change request.
11526
+ tags:
11527
+ - spaces
11528
+ security:
11529
+ - user: []
11530
+ parameters:
11531
+ - $ref: "#/components/parameters/spaceId"
11532
+ - $ref: "#/components/parameters/changeRequestId"
11533
+ responses:
11534
+ "200":
11535
+ description: Content marked as touched.
11536
+ content:
11537
+ application/json:
11538
+ schema:
11539
+ $ref: "#/components/schemas/ChangeRequest"
11540
+ default:
11541
+ $ref: "#/components/responses/UnexpectedError"
11542
+ requestBody:
11543
+ required: true
11544
+ content:
11545
+ application/json:
11546
+ schema:
11547
+ type: object
11548
+ properties:
11549
+ contentId:
11550
+ type: string
11551
+ description: The content id of the touched content.
11552
+ branchId:
11553
+ type: string
11554
+ description: The branch id of the touched content.
11555
+ relation:
11556
+ type: string
11557
+ description: The relation of the touched content to the change request.
11558
+ enum:
11559
+ - synced-block
11560
+ required:
11561
+ - contentId
11562
+ - branchId
11563
+ - relation
10497
11564
  "/spaces/{spaceId}/revisions/{revisionId}":
10498
11565
  get:
10499
11566
  operationId: getRevisionById
@@ -10503,6 +11570,7 @@ paths:
10503
11570
  parameters:
10504
11571
  - $ref: "#/components/parameters/spaceId"
10505
11572
  - $ref: "#/components/parameters/revisionId"
11573
+ - $ref: "#/components/parameters/revisionMetadata"
10506
11574
  responses:
10507
11575
  "200":
10508
11576
  description: OK
@@ -10521,18 +11589,13 @@ paths:
10521
11589
  parameters:
10522
11590
  - $ref: "#/components/parameters/spaceId"
10523
11591
  - $ref: "#/components/parameters/revisionId"
11592
+ - $ref: "#/components/parameters/revisionMetadata"
10524
11593
  - name: limit
10525
11594
  in: query
10526
11595
  description: Limit the number of changes returned
10527
11596
  schema:
10528
11597
  type: number
10529
11598
  default: 10
10530
- - name: metadata
10531
- in: query
10532
- description: Whether to include changes to metadata, such as git information and custom fields
10533
- schema:
10534
- type: boolean
10535
- default: true
10536
11599
  responses:
10537
11600
  "200":
10538
11601
  description: OK
@@ -10560,6 +11623,8 @@ paths:
10560
11623
  - user: []
10561
11624
  parameters:
10562
11625
  - $ref: "#/components/parameters/spaceId"
11626
+ - $ref: "#/components/parameters/revisionId"
11627
+ - $ref: "#/components/parameters/revisionMetadata"
10563
11628
  responses:
10564
11629
  "200":
10565
11630
  description: OK
@@ -10587,6 +11652,7 @@ paths:
10587
11652
  - $ref: "#/components/parameters/revisionId"
10588
11653
  - $ref: "#/components/parameters/listPage"
10589
11654
  - $ref: "#/components/parameters/listLimit"
11655
+ - $ref: "#/components/parameters/revisionMetadata"
10590
11656
  responses:
10591
11657
  "200":
10592
11658
  description: OK
@@ -10615,6 +11681,7 @@ paths:
10615
11681
  - $ref: "#/components/parameters/spaceId"
10616
11682
  - $ref: "#/components/parameters/revisionId"
10617
11683
  - $ref: "#/components/parameters/fileId"
11684
+ - $ref: "#/components/parameters/revisionMetadata"
10618
11685
  responses:
10619
11686
  "200":
10620
11687
  description: OK
@@ -10635,6 +11702,7 @@ paths:
10635
11702
  - $ref: "#/components/parameters/revisionId"
10636
11703
  - $ref: "#/components/parameters/pageId"
10637
11704
  - $ref: "#/components/parameters/pageFormat"
11705
+ - $ref: "#/components/parameters/revisionMetadata"
10638
11706
  responses:
10639
11707
  "200":
10640
11708
  description: OK
@@ -10655,6 +11723,7 @@ paths:
10655
11723
  - $ref: "#/components/parameters/revisionId"
10656
11724
  - $ref: "#/components/parameters/pagePath"
10657
11725
  - $ref: "#/components/parameters/pageFormat"
11726
+ - $ref: "#/components/parameters/revisionMetadata"
10658
11727
  responses:
10659
11728
  "200":
10660
11729
  description: OK
@@ -11036,6 +12105,62 @@ paths:
11036
12105
  $ref: "#/components/responses/BadRequestError"
11037
12106
  default:
11038
12107
  $ref: "#/components/responses/UnexpectedError"
12108
+ "/spaces/{spaceId}/publishing/preview":
12109
+ get:
12110
+ operationId: getSpacePublishingPreviewById
12111
+ summary: Get a URL to preview the published content of a space. The URL will be valid for 1 hour.
12112
+ tags:
12113
+ - spaces
12114
+ security:
12115
+ - user: []
12116
+ parameters:
12117
+ - $ref: "#/components/parameters/spaceId"
12118
+ responses:
12119
+ "200":
12120
+ description: OK
12121
+ content:
12122
+ application/json:
12123
+ schema:
12124
+ type: object
12125
+ properties:
12126
+ url:
12127
+ $ref: "#/components/schemas/URL"
12128
+ required:
12129
+ - url
12130
+ "400":
12131
+ $ref: "#/components/responses/BadRequestError"
12132
+ default:
12133
+ $ref: "#/components/responses/UnexpectedError"
12134
+ "/spaces/{spaceId}/integrations":
12135
+ get:
12136
+ operationId: listSpaceIntegrations
12137
+ summary: List integrations enabled in a space.
12138
+ tags:
12139
+ - integrations
12140
+ - spaces
12141
+ security:
12142
+ - user: []
12143
+ parameters:
12144
+ - $ref: "#/components/parameters/spaceId"
12145
+ - $ref: "#/components/schemas/IntegrationSearchQuery"
12146
+ responses:
12147
+ "200":
12148
+ description: Listing of integrations enabled in the space.
12149
+ content:
12150
+ application/json:
12151
+ schema:
12152
+ allOf:
12153
+ - $ref: "#/components/schemas/List"
12154
+ - type: object
12155
+ required:
12156
+ - items
12157
+ properties:
12158
+ items:
12159
+ type: array
12160
+ items:
12161
+ $ref: "#/components/schemas/Integration"
12162
+ default:
12163
+ $ref: "#/components/responses/UnexpectedError"
11039
12164
  "/spaces/{spaceId}/integration-blocks":
11040
12165
  get:
11041
12166
  operationId: listSpaceIntegrationsBlocks
@@ -12262,7 +13387,7 @@ paths:
12262
13387
  content:
12263
13388
  application/json:
12264
13389
  schema:
12265
- $ref: "#/components/schemas/RequestUpdateIntegrationInstallation"
13390
+ $ref: "#/components/schemas/RequestUpdateIntegrationSpaceInstallation"
12266
13391
  delete:
12267
13392
  operationId: uninstallIntegrationFromSpace
12268
13393
  summary: Uninstall the integration from a space
@@ -12980,6 +14105,32 @@ paths:
12980
14105
  properties: {}
12981
14106
  default:
12982
14107
  $ref: "#/components/responses/UnexpectedError"
14108
+ "/orgs/{organizationId}/link-invites":
14109
+ post:
14110
+ operationId: createOrganizationInvite
14111
+ summary: Create a new organization invite
14112
+ tags:
14113
+ - organizations
14114
+ security:
14115
+ - user: []
14116
+ parameters:
14117
+ - $ref: "#/components/parameters/organizationId"
14118
+ requestBody:
14119
+ required: true
14120
+ content:
14121
+ application/json:
14122
+ schema:
14123
+ $ref: "#/components/schemas/CreateOrganizationInvite"
14124
+ responses:
14125
+ "201":
14126
+ description: The organization invite has been created
14127
+ content:
14128
+ application/json:
14129
+ schema:
14130
+ $ref: "#/components/schemas/OrganizationInvite"
14131
+ default:
14132
+ $ref: "#/components/responses/UnexpectedError"
14133
+ "/orgs/{organizationId}/link-invites/{inviteId}":
12983
14134
  patch:
12984
14135
  operationId: updateOrganizationInviteById
12985
14136
  summary: Update an organization invite.
@@ -12995,12 +14146,21 @@ paths:
12995
14146
  content:
12996
14147
  application/json:
12997
14148
  schema:
12998
- type: object
12999
- properties:
13000
- role:
13001
- $ref: "#/components/schemas/MemberRoleOrGuest"
13002
- contentLevel:
13003
- $ref: "#/components/schemas/MemberRoleOrGuest"
14149
+ oneOf:
14150
+ - type: object
14151
+ description: Update role of an organization invite
14152
+ properties:
14153
+ role:
14154
+ $ref: "#/components/schemas/MemberRoleOrGuest"
14155
+ required:
14156
+ - role
14157
+ - type: object
14158
+ description: Update level of an organization content invite
14159
+ properties:
14160
+ level:
14161
+ $ref: "#/components/schemas/MemberRoleOrGuest"
14162
+ required:
14163
+ - level
13004
14164
  responses:
13005
14165
  "200":
13006
14166
  description: The organization invite has been updated
@@ -13540,51 +14700,322 @@ paths:
13540
14700
  - items
13541
14701
  properties:
13542
14702
  items:
13543
- type: array
13544
- items:
13545
- $ref: "#/components/schemas/Integration"
14703
+ type: array
14704
+ items:
14705
+ $ref: "#/components/schemas/Integration"
14706
+ default:
14707
+ $ref: "#/components/responses/UnexpectedError"
14708
+ "/orgs/{organizationId}/integrations/{integrationName}/installation_status":
14709
+ get:
14710
+ operationId: getOrganizationIntegrationStatus
14711
+ summary: Get the status of an integration installation in an organization
14712
+ tags:
14713
+ - integrations
14714
+ security:
14715
+ - user: []
14716
+ parameters:
14717
+ - $ref: "#/components/parameters/organizationId"
14718
+ - $ref: "#/components/parameters/integrationName"
14719
+ responses:
14720
+ "200":
14721
+ description: Integration installation status
14722
+ content:
14723
+ application/json:
14724
+ schema:
14725
+ properties:
14726
+ status:
14727
+ $ref: "#/components/schemas/IntegrationInstallationStatus"
14728
+ required:
14729
+ - status
14730
+ "404":
14731
+ $ref: "#/components/responses/NotFoundError"
14732
+ default:
14733
+ $ref: "#/components/responses/UnexpectedError"
14734
+ "/orgs/{organizationId}/installations":
14735
+ get:
14736
+ operationId: listOrganizationInstallations
14737
+ summary: List installations of integrations in an organization.
14738
+ tags:
14739
+ - spaces
14740
+ parameters:
14741
+ - $ref: "#/components/parameters/organizationId"
14742
+ - $ref: "#/components/parameters/listPage"
14743
+ - $ref: "#/components/parameters/listLimit"
14744
+ - $ref: "#/components/schemas/IntegrationSearchQuery"
14745
+ responses:
14746
+ "200":
14747
+ description: List of integrations with the associated installations.
14748
+ content:
14749
+ application/json:
14750
+ schema:
14751
+ allOf:
14752
+ - $ref: "#/components/schemas/List"
14753
+ - type: object
14754
+ required:
14755
+ - items
14756
+ properties:
14757
+ items:
14758
+ type: array
14759
+ items:
14760
+ type: object
14761
+ properties:
14762
+ installation:
14763
+ $ref: "#/components/schemas/IntegrationInstallation"
14764
+ integration:
14765
+ $ref: "#/components/schemas/Integration"
14766
+ required:
14767
+ - integration
14768
+ - installation
14769
+ default:
14770
+ $ref: "#/components/responses/UnexpectedError"
14771
+ "/orgs/{organizationId}/experiments":
14772
+ get:
14773
+ operationId: listOrgExperimentalFeatures
14774
+ summary: List experiemental features for the given organization.
14775
+ tags:
14776
+ - organizations
14777
+ security:
14778
+ - user: []
14779
+ parameters:
14780
+ - $ref: "#/components/parameters/organizationId"
14781
+ responses:
14782
+ "200":
14783
+ description: OK
14784
+ content:
14785
+ application/json:
14786
+ schema:
14787
+ type: array
14788
+ items:
14789
+ $ref: "#/components/schemas/OrganizationExperimentalFeature"
14790
+ default:
14791
+ $ref: "#/components/responses/UnexpectedError"
14792
+ post:
14793
+ operationId: updateOrgExperimentalFeatures
14794
+ summary: Toggle on or off experimental features.
14795
+ tags:
14796
+ - organizations
14797
+ security:
14798
+ - user: []
14799
+ parameters:
14800
+ - $ref: "#/components/parameters/organizationId"
14801
+ requestBody:
14802
+ required: true
14803
+ content:
14804
+ application/json:
14805
+ schema:
14806
+ type: object
14807
+ additionalProperties:
14808
+ type: boolean
14809
+ responses:
14810
+ "204":
14811
+ description: OK
14812
+ default:
14813
+ $ref: "#/components/responses/UnexpectedError"
14814
+ "/orgs/{organizationId}/schemas":
14815
+ get:
14816
+ operationId: listEntitySchemas
14817
+ summary: List the entity schemas in an organization.
14818
+ tags:
14819
+ - organizations
14820
+ security:
14821
+ - user: []
14822
+ parameters:
14823
+ - $ref: "#/components/parameters/organizationId"
14824
+ - $ref: "#/components/parameters/listPage"
14825
+ - $ref: "#/components/parameters/listLimit"
14826
+ responses:
14827
+ "200":
14828
+ description: OK
14829
+ content:
14830
+ application/json:
14831
+ schema:
14832
+ allOf:
14833
+ - $ref: "#/components/schemas/List"
14834
+ - type: object
14835
+ required:
14836
+ - items
14837
+ properties:
14838
+ items:
14839
+ type: array
14840
+ items:
14841
+ $ref: "#/components/schemas/EntitySchema"
14842
+ default:
14843
+ $ref: "#/components/responses/UnexpectedError"
14844
+ "/orgs/{organizationId}/schemas/{entityType}":
14845
+ get:
14846
+ operationId: getEntitySchema
14847
+ summary: Get an entity schema by its type.
14848
+ tags:
14849
+ - organizations
14850
+ security:
14851
+ - user: []
14852
+ parameters:
14853
+ - $ref: "#/components/parameters/organizationId"
14854
+ - $ref: "#/components/parameters/entityType"
14855
+ responses:
14856
+ "200":
14857
+ description: OK
14858
+ content:
14859
+ application/json:
14860
+ schema:
14861
+ $ref: "#/components/schemas/EntitySchema"
14862
+ default:
14863
+ $ref: "#/components/responses/UnexpectedError"
14864
+ put:
14865
+ operationId: setEntitySchema
14866
+ summary: Create or update an entity schema.
14867
+ tags:
14868
+ - organizations
14869
+ security:
14870
+ - user: []
14871
+ parameters:
14872
+ - $ref: "#/components/parameters/organizationId"
14873
+ - $ref: "#/components/parameters/entityType"
14874
+ requestBody:
14875
+ required: true
14876
+ content:
14877
+ application/json:
14878
+ schema:
14879
+ $ref: "#/components/schemas/EntityRawSchema"
14880
+ responses:
14881
+ "204":
14882
+ description: OK
14883
+ default:
14884
+ $ref: "#/components/responses/UnexpectedError"
14885
+ delete:
14886
+ operationId: deleteEntitySchema
14887
+ summary: Delete an entity schema.
14888
+ tags:
14889
+ - organizations
14890
+ security:
14891
+ - user: []
14892
+ parameters:
14893
+ - $ref: "#/components/parameters/organizationId"
14894
+ - $ref: "#/components/parameters/entityType"
14895
+ responses:
14896
+ "204":
14897
+ description: OK
14898
+ default:
14899
+ $ref: "#/components/responses/UnexpectedError"
14900
+ "/orgs/{organizationId}/schemas/{entityType}/entities":
14901
+ get:
14902
+ operationId: listSchemaEntities
14903
+ summary: List entities in an organization for a given type.
14904
+ tags:
14905
+ - organizations
14906
+ security:
14907
+ - user: []
14908
+ parameters:
14909
+ - $ref: "#/components/parameters/organizationId"
14910
+ - $ref: "#/components/parameters/entityType"
14911
+ - $ref: "#/components/parameters/listPage"
14912
+ - $ref: "#/components/parameters/listLimit"
14913
+ - name: query
14914
+ in: query
14915
+ description: "Query to filter entities with, ex: a == 'something' && b >= 10"
14916
+ schema:
14917
+ type: string
14918
+ responses:
14919
+ "200":
14920
+ description: OK
14921
+ content:
14922
+ application/json:
14923
+ schema:
14924
+ allOf:
14925
+ - $ref: "#/components/schemas/List"
14926
+ - type: object
14927
+ required:
14928
+ - items
14929
+ properties:
14930
+ items:
14931
+ type: array
14932
+ items:
14933
+ $ref: "#/components/schemas/Entity"
14934
+ default:
14935
+ $ref: "#/components/responses/UnexpectedError"
14936
+ put:
14937
+ operationId: upsertSchemaEntities
14938
+ summary: Update/Create/Delete entities in a schema.
14939
+ tags:
14940
+ - organizations
14941
+ security:
14942
+ - user: []
14943
+ parameters:
14944
+ - $ref: "#/components/parameters/organizationId"
14945
+ - $ref: "#/components/parameters/entityType"
14946
+ requestBody:
14947
+ required: true
14948
+ content:
14949
+ application/json:
14950
+ schema:
14951
+ type: object
14952
+ properties:
14953
+ delete:
14954
+ oneOf:
14955
+ - type: boolean
14956
+ description: If true, all entities not listed in the requests will be deleted
14957
+ - type: array
14958
+ description: List of entityIds to delete
14959
+ items:
14960
+ $ref: "#/components/schemas/EntityId"
14961
+ entities:
14962
+ type: array
14963
+ description: Array of entities to create/update.
14964
+ items:
14965
+ $ref: "#/components/schemas/UpsertEntity"
14966
+ responses:
14967
+ "204":
14968
+ description: OK
13546
14969
  default:
13547
14970
  $ref: "#/components/responses/UnexpectedError"
13548
- "/orgs/{organizationId}/integrations/{integrationName}/installation_status":
14971
+ "/orgs/{organizationId}/schemas/{entityType}/entities/{entityId}":
13549
14972
  get:
13550
- operationId: getOrganizationIntegrationStatus
13551
- summary: Get the status of an integration installation in an organization
14973
+ operationId: getEntity
14974
+ summary: Get an entity using its ID.
13552
14975
  tags:
13553
- - integrations
14976
+ - organizations
13554
14977
  security:
13555
14978
  - user: []
13556
14979
  parameters:
13557
14980
  - $ref: "#/components/parameters/organizationId"
13558
- - $ref: "#/components/parameters/integrationName"
14981
+ - $ref: "#/components/parameters/entityType"
14982
+ - $ref: "#/components/parameters/entityId"
13559
14983
  responses:
13560
14984
  "200":
13561
- description: Integration installation status
14985
+ description: OK
13562
14986
  content:
13563
14987
  application/json:
13564
14988
  schema:
13565
- properties:
13566
- status:
13567
- $ref: "#/components/schemas/IntegrationInstallationStatus"
13568
- required:
13569
- - status
13570
- "404":
13571
- $ref: "#/components/responses/NotFoundError"
14989
+ $ref: "#/components/schemas/Entity"
13572
14990
  default:
13573
14991
  $ref: "#/components/responses/UnexpectedError"
13574
- "/orgs/{organizationId}/installations":
14992
+ "/orgs/{organizationId}/captures":
13575
14993
  get:
13576
- operationId: listOrganizationInstallations
13577
- summary: List installations of integrations in an organization.
14994
+ operationId: listCaptures
14995
+ deprecated: true
14996
+ summary: List captures. Deprecated, use listSnippets instead.
14997
+ description: |
14998
+ List captures in an organization, newest first.
13578
14999
  tags:
13579
- - spaces
15000
+ - organizations
15001
+ security:
15002
+ - user: []
13580
15003
  parameters:
13581
15004
  - $ref: "#/components/parameters/organizationId"
15005
+ - $ref: "#/components/parameters/pageFormat"
13582
15006
  - $ref: "#/components/parameters/listPage"
13583
15007
  - $ref: "#/components/parameters/listLimit"
13584
- - $ref: "#/components/schemas/IntegrationSearchQuery"
15008
+ - name: context
15009
+ in: query
15010
+ description: The context in which the item was captured
15011
+ schema:
15012
+ type: string
15013
+ enum:
15014
+ - walkthrough
15015
+ - thread
13585
15016
  responses:
13586
15017
  "200":
13587
- description: List of integrations with the associated installations.
15018
+ description: OK
13588
15019
  content:
13589
15020
  application/json:
13590
15021
  schema:
@@ -13597,265 +15028,348 @@ paths:
13597
15028
  items:
13598
15029
  type: array
13599
15030
  items:
13600
- type: object
13601
- properties:
13602
- installation:
13603
- $ref: "#/components/schemas/IntegrationInstallation"
13604
- integration:
13605
- $ref: "#/components/schemas/Integration"
13606
- required:
13607
- - integration
13608
- - installation
15031
+ $ref: "#/components/schemas/Capture"
13609
15032
  default:
13610
15033
  $ref: "#/components/responses/UnexpectedError"
13611
- "/orgs/{organizationId}/experiments":
15034
+ post:
15035
+ operationId: startCapture
15036
+ summary: Start a capture
15037
+ tags:
15038
+ - organizations
15039
+ security:
15040
+ - user: []
15041
+ parameters:
15042
+ - $ref: "#/components/parameters/organizationId"
15043
+ requestBody:
15044
+ content:
15045
+ application/json:
15046
+ schema:
15047
+ type: object
15048
+ properties:
15049
+ title:
15050
+ $ref: "#/components/schemas/CaptureTitle"
15051
+ context:
15052
+ $ref: "#/components/schemas/CaptureContext"
15053
+ externalId:
15054
+ type: string
15055
+ description: ID in the original source of the capture.
15056
+ externalURL:
15057
+ type: string
15058
+ format: uri
15059
+ description: URL of the original source of the capture.
15060
+ required:
15061
+ - context
15062
+ responses:
15063
+ "201":
15064
+ description: Capture started
15065
+ headers:
15066
+ Location:
15067
+ description: API URL for the newly created capture
15068
+ schema:
15069
+ type: string
15070
+ content:
15071
+ application/json:
15072
+ schema:
15073
+ $ref: "#/components/schemas/Capture"
15074
+ default:
15075
+ $ref: "#/components/responses/UnexpectedError"
15076
+ "/orgs/{organizationId}/captures/{captureId}":
13612
15077
  get:
13613
- operationId: listOrgExperimentalFeatures
13614
- summary: List experiemental features for the given organization.
15078
+ operationId: getCapture
15079
+ deprecated: true
15080
+ summary: Get a capture by its ID. Deprecated, use getSnippet instead.
13615
15081
  tags:
13616
15082
  - organizations
13617
15083
  security:
13618
15084
  - user: []
13619
15085
  parameters:
13620
15086
  - $ref: "#/components/parameters/organizationId"
15087
+ - $ref: "#/components/parameters/captureId"
15088
+ - $ref: "#/components/parameters/pageFormat"
13621
15089
  responses:
13622
15090
  "200":
13623
15091
  description: OK
13624
15092
  content:
13625
15093
  application/json:
13626
15094
  schema:
13627
- type: array
13628
- items:
13629
- $ref: "#/components/schemas/OrganizationExperimentalFeature"
15095
+ $ref: "#/components/schemas/Capture"
13630
15096
  default:
13631
15097
  $ref: "#/components/responses/UnexpectedError"
15098
+ "/orgs/{organizationId}/captures/{captureId}/events":
13632
15099
  post:
13633
- operationId: updateOrgExperimentalFeatures
13634
- summary: Toggle on or off experimental features.
15100
+ operationId: addEventsToCapture
15101
+ summary: Add events to a running capture
13635
15102
  tags:
13636
15103
  - organizations
13637
15104
  security:
13638
15105
  - user: []
13639
15106
  parameters:
13640
15107
  - $ref: "#/components/parameters/organizationId"
15108
+ - $ref: "#/components/parameters/captureId"
13641
15109
  requestBody:
13642
- required: true
13643
15110
  content:
13644
15111
  application/json:
13645
15112
  schema:
13646
15113
  type: object
13647
- additionalProperties:
13648
- type: boolean
15114
+ properties:
15115
+ events:
15116
+ type: array
15117
+ items:
15118
+ $ref: "#/components/schemas/CaptureEvent"
15119
+ required:
15120
+ - events
13649
15121
  responses:
13650
15122
  "204":
13651
- description: OK
15123
+ description: Events added
13652
15124
  default:
13653
15125
  $ref: "#/components/responses/UnexpectedError"
13654
- "/orgs/{organizationId}/schemas":
13655
- get:
13656
- operationId: listEntitySchemas
13657
- summary: List the entity schemas in an organization.
15126
+ "/orgs/{organizationId}/captures/{captureId}/stop":
15127
+ post:
15128
+ operationId: stopCapture
15129
+ summary: Stop a capture
13658
15130
  tags:
13659
15131
  - organizations
13660
15132
  security:
13661
15133
  - user: []
13662
15134
  parameters:
13663
15135
  - $ref: "#/components/parameters/organizationId"
13664
- - $ref: "#/components/parameters/listPage"
13665
- - $ref: "#/components/parameters/listLimit"
15136
+ - $ref: "#/components/parameters/captureId"
15137
+ - $ref: "#/components/parameters/pageFormat"
15138
+ requestBody:
15139
+ content:
15140
+ application/json:
15141
+ schema:
15142
+ type: object
15143
+ properties: {}
13666
15144
  responses:
13667
15145
  "200":
13668
- description: OK
15146
+ description: Capture stopped
13669
15147
  content:
13670
15148
  application/json:
13671
15149
  schema:
13672
- allOf:
13673
- - $ref: "#/components/schemas/List"
13674
- - type: object
13675
- required:
13676
- - items
13677
- properties:
13678
- items:
13679
- type: array
13680
- items:
13681
- $ref: "#/components/schemas/EntitySchema"
15150
+ type: object
15151
+ properties:
15152
+ capture:
15153
+ $ref: "#/components/schemas/Capture"
15154
+ followupQuestions:
15155
+ description: Example questions that would be answered by the content of this capture.
15156
+ type: array
15157
+ items:
15158
+ type: string
15159
+ required:
15160
+ - capture
13682
15161
  default:
13683
15162
  $ref: "#/components/responses/UnexpectedError"
13684
- "/orgs/{organizationId}/schemas/{entityType}":
15163
+ "/orgs/{organizationId}/snippets":
13685
15164
  get:
13686
- operationId: getEntitySchema
13687
- summary: Get an entity schema by its type.
15165
+ operationId: listSnippets
15166
+ summary: Lists snippets.
15167
+ description: |
15168
+ List snippets in an organization, newest first.
13688
15169
  tags:
13689
15170
  - organizations
13690
15171
  security:
13691
15172
  - user: []
13692
15173
  parameters:
13693
15174
  - $ref: "#/components/parameters/organizationId"
13694
- - $ref: "#/components/parameters/entityType"
15175
+ - $ref: "#/components/parameters/listPage"
15176
+ - $ref: "#/components/parameters/listLimit"
15177
+ - name: source
15178
+ in: query
15179
+ description: If specified, only snippets from the specified source will be returned.
15180
+ schema:
15181
+ type: string
13695
15182
  responses:
13696
15183
  "200":
13697
15184
  description: OK
13698
15185
  content:
13699
15186
  application/json:
13700
15187
  schema:
13701
- $ref: "#/components/schemas/EntitySchema"
15188
+ allOf:
15189
+ - $ref: "#/components/schemas/List"
15190
+ - type: object
15191
+ required:
15192
+ - items
15193
+ properties:
15194
+ items:
15195
+ type: array
15196
+ items:
15197
+ $ref: "#/components/schemas/Snippet"
13702
15198
  default:
13703
15199
  $ref: "#/components/responses/UnexpectedError"
13704
- put:
13705
- operationId: setEntitySchema
13706
- summary: Create or update an entity schema.
15200
+ post:
15201
+ operationId: createSnippet
15202
+ summary: Create a new snippet
13707
15203
  tags:
13708
15204
  - organizations
13709
15205
  security:
13710
15206
  - user: []
13711
15207
  parameters:
13712
15208
  - $ref: "#/components/parameters/organizationId"
13713
- - $ref: "#/components/parameters/entityType"
13714
15209
  requestBody:
13715
- required: true
13716
15210
  content:
13717
15211
  application/json:
13718
15212
  schema:
13719
- $ref: "#/components/schemas/EntityRawSchema"
15213
+ type: object
13720
15214
  responses:
13721
- "204":
13722
- description: OK
15215
+ "201":
15216
+ description: Snippet created
15217
+ headers:
15218
+ Location:
15219
+ description: API URL for the newly created snippet
15220
+ schema:
15221
+ type: string
15222
+ content:
15223
+ application/json:
15224
+ schema:
15225
+ $ref: "#/components/schemas/Snippet"
13723
15226
  default:
13724
15227
  $ref: "#/components/responses/UnexpectedError"
13725
- delete:
13726
- operationId: deleteEntitySchema
13727
- summary: Delete an entity schema.
15228
+ "/orgs/{organizationId}/snippets/{snippetId}":
15229
+ get:
15230
+ operationId: getSnippet
15231
+ summary: Get a snippet by its ID
13728
15232
  tags:
13729
15233
  - organizations
13730
15234
  security:
13731
15235
  - user: []
13732
15236
  parameters:
13733
15237
  - $ref: "#/components/parameters/organizationId"
13734
- - $ref: "#/components/parameters/entityType"
15238
+ - $ref: "#/components/parameters/snippetId"
13735
15239
  responses:
13736
- "204":
15240
+ "200":
13737
15241
  description: OK
15242
+ content:
15243
+ application/json:
15244
+ schema:
15245
+ $ref: "#/components/schemas/Snippet"
13738
15246
  default:
13739
15247
  $ref: "#/components/responses/UnexpectedError"
13740
- "/orgs/{organizationId}/schemas/{entityType}/entities":
13741
- get:
13742
- operationId: listSchemaEntities
13743
- summary: List entities in an organization for a given type.
15248
+ delete:
15249
+ operationId: deleteSnippet
15250
+ summary: Delete a snippet by its ID.
13744
15251
  tags:
13745
15252
  - organizations
13746
15253
  security:
13747
15254
  - user: []
13748
15255
  parameters:
13749
15256
  - $ref: "#/components/parameters/organizationId"
13750
- - $ref: "#/components/parameters/entityType"
13751
- - $ref: "#/components/parameters/listPage"
13752
- - $ref: "#/components/parameters/listLimit"
13753
- - name: query
13754
- in: query
13755
- description: "Query to filter entities with, ex: a == 'something' && b >= 10"
13756
- schema:
13757
- type: string
15257
+ - $ref: "#/components/parameters/snippetId"
13758
15258
  responses:
13759
15259
  "200":
13760
15260
  description: OK
13761
- content:
13762
- application/json:
13763
- schema:
13764
- allOf:
13765
- - $ref: "#/components/schemas/List"
13766
- - type: object
13767
- required:
13768
- - items
13769
- properties:
13770
- items:
13771
- type: array
13772
- items:
13773
- $ref: "#/components/schemas/Entity"
13774
15261
  default:
13775
15262
  $ref: "#/components/responses/UnexpectedError"
13776
15263
  put:
13777
- operationId: upsertSchemaEntities
13778
- summary: Update/Create/Delete entities in a schema.
15264
+ operationId: updateSnippet
15265
+ summary: Update an existing snippet.
13779
15266
  tags:
13780
15267
  - organizations
13781
15268
  security:
13782
15269
  - user: []
13783
15270
  parameters:
13784
15271
  - $ref: "#/components/parameters/organizationId"
13785
- - $ref: "#/components/parameters/entityType"
15272
+ - $ref: "#/components/parameters/snippetId"
15273
+ - $ref: "#/components/parameters/ifUnmodifiedSince"
13786
15274
  requestBody:
13787
15275
  required: true
13788
15276
  content:
13789
15277
  application/json:
13790
15278
  schema:
13791
- type: object
13792
- properties:
13793
- delete:
13794
- oneOf:
13795
- - type: boolean
13796
- description: If true, all entities not listed in the requests will be deleted
13797
- - type: array
13798
- description: List of entityIds to delete
13799
- items:
13800
- $ref: "#/components/schemas/EntityId"
13801
- entities:
13802
- type: array
13803
- description: Array of entities to create/update.
13804
- items:
13805
- $ref: "#/components/schemas/UpsertEntity"
15279
+ $ref: "#/components/schemas/UpdateSnippetSchema"
13806
15280
  responses:
13807
- "204":
15281
+ "200":
13808
15282
  description: OK
15283
+ content:
15284
+ application/json:
15285
+ schema:
15286
+ $ref: "#/components/schemas/Snippet"
13809
15287
  default:
13810
15288
  $ref: "#/components/responses/UnexpectedError"
13811
- "/orgs/{organizationId}/schemas/{entityType}/entities/{entityId}":
13812
- get:
13813
- operationId: getEntity
13814
- summary: Get an entity using its ID.
15289
+ "/orgs/{organizationId}/snippets/{snippetId}/move":
15290
+ post:
15291
+ operationId: moveSnippet
15292
+ summary: Move a snippet into a destination. The snippet will be archived in the process.
13815
15293
  tags:
13816
15294
  - organizations
13817
15295
  security:
13818
15296
  - user: []
13819
15297
  parameters:
13820
15298
  - $ref: "#/components/parameters/organizationId"
13821
- - $ref: "#/components/parameters/entityType"
13822
- - $ref: "#/components/parameters/entityId"
15299
+ - $ref: "#/components/parameters/snippetId"
15300
+ requestBody:
15301
+ required: true
15302
+ content:
15303
+ application/json:
15304
+ schema:
15305
+ type: object
15306
+ required:
15307
+ - target
15308
+ properties:
15309
+ target:
15310
+ type: object
15311
+ description: Intended destination for the page
15312
+ properties:
15313
+ space:
15314
+ description: The id of the target space
15315
+ type: string
15316
+ position:
15317
+ type: object
15318
+ properties:
15319
+ parent:
15320
+ description: The parent of the page in the target space. If undefined, the page will be inserted at the root of the space.
15321
+ type: string
15322
+ index:
15323
+ description: The index of the page in the parent. If undefined, the page will be inserted at the end of the parent's current children.
15324
+ type: number
15325
+ required:
15326
+ - space
13823
15327
  responses:
13824
15328
  "200":
13825
- description: OK
15329
+ description: The snippet was successfully moved.
13826
15330
  content:
13827
15331
  application/json:
13828
15332
  schema:
13829
- $ref: "#/components/schemas/Entity"
15333
+ type: object
15334
+ required:
15335
+ - page
15336
+ properties:
15337
+ page:
15338
+ $ref: "#/components/schemas/RevisionPageDocument"
15339
+ changeRequest:
15340
+ $ref: "#/components/schemas/ChangeRequest"
13830
15341
  default:
13831
15342
  $ref: "#/components/responses/UnexpectedError"
13832
- "/orgs/{organizationId}/captures":
13833
15343
  get:
13834
- operationId: listCaptures
13835
- deprecated: true
13836
- summary: List captures. Deprecated, use listSnippets instead.
13837
- description: |
13838
- List captures in an organization, newest first.
15344
+ operationId: getSnippetSuggestedLocations
15345
+ summary: Return possible snippet locations in an organization based on the current user.
13839
15346
  tags:
13840
15347
  - organizations
13841
15348
  security:
13842
15349
  - user: []
13843
15350
  parameters:
13844
15351
  - $ref: "#/components/parameters/organizationId"
13845
- - $ref: "#/components/parameters/pageFormat"
15352
+ - $ref: "#/components/parameters/snippetId"
13846
15353
  - $ref: "#/components/parameters/listPage"
13847
15354
  - $ref: "#/components/parameters/listLimit"
13848
- - name: context
15355
+ - name: spaceId
13849
15356
  in: query
13850
- description: The context in which the item was captured
15357
+ description: If specified, only locations in the given space will be returned. If not specified, GitBook will suggest spaces.
15358
+ schema:
15359
+ type: string
15360
+ - name: pageId
15361
+ in: query
15362
+ description: If specified, only locations under the given pageId will be returned. You must specify a spaceId too. If pageId is not specified, GitBook will suggest pages at the top level.
15363
+ schema:
15364
+ type: string
15365
+ - name: search
15366
+ in: query
15367
+ description: If specified, only locations matching the search query will be returned.
13851
15368
  schema:
13852
15369
  type: string
13853
- enum:
13854
- - walkthrough
13855
- - thread
13856
15370
  responses:
13857
15371
  "200":
13858
- description: OK
15372
+ description: A paginated list of suggested snippet locations.
13859
15373
  content:
13860
15374
  application/json:
13861
15375
  schema:
@@ -13868,12 +15382,26 @@ paths:
13868
15382
  items:
13869
15383
  type: array
13870
15384
  items:
13871
- $ref: "#/components/schemas/Capture"
15385
+ type: object
15386
+ required:
15387
+ - space
15388
+ properties:
15389
+ aiPowered:
15390
+ type: boolean
15391
+ description: If defined and true, this location was suggested by GitBook AI.
15392
+ space:
15393
+ $ref: "#/components/schemas/Space"
15394
+ parentPage:
15395
+ description: The parent page of the suggested location.
15396
+ oneOf:
15397
+ - $ref: "#/components/schemas/RevisionPageDocument"
15398
+ - $ref: "#/components/schemas/RevisionPageGroup"
13872
15399
  default:
13873
15400
  $ref: "#/components/responses/UnexpectedError"
15401
+ "/orgs/{organizationId}/synced-blocks":
13874
15402
  post:
13875
- operationId: startCapture
13876
- summary: Start a capture
15403
+ operationId: createSyncedBlock
15404
+ summary: Create a new synced block
13877
15405
  tags:
13878
15406
  - organizations
13879
15407
  security:
@@ -13881,147 +15409,206 @@ paths:
13881
15409
  parameters:
13882
15410
  - $ref: "#/components/parameters/organizationId"
13883
15411
  requestBody:
15412
+ required: true
13884
15413
  content:
13885
15414
  application/json:
13886
15415
  schema:
13887
15416
  type: object
15417
+ required:
15418
+ - document
13888
15419
  properties:
13889
15420
  title:
13890
- $ref: "#/components/schemas/CaptureTitle"
13891
- context:
13892
- $ref: "#/components/schemas/CaptureContext"
13893
- externalId:
13894
15421
  type: string
13895
- description: ID in the original source of the capture.
13896
- externalURL:
13897
- type: string
13898
- format: uri
13899
- description: URL of the original source of the capture.
13900
- required:
13901
- - context
15422
+ description: Title of synced block
15423
+ document:
15424
+ $ref: "#/components/schemas/Document"
13902
15425
  responses:
13903
15426
  "201":
13904
- description: Capture started
15427
+ description: Synced block created
13905
15428
  headers:
13906
15429
  Location:
13907
- description: API URL for the newly created capture
15430
+ description: API URL for the newly created synced block
13908
15431
  schema:
13909
15432
  type: string
13910
15433
  content:
13911
15434
  application/json:
13912
15435
  schema:
13913
- $ref: "#/components/schemas/Capture"
15436
+ $ref: "#/components/schemas/SyncedBlock"
13914
15437
  default:
13915
15438
  $ref: "#/components/responses/UnexpectedError"
13916
- "/orgs/{organizationId}/captures/{captureId}":
15439
+ "/orgs/{organizationId}/synced-blocks/{syncedBlockId}":
13917
15440
  get:
13918
- operationId: getCapture
13919
- deprecated: true
13920
- summary: Get a capture by its ID. Deprecated, use getSnippet instead.
15441
+ operationId: getSyncedBlock
15442
+ summary: Get a synced block by its ID
13921
15443
  tags:
13922
15444
  - organizations
13923
15445
  security:
13924
15446
  - user: []
13925
15447
  parameters:
13926
15448
  - $ref: "#/components/parameters/organizationId"
13927
- - $ref: "#/components/parameters/captureId"
13928
- - $ref: "#/components/parameters/pageFormat"
15449
+ - $ref: "#/components/parameters/syncedBlockId"
13929
15450
  responses:
13930
15451
  "200":
13931
15452
  description: OK
13932
15453
  content:
13933
15454
  application/json:
13934
15455
  schema:
13935
- $ref: "#/components/schemas/Capture"
15456
+ $ref: "#/components/schemas/SyncedBlock"
13936
15457
  default:
13937
15458
  $ref: "#/components/responses/UnexpectedError"
13938
- "/orgs/{organizationId}/captures/{captureId}/events":
13939
- post:
13940
- operationId: addEventsToCapture
13941
- summary: Add events to a running capture
15459
+ put:
15460
+ operationId: updateSyncedBlock
15461
+ summary: Update an existing synced block.
13942
15462
  tags:
13943
15463
  - organizations
13944
15464
  security:
13945
15465
  - user: []
13946
15466
  parameters:
13947
15467
  - $ref: "#/components/parameters/organizationId"
13948
- - $ref: "#/components/parameters/captureId"
15468
+ - $ref: "#/components/parameters/syncedBlockId"
13949
15469
  requestBody:
15470
+ required: true
13950
15471
  content:
13951
15472
  application/json:
13952
15473
  schema:
13953
15474
  type: object
13954
15475
  properties:
13955
- events:
13956
- type: array
13957
- items:
13958
- $ref: "#/components/schemas/CaptureEvent"
13959
- required:
13960
- - events
15476
+ title:
15477
+ type: string
15478
+ description: A new title for the Synced Block.
13961
15479
  responses:
13962
- "204":
13963
- description: Events added
15480
+ "200":
15481
+ description: OK
13964
15482
  default:
13965
15483
  $ref: "#/components/responses/UnexpectedError"
13966
- "/orgs/{organizationId}/captures/{captureId}/stop":
15484
+ "/orgs/{organizationId}/ask":
13967
15485
  post:
13968
- operationId: stopCapture
13969
- summary: Stop a capture
13970
- tags:
13971
- - organizations
15486
+ operationId: askInOrganization
15487
+ summary: Ask a question.
15488
+ security:
15489
+ - user: []
15490
+ parameters:
15491
+ - $ref: "#/components/parameters/organizationId"
15492
+ - $ref: "#/components/parameters/pageFormat"
15493
+ requestBody:
15494
+ required: true
15495
+ content:
15496
+ application/json:
15497
+ schema:
15498
+ $ref: "#/components/schemas/SearchAIQuery"
15499
+ responses:
15500
+ "200":
15501
+ description: OK
15502
+ content:
15503
+ application/json:
15504
+ schema:
15505
+ type: object
15506
+ properties:
15507
+ answer:
15508
+ $ref: "#/components/schemas/SearchAIAnswer"
15509
+ default:
15510
+ $ref: "#/components/responses/UnexpectedError"
15511
+ "/orgs/{organizationId}/ask/questions":
15512
+ get:
15513
+ operationId: getRecommendedQuestionsInOrganization
15514
+ summary: Get a list of questions recommended to be asked in an organization.
15515
+ parameters:
15516
+ - $ref: "#/components/parameters/organizationId"
15517
+ security:
15518
+ - user: []
15519
+ responses:
15520
+ "200":
15521
+ description: OK
15522
+ content:
15523
+ application/json:
15524
+ schema:
15525
+ $ref: "#/components/schemas/SearchAIRecommendedQuestions"
15526
+ default:
15527
+ $ref: "#/components/responses/UnexpectedError"
15528
+ "/orgs/{organizationId}/ask/questions/stream":
15529
+ get:
15530
+ operationId: streamRecommendedQuestionsInOrganization
15531
+ summary: Stream a list of questions recommended to be asked in an organization.
15532
+ parameters:
15533
+ - $ref: "#/components/parameters/organizationId"
15534
+ security:
15535
+ - user: []
15536
+ responses:
15537
+ "200":
15538
+ description: OK
15539
+ content:
15540
+ text/event-stream:
15541
+ schema:
15542
+ $ref: "#/components/schemas/SearchAIRecommendedQuestionStream"
15543
+ default:
15544
+ $ref: "#/components/responses/UnexpectedError"
15545
+ "/orgs/{organizationId}/ask/stream":
15546
+ get:
15547
+ operationId: streamAskInOrganization
15548
+ summary: Ask a question to an AI across spaces that is accessible by the currently authenticated target and stream the answer as a Server-Sent Events URL.
13972
15549
  security:
13973
15550
  - user: []
13974
15551
  parameters:
13975
15552
  - $ref: "#/components/parameters/organizationId"
13976
- - $ref: "#/components/parameters/captureId"
15553
+ - name: query
15554
+ in: query
15555
+ required: true
15556
+ schema:
15557
+ type: string
13977
15558
  - $ref: "#/components/parameters/pageFormat"
13978
- requestBody:
13979
- content:
13980
- application/json:
13981
- schema:
13982
- type: object
13983
- properties: {}
13984
15559
  responses:
13985
15560
  "200":
13986
- description: Capture stopped
15561
+ description: OK
13987
15562
  content:
13988
- application/json:
15563
+ text/event-stream:
13989
15564
  schema:
13990
- type: object
13991
- properties:
13992
- capture:
13993
- $ref: "#/components/schemas/Capture"
13994
- followupQuestions:
13995
- description: Example questions that would be answered by the content of this capture.
13996
- type: array
13997
- items:
13998
- type: string
13999
- required:
14000
- - capture
15565
+ $ref: "#/components/schemas/SearchAIAnswerStream"
14001
15566
  default:
14002
15567
  $ref: "#/components/responses/UnexpectedError"
14003
- "/orgs/{organizationId}/snippets":
15568
+ "/orgs/{organizationId}/insights/audit-relations":
14004
15569
  get:
14005
- operationId: listSnippets
14006
- summary: Lists snippets.
14007
- description: |
14008
- List snippets in an organization, newest first.
15570
+ operationId: listContentAuditRelations
15571
+ summary: List the content relations for in a given organization.
14009
15572
  tags:
14010
- - organizations
15573
+ - ai
15574
+ - spaces
14011
15575
  security:
14012
15576
  - user: []
14013
15577
  parameters:
14014
15578
  - $ref: "#/components/parameters/organizationId"
14015
15579
  - $ref: "#/components/parameters/listPage"
14016
15580
  - $ref: "#/components/parameters/listLimit"
14017
- - name: source
15581
+ - name: status
14018
15582
  in: query
14019
- description: If specified, only snippets from the specified source will be returned.
15583
+ required: false
15584
+ description: Status of the audit relation to filter on
15585
+ schema:
15586
+ default: pending
15587
+ oneOf:
15588
+ - $ref: "#/components/schemas/ContentAuditRelationStatus"
15589
+ - type: string
15590
+ enum:
15591
+ - all
15592
+ - name: space
15593
+ in: query
15594
+ required: false
15595
+ description: Space concerned by the relation
14020
15596
  schema:
14021
15597
  type: string
15598
+ - name: type
15599
+ in: query
15600
+ required: false
15601
+ description: Type of the audit relation to filter on
15602
+ schema:
15603
+ default: all
15604
+ oneOf:
15605
+ - $ref: "#/components/schemas/ContentAuditRelationType"
15606
+ - type: string
15607
+ enum:
15608
+ - all
14022
15609
  responses:
14023
15610
  "200":
14024
- description: OK
15611
+ description: Content audit relations
14025
15612
  content:
14026
15613
  application/json:
14027
15614
  schema:
@@ -14034,182 +15621,110 @@ paths:
14034
15621
  items:
14035
15622
  type: array
14036
15623
  items:
14037
- $ref: "#/components/schemas/Snippet"
14038
- default:
14039
- $ref: "#/components/responses/UnexpectedError"
14040
- post:
14041
- operationId: createSnippet
14042
- summary: Create a new snippet
14043
- tags:
14044
- - organizations
14045
- security:
14046
- - user: []
14047
- parameters:
14048
- - $ref: "#/components/parameters/organizationId"
14049
- requestBody:
14050
- content:
14051
- application/json:
14052
- schema:
14053
- type: object
14054
- responses:
14055
- "201":
14056
- description: Snippet created
14057
- headers:
14058
- Location:
14059
- description: API URL for the newly created snippet
14060
- schema:
14061
- type: string
14062
- content:
14063
- application/json:
14064
- schema:
14065
- $ref: "#/components/schemas/Snippet"
15624
+ $ref: "#/components/schemas/ContentAuditRelation"
14066
15625
  default:
14067
15626
  $ref: "#/components/responses/UnexpectedError"
14068
- "/orgs/{organizationId}/snippets/{snippetId}":
15627
+ "/orgs/{organizationId}/insights/audit-relations/{relationId}":
14069
15628
  get:
14070
- operationId: getSnippet
14071
- summary: Get a snippet by its ID
15629
+ operationId: getContentAuditRelationById
15630
+ summary: Get an audit relation by ID
14072
15631
  tags:
14073
15632
  - organizations
14074
15633
  security:
14075
15634
  - user: []
14076
15635
  parameters:
14077
15636
  - $ref: "#/components/parameters/organizationId"
14078
- - $ref: "#/components/parameters/snippetId"
15637
+ - $ref: "#/components/parameters/relationId"
14079
15638
  responses:
14080
15639
  "200":
14081
15640
  description: OK
14082
15641
  content:
14083
15642
  application/json:
14084
15643
  schema:
14085
- $ref: "#/components/schemas/Snippet"
14086
- default:
14087
- $ref: "#/components/responses/UnexpectedError"
14088
- delete:
14089
- operationId: deleteSnippet
14090
- summary: Delete a snippet by its ID.
14091
- tags:
14092
- - organizations
14093
- security:
14094
- - user: []
14095
- parameters:
14096
- - $ref: "#/components/parameters/organizationId"
14097
- - $ref: "#/components/parameters/snippetId"
14098
- responses:
14099
- "200":
14100
- description: OK
15644
+ $ref: "#/components/schemas/ContentAuditRelation"
15645
+ "404":
15646
+ description: No matching content relation found for given ID
15647
+ $ref: "#/components/responses/NotFoundError"
14101
15648
  default:
14102
15649
  $ref: "#/components/responses/UnexpectedError"
14103
- put:
14104
- operationId: updateSnippet
14105
- summary: Update an existing snippet.
15650
+ patch:
15651
+ operationId: updateContentAuditRelationStatusById
15652
+ summary: Update an audit relation status
14106
15653
  tags:
14107
15654
  - organizations
14108
15655
  security:
14109
15656
  - user: []
14110
15657
  parameters:
14111
15658
  - $ref: "#/components/parameters/organizationId"
14112
- - $ref: "#/components/parameters/snippetId"
14113
- - $ref: "#/components/parameters/ifUnmodifiedSince"
15659
+ - $ref: "#/components/parameters/relationId"
14114
15660
  requestBody:
14115
15661
  required: true
14116
15662
  content:
14117
15663
  application/json:
14118
15664
  schema:
14119
- $ref: "#/components/schemas/UpdateSnippetSchema"
15665
+ $ref: "#/components/schemas/ContentAuditRelationStatusUpdate"
14120
15666
  responses:
14121
15667
  "200":
14122
15668
  description: OK
14123
15669
  content:
14124
15670
  application/json:
14125
15671
  schema:
14126
- $ref: "#/components/schemas/Snippet"
15672
+ $ref: "#/components/schemas/ContentAuditRelation"
15673
+ "404":
15674
+ description: No matching content relation found for given ID
15675
+ $ref: "#/components/responses/NotFoundError"
14127
15676
  default:
14128
15677
  $ref: "#/components/responses/UnexpectedError"
14129
- "/orgs/{organizationId}/snippets/{snippetId}/move":
14130
- post:
14131
- operationId: moveSnippet
14132
- summary: Move a snippet into a destination. The snippet will be archived in the process.
15678
+ "/orgs/{organizationId}/insights/audit-sources/{sourceId}/content":
15679
+ get:
15680
+ operationId: getContentAuditSourceContentById
15681
+ summary: Get the content of an audit source
14133
15682
  tags:
14134
15683
  - organizations
14135
15684
  security:
14136
15685
  - user: []
14137
15686
  parameters:
14138
15687
  - $ref: "#/components/parameters/organizationId"
14139
- - $ref: "#/components/parameters/snippetId"
14140
- requestBody:
14141
- required: true
14142
- content:
14143
- application/json:
14144
- schema:
14145
- type: object
14146
- required:
14147
- - target
14148
- properties:
14149
- target:
14150
- type: object
14151
- description: Intended destination for the page
14152
- properties:
14153
- space:
14154
- description: The id of the target space
14155
- type: string
14156
- position:
14157
- type: object
14158
- properties:
14159
- parent:
14160
- description: The parent of the page in the target space. If undefined, the page will be inserted at the root of the space.
14161
- type: string
14162
- index:
14163
- description: The index of the page in the parent. If undefined, the page will be inserted at the end of the parent's current children.
14164
- type: number
14165
- required:
14166
- - space
15688
+ - name: sourceId
15689
+ in: path
15690
+ required: true
15691
+ description: The id of the content audit source
15692
+ schema:
15693
+ type: string
15694
+ - $ref: "#/components/parameters/pageFormat"
14167
15695
  responses:
14168
15696
  "200":
14169
- description: The snippet was successfully moved.
15697
+ description: OK
14170
15698
  content:
14171
15699
  application/json:
14172
15700
  schema:
14173
- type: object
14174
- required:
14175
- - page
14176
- properties:
14177
- page:
14178
- $ref: "#/components/schemas/RevisionPageDocument"
14179
- changeRequest:
14180
- $ref: "#/components/schemas/ChangeRequest"
15701
+ $ref: "#/components/schemas/Document"
15702
+ "404":
15703
+ description: No matching content source found for given ID
15704
+ $ref: "#/components/responses/NotFoundError"
14181
15705
  default:
14182
15706
  $ref: "#/components/responses/UnexpectedError"
15707
+ "/orgs/{organizationId}/sites":
14183
15708
  get:
14184
- operationId: getSnippetSuggestedLocations
14185
- summary: Return possible snippet locations in an organization based on the current user.
15709
+ operationId: listSites
15710
+ summary: List all the sites created in an organization
14186
15711
  tags:
14187
- - organizations
15712
+ - sites
14188
15713
  security:
14189
15714
  - user: []
14190
15715
  parameters:
14191
15716
  - $ref: "#/components/parameters/organizationId"
14192
- - $ref: "#/components/parameters/snippetId"
14193
15717
  - $ref: "#/components/parameters/listPage"
14194
15718
  - $ref: "#/components/parameters/listLimit"
14195
- - name: spaceId
14196
- in: query
14197
- description: If specified, only locations in the given space will be returned. If not specified, GitBook will suggest spaces.
14198
- schema:
14199
- type: string
14200
- - name: pageId
14201
- in: query
14202
- description: If specified, only locations under the given pageId will be returned. You must specify a spaceId too. If pageId is not specified, GitBook will suggest pages at the top level.
14203
- schema:
14204
- type: string
14205
- - name: search
15719
+ - name: space
14206
15720
  in: query
14207
- description: If specified, only locations matching the search query will be returned.
15721
+ description: Identifier of the space to filter the sites by
15722
+ required: false
14208
15723
  schema:
14209
15724
  type: string
14210
15725
  responses:
14211
15726
  "200":
14212
- description: A paginated list of suggested snippet locations.
15727
+ description: OK
14213
15728
  content:
14214
15729
  application/json:
14215
15730
  schema:
@@ -14222,133 +15737,196 @@ paths:
14222
15737
  items:
14223
15738
  type: array
14224
15739
  items:
14225
- type: object
14226
- required:
14227
- - space
14228
- properties:
14229
- aiPowered:
14230
- type: boolean
14231
- description: If defined and true, this location was suggested by GitBook AI.
14232
- space:
14233
- $ref: "#/components/schemas/Space"
14234
- parentPage:
14235
- description: The parent page of the suggested location.
14236
- oneOf:
14237
- - $ref: "#/components/schemas/RevisionPageDocument"
14238
- - $ref: "#/components/schemas/RevisionPageGroup"
15740
+ $ref: "#/components/schemas/Site"
15741
+ default:
15742
+ $ref: "#/components/responses/UnexpectedError"
15743
+ post:
15744
+ operationId: createSite
15745
+ summary: Create a site in an organization
15746
+ tags:
15747
+ - sites
15748
+ security:
15749
+ - user: []
15750
+ parameters:
15751
+ - $ref: "#/components/parameters/organizationId"
15752
+ requestBody:
15753
+ content:
15754
+ application/json:
15755
+ schema:
15756
+ type: object
15757
+ properties:
15758
+ title:
15759
+ $ref: "#/components/schemas/SiteTitle"
15760
+ visibility:
15761
+ $ref: "#/components/schemas/SiteVisibility"
15762
+ spaces:
15763
+ type: array
15764
+ description: ID of spaces to be added to the site
15765
+ items:
15766
+ type: string
15767
+ responses:
15768
+ "201":
15769
+ description: Site created
15770
+ headers:
15771
+ Location:
15772
+ description: API URL for the newly created site
15773
+ schema:
15774
+ type: string
15775
+ content:
15776
+ application/json:
15777
+ schema:
15778
+ $ref: "#/components/schemas/Site"
14239
15779
  default:
14240
15780
  $ref: "#/components/responses/UnexpectedError"
14241
- "/orgs/{organizationId}/ask":
14242
- post:
14243
- operationId: askInOrganization
14244
- summary: Ask a question.
15781
+ "/orgs/{organizationId}/sites/{siteId}":
15782
+ get:
15783
+ operationId: getSiteById
15784
+ summary: Get an organization site by its ID
15785
+ tags:
15786
+ - sites
14245
15787
  security:
14246
15788
  - user: []
14247
15789
  parameters:
14248
15790
  - $ref: "#/components/parameters/organizationId"
14249
- - $ref: "#/components/parameters/pageFormat"
15791
+ - $ref: "#/components/parameters/siteId"
15792
+ responses:
15793
+ "200":
15794
+ description: OK
15795
+ content:
15796
+ application/json:
15797
+ schema:
15798
+ $ref: "#/components/schemas/Site"
15799
+ "404":
15800
+ description: No matching site found
15801
+ $ref: "#/components/responses/NotFoundError"
15802
+ default:
15803
+ $ref: "#/components/responses/UnexpectedError"
15804
+ patch:
15805
+ operationId: updateSiteById
15806
+ summary: Update a site in an organization
15807
+ tags:
15808
+ - sites
15809
+ security:
15810
+ - user: []
15811
+ parameters:
15812
+ - $ref: "#/components/parameters/organizationId"
15813
+ - $ref: "#/components/parameters/siteId"
14250
15814
  requestBody:
14251
15815
  required: true
14252
15816
  content:
14253
15817
  application/json:
14254
15818
  schema:
14255
- $ref: "#/components/schemas/SearchAIQuery"
15819
+ type: object
15820
+ properties:
15821
+ title:
15822
+ $ref: "#/components/schemas/SiteTitle"
15823
+ visibility:
15824
+ $ref: "#/components/schemas/SiteVisibility"
15825
+ hostname:
15826
+ $ref: "#/components/schemas/SiteHostname"
15827
+ basename:
15828
+ $ref: "#/components/schemas/SiteBasename"
15829
+ defaultSiteSpace:
15830
+ type: string
15831
+ description: ID of the site-space to be used as the default
14256
15832
  responses:
14257
15833
  "200":
14258
15834
  description: OK
14259
15835
  content:
14260
15836
  application/json:
14261
15837
  schema:
14262
- type: object
14263
- properties:
14264
- answer:
14265
- $ref: "#/components/schemas/SearchAIAnswer"
15838
+ $ref: "#/components/schemas/Site"
14266
15839
  default:
14267
15840
  $ref: "#/components/responses/UnexpectedError"
14268
- "/orgs/{organizationId}/ask/questions":
14269
- get:
14270
- operationId: getRecommendedQuestionsInOrganization
14271
- summary: Get a list of questions recommended to be asked in an organization.
15841
+ delete:
15842
+ operationId: deleteSiteById
15843
+ summary: Delete a site in an organization
15844
+ tags:
15845
+ - sites
15846
+ security:
15847
+ - user: []
14272
15848
  parameters:
14273
15849
  - $ref: "#/components/parameters/organizationId"
15850
+ - $ref: "#/components/parameters/siteId"
15851
+ responses:
15852
+ "205":
15853
+ description: Site has been deleted
15854
+ default:
15855
+ $ref: "#/components/responses/UnexpectedError"
15856
+ "/orgs/{organizationId}/sites/{siteId}/publishing/auth":
15857
+ get:
15858
+ operationId: getSitePublishingAuthSettings
15859
+ summary: Get the publishing authentication settings for a site.
15860
+ tags:
15861
+ - sites
14274
15862
  security:
14275
15863
  - user: []
15864
+ parameters:
15865
+ - $ref: "#/components/parameters/organizationId"
15866
+ - $ref: "#/components/parameters/siteId"
14276
15867
  responses:
14277
15868
  "200":
14278
15869
  description: OK
14279
15870
  content:
14280
15871
  application/json:
14281
15872
  schema:
14282
- $ref: "#/components/schemas/SearchAIRecommendedQuestions"
15873
+ $ref: "#/components/schemas/SitePublishingAuth"
15874
+ "400":
15875
+ $ref: "#/components/responses/BadRequestError"
14283
15876
  default:
14284
15877
  $ref: "#/components/responses/UnexpectedError"
14285
- "/orgs/{organizationId}/ask/stream":
14286
- get:
14287
- operationId: streamAskInOrganization
14288
- summary: Ask a question to an AI across spaces that is accessible by the currently authenticated target and stream the answer as a Server-Sent Events URL.
15878
+ "/orgs/{organizationId}/sites/{siteId}/spaces":
15879
+ post:
15880
+ operationId: addSpaceToSite
15881
+ summary: Add a space to a site in an organization
15882
+ tags:
15883
+ - sites
14289
15884
  security:
14290
15885
  - user: []
14291
15886
  parameters:
14292
15887
  - $ref: "#/components/parameters/organizationId"
14293
- - name: query
14294
- in: query
14295
- required: true
14296
- schema:
14297
- type: string
14298
- - $ref: "#/components/parameters/pageFormat"
15888
+ - $ref: "#/components/parameters/siteId"
15889
+ requestBody:
15890
+ required: true
15891
+ content:
15892
+ application/json:
15893
+ schema:
15894
+ type: object
15895
+ properties:
15896
+ spaceId:
15897
+ type: string
15898
+ description: ID of the space
15899
+ required:
15900
+ - spaceId
14299
15901
  responses:
14300
- "200":
14301
- description: OK
15902
+ "201":
15903
+ description: Space added to the site
15904
+ headers:
15905
+ Location:
15906
+ description: API URL for the newly created site-space relationship
15907
+ schema:
15908
+ type: string
14302
15909
  content:
14303
- text/event-stream:
15910
+ application/json:
14304
15911
  schema:
14305
- $ref: "#/components/schemas/SearchAIAnswerStream"
15912
+ $ref: "#/components/schemas/SiteSpace"
14306
15913
  default:
14307
15914
  $ref: "#/components/responses/UnexpectedError"
14308
- "/orgs/{organizationId}/insights/audit-relations":
14309
15915
  get:
14310
- operationId: listContentAuditRelations
14311
- summary: List the content relations for in a given organization.
15916
+ operationId: listSiteSpaces
15917
+ summary: List all the site spaces under a site in an organization
14312
15918
  tags:
14313
- - ai
14314
- - spaces
15919
+ - sites
14315
15920
  security:
14316
15921
  - user: []
14317
15922
  parameters:
14318
15923
  - $ref: "#/components/parameters/organizationId"
15924
+ - $ref: "#/components/parameters/siteId"
14319
15925
  - $ref: "#/components/parameters/listPage"
14320
15926
  - $ref: "#/components/parameters/listLimit"
14321
- - name: status
14322
- in: query
14323
- required: false
14324
- description: Status of the audit relation to filter on
14325
- schema:
14326
- default: pending
14327
- oneOf:
14328
- - $ref: "#/components/schemas/ContentAuditRelationStatus"
14329
- - type: string
14330
- enum:
14331
- - all
14332
- - name: space
14333
- in: query
14334
- required: false
14335
- description: Space concerned by the relation
14336
- schema:
14337
- type: string
14338
- - name: type
14339
- in: query
14340
- required: false
14341
- description: Type of the audit relation to filter on
14342
- schema:
14343
- default: all
14344
- oneOf:
14345
- - $ref: "#/components/schemas/ContentAuditRelationType"
14346
- - type: string
14347
- enum:
14348
- - all
14349
15927
  responses:
14350
15928
  "200":
14351
- description: Content audit relations
15929
+ description: OK
14352
15930
  content:
14353
15931
  application/json:
14354
15932
  schema:
@@ -14361,87 +15939,179 @@ paths:
14361
15939
  items:
14362
15940
  type: array
14363
15941
  items:
14364
- $ref: "#/components/schemas/ContentAuditRelation"
15942
+ $ref: "#/components/schemas/SiteSpace"
14365
15943
  default:
14366
15944
  $ref: "#/components/responses/UnexpectedError"
14367
- "/orgs/{organizationId}/insights/audit-relations/{relationId}":
14368
- get:
14369
- operationId: getContentAuditRelationById
14370
- summary: Get an audit relation by ID
15945
+ "/orgs/{organizationId}/sites/{siteId}/spaces/{siteSpaceId}":
15946
+ patch:
15947
+ operationId: updateSiteSpaceById
15948
+ summary: Update a space on a site in an organization
14371
15949
  tags:
14372
- - organizations
15950
+ - sites
14373
15951
  security:
14374
15952
  - user: []
14375
15953
  parameters:
14376
15954
  - $ref: "#/components/parameters/organizationId"
14377
- - $ref: "#/components/parameters/relationId"
15955
+ - $ref: "#/components/parameters/siteId"
15956
+ - $ref: "#/components/parameters/siteSpaceId"
15957
+ requestBody:
15958
+ required: true
15959
+ content:
15960
+ application/json:
15961
+ schema:
15962
+ type: object
15963
+ properties:
15964
+ path:
15965
+ $ref: "#/components/schemas/SiteSpacePath"
14378
15966
  responses:
14379
15967
  "200":
14380
15968
  description: OK
14381
15969
  content:
14382
15970
  application/json:
14383
15971
  schema:
14384
- $ref: "#/components/schemas/ContentAuditRelation"
14385
- "404":
14386
- description: No matching content relation found for given ID
14387
- $ref: "#/components/responses/NotFoundError"
15972
+ $ref: "#/components/schemas/SiteSpace"
14388
15973
  default:
14389
15974
  $ref: "#/components/responses/UnexpectedError"
14390
- patch:
14391
- operationId: updateContentAuditRelationStatusById
14392
- summary: Update an audit relation status
15975
+ delete:
15976
+ operationId: deleteSiteSpaceById
15977
+ summary: Delete a space on a site in an organization
14393
15978
  tags:
14394
- - organizations
15979
+ - sites
14395
15980
  security:
14396
15981
  - user: []
14397
15982
  parameters:
14398
15983
  - $ref: "#/components/parameters/organizationId"
14399
- - $ref: "#/components/parameters/relationId"
14400
- requestBody:
14401
- required: true
14402
- content:
14403
- application/json:
14404
- schema:
14405
- $ref: "#/components/schemas/ContentAuditRelationStatusUpdate"
15984
+ - $ref: "#/components/parameters/siteId"
15985
+ - $ref: "#/components/parameters/siteSpaceId"
15986
+ responses:
15987
+ "205":
15988
+ description: Site space has been deleted
15989
+ default:
15990
+ $ref: "#/components/responses/UnexpectedError"
15991
+ "/custom-hostnames/{hostname}":
15992
+ get:
15993
+ operationId: getCustomHostname
15994
+ summary: Get the details about a custom hostname.
15995
+ tags:
15996
+ - custom-hostnames
15997
+ security:
15998
+ - user-internal: []
15999
+ parameters:
16000
+ - $ref: "#/components/parameters/hostname"
14406
16001
  responses:
14407
16002
  "200":
14408
16003
  description: OK
14409
16004
  content:
14410
16005
  application/json:
14411
16006
  schema:
14412
- $ref: "#/components/schemas/ContentAuditRelation"
14413
- "404":
14414
- description: No matching content relation found for given ID
14415
- $ref: "#/components/responses/NotFoundError"
16007
+ $ref: "#/components/schemas/CustomHostname"
14416
16008
  default:
14417
16009
  $ref: "#/components/responses/UnexpectedError"
14418
- "/orgs/{organizationId}/insights/audit-sources/{sourceId}/content":
14419
- get:
14420
- operationId: getContentAuditSourceContentById
14421
- summary: Get the content of an audit source
16010
+ post:
16011
+ operationId: setupCustomHostname
16012
+ 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.
14422
16013
  tags:
14423
- - organizations
16014
+ - custom-hostnames
14424
16015
  security:
14425
- - user: []
16016
+ - user-internal: []
14426
16017
  parameters:
14427
- - $ref: "#/components/parameters/organizationId"
14428
- - name: sourceId
14429
- in: path
14430
- required: true
14431
- description: The id of the content audit source
14432
- schema:
14433
- type: string
14434
- - $ref: "#/components/parameters/pageFormat"
16018
+ - $ref: "#/components/parameters/hostname"
16019
+ requestBody:
16020
+ content:
16021
+ application/json:
16022
+ schema:
16023
+ type: object
16024
+ properties:
16025
+ target:
16026
+ oneOf:
16027
+ - $ref: "#/components/schemas/OrganizationPointer"
16028
+ - $ref: "#/components/schemas/SpacePointer"
16029
+ - $ref: "#/components/schemas/CollectionPointer"
16030
+ required:
16031
+ - target
14435
16032
  responses:
14436
- "200":
14437
- description: OK
16033
+ "201":
16034
+ description: Custom hostname created
16035
+ headers:
16036
+ Location:
16037
+ description: API URL for the newly created custom hostname
16038
+ schema:
16039
+ type: string
14438
16040
  content:
14439
16041
  application/json:
14440
16042
  schema:
14441
- $ref: "#/components/schemas/Document"
14442
- "404":
14443
- description: No matching content source found for given ID
14444
- $ref: "#/components/responses/NotFoundError"
16043
+ $ref: "#/components/schemas/CustomHostname"
16044
+ "409":
16045
+ description: Custom hostname is already in use on the target
16046
+ $ref: "#/components/responses/ConflictError"
16047
+ default:
16048
+ $ref: "#/components/responses/UnexpectedError"
16049
+ patch:
16050
+ operationId: dnsRevalidateCustomHostname
16051
+ summary: Revalidate a custom hostname's DNS records and status.
16052
+ tags:
16053
+ - custom-hostnames
16054
+ security:
16055
+ - user-internal: []
16056
+ parameters:
16057
+ - $ref: "#/components/parameters/hostname"
16058
+ responses:
16059
+ "204":
16060
+ description: DNS validation has been retriggered
16061
+ "400":
16062
+ description: The current custom hostname is inactive and cannot be revalidated
16063
+ $ref: "#/components/responses/ConflictError"
16064
+ "409":
16065
+ description: The current custom hostname status does not allow DNS revalidation
16066
+ $ref: "#/components/responses/ConflictError"
16067
+ default:
16068
+ $ref: "#/components/responses/UnexpectedError"
16069
+ delete:
16070
+ operationId: removeCustomHostname
16071
+ 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.
16072
+ tags:
16073
+ - custom-hostnames
16074
+ security:
16075
+ - user-internal: []
16076
+ parameters:
16077
+ - $ref: "#/components/parameters/hostname"
16078
+ responses:
16079
+ "205":
16080
+ description: Custom hostname has been removed
16081
+ default:
16082
+ $ref: "#/components/responses/UnexpectedError"
16083
+ "/custom-hostnames/{hostname}/test":
16084
+ post:
16085
+ operationId: testCustomHostname
16086
+ summary: Test if a custom hostname can be used for a content or organization.
16087
+ tags:
16088
+ - custom-hostnames
16089
+ security:
16090
+ - user-internal: []
16091
+ parameters:
16092
+ - $ref: "#/components/parameters/hostname"
16093
+ requestBody:
16094
+ content:
16095
+ application/json:
16096
+ schema:
16097
+ type: object
16098
+ properties:
16099
+ target:
16100
+ oneOf:
16101
+ - $ref: "#/components/schemas/OrganizationPointer"
16102
+ - $ref: "#/components/schemas/SpacePointer"
16103
+ - $ref: "#/components/schemas/CollectionPointer"
16104
+ required:
16105
+ - target
16106
+ responses:
16107
+ "204":
16108
+ description: The custom hostname is available and valid.
16109
+ "400":
16110
+ description: The custom hostname is invalid.
16111
+ $ref: "#/components/responses/BadRequestError"
16112
+ "409":
16113
+ description: The custom hostname is already configured for this target or a different one.
16114
+ $ref: "#/components/responses/ConflictError"
14445
16115
  default:
14446
16116
  $ref: "#/components/responses/UnexpectedError"
14447
16117
  /internal/hive/token:
@@ -14565,5 +16235,8 @@ paths:
14565
16235
  application/json:
14566
16236
  schema:
14567
16237
  $ref: "#/components/schemas/PublishedContentLookup"
16238
+ "404":
16239
+ description: No content found for the URL.
16240
+ $ref: "#/components/responses/NotFoundError"
14568
16241
  default:
14569
16242
  $ref: "#/components/responses/UnexpectedError"