@gitbook/api 0.20.1 → 0.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.d.ts +208 -82
- package/dist/index.cjs +74 -23
- package/dist/index.js +73 -23
- package/package.json +1 -1
- package/spec/openapi.json +647 -275
- package/spec/openapi.yaml +376 -178
package/spec/openapi.json
CHANGED
|
@@ -117,6 +117,14 @@
|
|
|
117
117
|
]
|
|
118
118
|
}
|
|
119
119
|
},
|
|
120
|
+
"commentTargetPage": {
|
|
121
|
+
"name": "targetPage",
|
|
122
|
+
"in": "query",
|
|
123
|
+
"description": "The target page of the comment",
|
|
124
|
+
"schema": {
|
|
125
|
+
"type": "string"
|
|
126
|
+
}
|
|
127
|
+
},
|
|
120
128
|
"spaceId": {
|
|
121
129
|
"name": "spaceId",
|
|
122
130
|
"in": "path",
|
|
@@ -297,6 +305,15 @@
|
|
|
297
305
|
"type": "string"
|
|
298
306
|
}
|
|
299
307
|
},
|
|
308
|
+
"visitorId": {
|
|
309
|
+
"name": "visitorId",
|
|
310
|
+
"in": "path",
|
|
311
|
+
"required": true,
|
|
312
|
+
"description": "The id of the visitor",
|
|
313
|
+
"schema": {
|
|
314
|
+
"type": "string"
|
|
315
|
+
}
|
|
316
|
+
},
|
|
300
317
|
"backofficeHostname": {
|
|
301
318
|
"name": "hostname",
|
|
302
319
|
"in": "path",
|
|
@@ -4325,6 +4342,9 @@
|
|
|
4325
4342
|
"parent": {
|
|
4326
4343
|
"type": "string",
|
|
4327
4344
|
"description": "ID of the parent collection."
|
|
4345
|
+
},
|
|
4346
|
+
"gitSync": {
|
|
4347
|
+
"$ref": "#/components/schemas/GitSyncState"
|
|
4328
4348
|
}
|
|
4329
4349
|
},
|
|
4330
4350
|
"required": [
|
|
@@ -4586,6 +4606,17 @@
|
|
|
4586
4606
|
"document"
|
|
4587
4607
|
]
|
|
4588
4608
|
},
|
|
4609
|
+
"urls": {
|
|
4610
|
+
"required": [
|
|
4611
|
+
"app"
|
|
4612
|
+
],
|
|
4613
|
+
"properties": {
|
|
4614
|
+
"app": {
|
|
4615
|
+
"description": "Location of the page in the app",
|
|
4616
|
+
"$ref": "#/components/schemas/URL"
|
|
4617
|
+
}
|
|
4618
|
+
}
|
|
4619
|
+
},
|
|
4589
4620
|
"slug": {
|
|
4590
4621
|
"description": "Page's slug in its direct parent",
|
|
4591
4622
|
"type": "string"
|
|
@@ -4627,6 +4658,7 @@
|
|
|
4627
4658
|
"required": [
|
|
4628
4659
|
"kind",
|
|
4629
4660
|
"type",
|
|
4661
|
+
"urls",
|
|
4630
4662
|
"slug",
|
|
4631
4663
|
"path",
|
|
4632
4664
|
"pages",
|
|
@@ -5602,81 +5634,6 @@
|
|
|
5602
5634
|
}
|
|
5603
5635
|
}
|
|
5604
5636
|
},
|
|
5605
|
-
"OrganizationDirectorySyncGroup": {
|
|
5606
|
-
"type": "object",
|
|
5607
|
-
"required": [
|
|
5608
|
-
"id",
|
|
5609
|
-
"idp_id",
|
|
5610
|
-
"directory_id",
|
|
5611
|
-
"name"
|
|
5612
|
-
],
|
|
5613
|
-
"properties": {
|
|
5614
|
-
"id": {
|
|
5615
|
-
"type": "string",
|
|
5616
|
-
"description": "The unique identifier of this group in WorkOS. Not the unique ID from GitBook."
|
|
5617
|
-
},
|
|
5618
|
-
"idp_id": {
|
|
5619
|
-
"type": "string",
|
|
5620
|
-
"description": "The identity provider's unique ID for this group, should be used to generate the team's unique ID when syncing the groups."
|
|
5621
|
-
},
|
|
5622
|
-
"directory_id": {
|
|
5623
|
-
"type": "string",
|
|
5624
|
-
"description": "The unique ID of the directory this group is owned by in WorkOS. Is not a unique ID from our database."
|
|
5625
|
-
},
|
|
5626
|
-
"name": {
|
|
5627
|
-
"type": "string",
|
|
5628
|
-
"description": "The name of the group from the identity provider, it should always be set according to the WorkOS documentation."
|
|
5629
|
-
},
|
|
5630
|
-
"teamKey": {
|
|
5631
|
-
"type": "string",
|
|
5632
|
-
"description": "The unique ID of the GitBook team already synced to this group, if applicable."
|
|
5633
|
-
}
|
|
5634
|
-
}
|
|
5635
|
-
},
|
|
5636
|
-
"OrganizationDirectorySyncGroupTeamStatus": {
|
|
5637
|
-
"anyOf": [
|
|
5638
|
-
{
|
|
5639
|
-
"type": "object",
|
|
5640
|
-
"required": [
|
|
5641
|
-
"success",
|
|
5642
|
-
"group_id",
|
|
5643
|
-
"team_id"
|
|
5644
|
-
],
|
|
5645
|
-
"properties": {
|
|
5646
|
-
"success": {
|
|
5647
|
-
"type": "boolean",
|
|
5648
|
-
"enum": [
|
|
5649
|
-
true
|
|
5650
|
-
]
|
|
5651
|
-
},
|
|
5652
|
-
"group_id": {
|
|
5653
|
-
"type": "string"
|
|
5654
|
-
},
|
|
5655
|
-
"team_id": {
|
|
5656
|
-
"type": "string"
|
|
5657
|
-
}
|
|
5658
|
-
}
|
|
5659
|
-
},
|
|
5660
|
-
{
|
|
5661
|
-
"type": "object",
|
|
5662
|
-
"required": [
|
|
5663
|
-
"success",
|
|
5664
|
-
"error"
|
|
5665
|
-
],
|
|
5666
|
-
"properties": {
|
|
5667
|
-
"success": {
|
|
5668
|
-
"type": "boolean",
|
|
5669
|
-
"enum": [
|
|
5670
|
-
false
|
|
5671
|
-
]
|
|
5672
|
-
},
|
|
5673
|
-
"error": {
|
|
5674
|
-
"type": "string"
|
|
5675
|
-
}
|
|
5676
|
-
}
|
|
5677
|
-
}
|
|
5678
|
-
]
|
|
5679
|
-
},
|
|
5680
5637
|
"OrganizationTarget": {
|
|
5681
5638
|
"type": "object",
|
|
5682
5639
|
"required": [
|
|
@@ -6223,6 +6180,10 @@
|
|
|
6223
6180
|
"format": "date-time",
|
|
6224
6181
|
"description": "Timestamp of when the snippet was last edited, if it has been edited since its creation."
|
|
6225
6182
|
},
|
|
6183
|
+
"archived": {
|
|
6184
|
+
"type": "boolean",
|
|
6185
|
+
"description": "Whether the snippet is archived. Archived snippets don't appear in search results or in the app."
|
|
6186
|
+
},
|
|
6226
6187
|
"title": {
|
|
6227
6188
|
"type": "string",
|
|
6228
6189
|
"description": "Title describing the snippet.",
|
|
@@ -6292,6 +6253,7 @@
|
|
|
6292
6253
|
"id",
|
|
6293
6254
|
"source",
|
|
6294
6255
|
"createdAt",
|
|
6256
|
+
"archived",
|
|
6295
6257
|
"contributors",
|
|
6296
6258
|
"urls"
|
|
6297
6259
|
]
|
|
@@ -7229,10 +7191,10 @@
|
|
|
7229
7191
|
"description": "Unique identifier for the collection"
|
|
7230
7192
|
},
|
|
7231
7193
|
"title": {
|
|
7232
|
-
"
|
|
7233
|
-
|
|
7234
|
-
|
|
7235
|
-
"
|
|
7194
|
+
"$ref": "#/components/schemas/CollectionTitle"
|
|
7195
|
+
},
|
|
7196
|
+
"description": {
|
|
7197
|
+
"$ref": "#/components/schemas/CollectionDescription"
|
|
7236
7198
|
},
|
|
7237
7199
|
"path": {
|
|
7238
7200
|
"type": "string",
|
|
@@ -7290,6 +7252,18 @@
|
|
|
7290
7252
|
"urls"
|
|
7291
7253
|
]
|
|
7292
7254
|
},
|
|
7255
|
+
"CollectionTitle": {
|
|
7256
|
+
"type": "string",
|
|
7257
|
+
"description": "Title of the collection",
|
|
7258
|
+
"minLength": 0,
|
|
7259
|
+
"maxLength": 50
|
|
7260
|
+
},
|
|
7261
|
+
"CollectionDescription": {
|
|
7262
|
+
"type": "string",
|
|
7263
|
+
"description": "Description of the collection",
|
|
7264
|
+
"minLength": 0,
|
|
7265
|
+
"maxLength": 100
|
|
7266
|
+
},
|
|
7293
7267
|
"Integration": {
|
|
7294
7268
|
"type": "object",
|
|
7295
7269
|
"properties": {
|
|
@@ -8160,6 +8134,27 @@
|
|
|
8160
8134
|
}
|
|
8161
8135
|
}
|
|
8162
8136
|
},
|
|
8137
|
+
"SpaceIntegrationScript": {
|
|
8138
|
+
"type": "object",
|
|
8139
|
+
"properties": {
|
|
8140
|
+
"script": {
|
|
8141
|
+
"description": "Script URL to load.",
|
|
8142
|
+
"$ref": "#/components/schemas/URL"
|
|
8143
|
+
},
|
|
8144
|
+
"contentSecurityPolicy": {
|
|
8145
|
+
"description": "Content Security Policy to secure the loading of this script.",
|
|
8146
|
+
"type": "string"
|
|
8147
|
+
},
|
|
8148
|
+
"cookies": {
|
|
8149
|
+
"type": "boolean",
|
|
8150
|
+
"description": "If true, the script will potentially load use cookies and visitors should be aware."
|
|
8151
|
+
}
|
|
8152
|
+
},
|
|
8153
|
+
"required": [
|
|
8154
|
+
"script",
|
|
8155
|
+
"cookies"
|
|
8156
|
+
]
|
|
8157
|
+
},
|
|
8163
8158
|
"UpsertEntity": {
|
|
8164
8159
|
"type": "object",
|
|
8165
8160
|
"description": "Entity to create or update in an integration's installation.",
|
|
@@ -11193,6 +11188,9 @@
|
|
|
11193
11188
|
{
|
|
11194
11189
|
"$ref": "#/components/schemas/ChangeRequestReviewsChannel"
|
|
11195
11190
|
},
|
|
11191
|
+
{
|
|
11192
|
+
"$ref": "#/components/schemas/CollectionChannel"
|
|
11193
|
+
},
|
|
11196
11194
|
{
|
|
11197
11195
|
"$ref": "#/components/schemas/CollectionPublishingCustomizationChannel"
|
|
11198
11196
|
},
|
|
@@ -11589,6 +11587,24 @@
|
|
|
11589
11587
|
"user"
|
|
11590
11588
|
]
|
|
11591
11589
|
},
|
|
11590
|
+
"CollectionChannel": {
|
|
11591
|
+
"type": "object",
|
|
11592
|
+
"properties": {
|
|
11593
|
+
"channel": {
|
|
11594
|
+
"type": "string",
|
|
11595
|
+
"enum": [
|
|
11596
|
+
"collection"
|
|
11597
|
+
]
|
|
11598
|
+
},
|
|
11599
|
+
"collection": {
|
|
11600
|
+
"type": "string"
|
|
11601
|
+
}
|
|
11602
|
+
},
|
|
11603
|
+
"required": [
|
|
11604
|
+
"channel",
|
|
11605
|
+
"collection"
|
|
11606
|
+
]
|
|
11607
|
+
},
|
|
11592
11608
|
"CollectionPublishingCustomizationChannel": {
|
|
11593
11609
|
"type": "object",
|
|
11594
11610
|
"properties": {
|
|
@@ -12580,6 +12596,61 @@
|
|
|
12580
12596
|
"light",
|
|
12581
12597
|
"dark"
|
|
12582
12598
|
]
|
|
12599
|
+
},
|
|
12600
|
+
"PageFeedback": {
|
|
12601
|
+
"type": "object",
|
|
12602
|
+
"properties": {
|
|
12603
|
+
"object": {
|
|
12604
|
+
"type": "string",
|
|
12605
|
+
"description": "Type of Object, always equal to \"page-feedback\"",
|
|
12606
|
+
"enum": [
|
|
12607
|
+
"page-feedback"
|
|
12608
|
+
]
|
|
12609
|
+
},
|
|
12610
|
+
"visitorId": {
|
|
12611
|
+
"type": "string"
|
|
12612
|
+
},
|
|
12613
|
+
"rating": {
|
|
12614
|
+
"$ref": "#/components/schemas/PageFeedbackRating"
|
|
12615
|
+
},
|
|
12616
|
+
"createdAt": {
|
|
12617
|
+
"$ref": "#/components/schemas/Date"
|
|
12618
|
+
},
|
|
12619
|
+
"revision": {
|
|
12620
|
+
"type": "string",
|
|
12621
|
+
"description": "ID of the revision when the rating was created"
|
|
12622
|
+
},
|
|
12623
|
+
"urls": {
|
|
12624
|
+
"type": "object",
|
|
12625
|
+
"description": "URLs associated with the object",
|
|
12626
|
+
"properties": {
|
|
12627
|
+
"location": {
|
|
12628
|
+
"type": "string",
|
|
12629
|
+
"description": "URL of the page feedback in the API",
|
|
12630
|
+
"format": "uri"
|
|
12631
|
+
}
|
|
12632
|
+
},
|
|
12633
|
+
"required": [
|
|
12634
|
+
"location"
|
|
12635
|
+
]
|
|
12636
|
+
}
|
|
12637
|
+
},
|
|
12638
|
+
"required": [
|
|
12639
|
+
"object",
|
|
12640
|
+
"visitorId",
|
|
12641
|
+
"rating",
|
|
12642
|
+
"createdAt",
|
|
12643
|
+
"revision",
|
|
12644
|
+
"urls"
|
|
12645
|
+
]
|
|
12646
|
+
},
|
|
12647
|
+
"PageFeedbackRating": {
|
|
12648
|
+
"type": "string",
|
|
12649
|
+
"enum": [
|
|
12650
|
+
"bad",
|
|
12651
|
+
"ok",
|
|
12652
|
+
"good"
|
|
12653
|
+
]
|
|
12583
12654
|
}
|
|
12584
12655
|
},
|
|
12585
12656
|
"responses": {
|
|
@@ -12836,7 +12907,8 @@
|
|
|
12836
12907
|
"/search/questions": {
|
|
12837
12908
|
"post": {
|
|
12838
12909
|
"operationId": "getRecommendedQuestions",
|
|
12839
|
-
"summary": "Get a list of questions recommended by AI for a list of content.",
|
|
12910
|
+
"summary": "Get a list of questions recommended by AI for a list of content. Deprecated, use getRecommendedQuestionsInOrganization instead.",
|
|
12911
|
+
"deprecated": true,
|
|
12840
12912
|
"security": [
|
|
12841
12913
|
{
|
|
12842
12914
|
"user": []
|
|
@@ -13028,6 +13100,31 @@
|
|
|
13028
13100
|
"$ref": "#/components/responses/UnexpectedError"
|
|
13029
13101
|
}
|
|
13030
13102
|
}
|
|
13103
|
+
},
|
|
13104
|
+
"delete": {
|
|
13105
|
+
"operationId": "deleteSpaceById",
|
|
13106
|
+
"summary": "Soft-deletes a space. Soft-deleted spaces will be permanently removed after 7 days.",
|
|
13107
|
+
"tags": [
|
|
13108
|
+
"spaces"
|
|
13109
|
+
],
|
|
13110
|
+
"security": [
|
|
13111
|
+
{
|
|
13112
|
+
"user": []
|
|
13113
|
+
}
|
|
13114
|
+
],
|
|
13115
|
+
"parameters": [
|
|
13116
|
+
{
|
|
13117
|
+
"$ref": "#/components/parameters/spaceId"
|
|
13118
|
+
}
|
|
13119
|
+
],
|
|
13120
|
+
"responses": {
|
|
13121
|
+
"205": {
|
|
13122
|
+
"description": "Space has been deleted"
|
|
13123
|
+
},
|
|
13124
|
+
"default": {
|
|
13125
|
+
"$ref": "#/components/responses/UnexpectedError"
|
|
13126
|
+
}
|
|
13127
|
+
}
|
|
13031
13128
|
}
|
|
13032
13129
|
},
|
|
13033
13130
|
"/spaces/{spaceId}/hive/token": {
|
|
@@ -13101,6 +13198,40 @@
|
|
|
13101
13198
|
}
|
|
13102
13199
|
}
|
|
13103
13200
|
},
|
|
13201
|
+
"/spaces/{spaceId}/restore": {
|
|
13202
|
+
"post": {
|
|
13203
|
+
"operationId": "restoreSpace",
|
|
13204
|
+
"summary": "Restore a recently soft-deleted space.",
|
|
13205
|
+
"tags": [
|
|
13206
|
+
"spaces"
|
|
13207
|
+
],
|
|
13208
|
+
"security": [
|
|
13209
|
+
{
|
|
13210
|
+
"user": []
|
|
13211
|
+
}
|
|
13212
|
+
],
|
|
13213
|
+
"parameters": [
|
|
13214
|
+
{
|
|
13215
|
+
"$ref": "#/components/parameters/spaceId"
|
|
13216
|
+
}
|
|
13217
|
+
],
|
|
13218
|
+
"responses": {
|
|
13219
|
+
"200": {
|
|
13220
|
+
"description": "Space restored",
|
|
13221
|
+
"content": {
|
|
13222
|
+
"application/json": {
|
|
13223
|
+
"schema": {
|
|
13224
|
+
"$ref": "#/components/schemas/Space"
|
|
13225
|
+
}
|
|
13226
|
+
}
|
|
13227
|
+
}
|
|
13228
|
+
},
|
|
13229
|
+
"default": {
|
|
13230
|
+
"$ref": "#/components/responses/UnexpectedError"
|
|
13231
|
+
}
|
|
13232
|
+
}
|
|
13233
|
+
}
|
|
13234
|
+
},
|
|
13104
13235
|
"/spaces/{spaceId}/search": {
|
|
13105
13236
|
"get": {
|
|
13106
13237
|
"operationId": "searchSpaceContent",
|
|
@@ -14493,11 +14624,17 @@
|
|
|
14493
14624
|
{
|
|
14494
14625
|
"$ref": "#/components/parameters/listLimit"
|
|
14495
14626
|
},
|
|
14627
|
+
{
|
|
14628
|
+
"$ref": "#/components/parameters/listOrder"
|
|
14629
|
+
},
|
|
14496
14630
|
{
|
|
14497
14631
|
"$ref": "#/components/parameters/pageFormat"
|
|
14498
14632
|
},
|
|
14499
14633
|
{
|
|
14500
14634
|
"$ref": "#/components/parameters/commentStatus"
|
|
14635
|
+
},
|
|
14636
|
+
{
|
|
14637
|
+
"$ref": "#/components/parameters/commentTargetPage"
|
|
14501
14638
|
}
|
|
14502
14639
|
],
|
|
14503
14640
|
"responses": {
|
|
@@ -15725,11 +15862,17 @@
|
|
|
15725
15862
|
{
|
|
15726
15863
|
"$ref": "#/components/parameters/listLimit"
|
|
15727
15864
|
},
|
|
15865
|
+
{
|
|
15866
|
+
"$ref": "#/components/parameters/listOrder"
|
|
15867
|
+
},
|
|
15728
15868
|
{
|
|
15729
15869
|
"$ref": "#/components/parameters/commentStatus"
|
|
15730
15870
|
},
|
|
15731
15871
|
{
|
|
15732
15872
|
"$ref": "#/components/parameters/pageFormat"
|
|
15873
|
+
},
|
|
15874
|
+
{
|
|
15875
|
+
"$ref": "#/components/parameters/commentTargetPage"
|
|
15733
15876
|
}
|
|
15734
15877
|
],
|
|
15735
15878
|
"responses": {
|
|
@@ -16416,10 +16559,10 @@
|
|
|
16416
16559
|
}
|
|
16417
16560
|
}
|
|
16418
16561
|
},
|
|
16419
|
-
"/spaces/{spaceId}/
|
|
16562
|
+
"/spaces/{spaceId}/integration-scripts": {
|
|
16420
16563
|
"get": {
|
|
16421
|
-
"operationId": "
|
|
16422
|
-
"summary": "
|
|
16564
|
+
"operationId": "listSpaceIntegrationScripts",
|
|
16565
|
+
"summary": "List the scripts to embed in published content for a space.",
|
|
16423
16566
|
"tags": [
|
|
16424
16567
|
"spaces"
|
|
16425
16568
|
],
|
|
@@ -16439,19 +16582,27 @@
|
|
|
16439
16582
|
"content": {
|
|
16440
16583
|
"application/json": {
|
|
16441
16584
|
"schema": {
|
|
16442
|
-
"
|
|
16585
|
+
"type": "array",
|
|
16586
|
+
"items": {
|
|
16587
|
+
"$ref": "#/components/schemas/SpaceIntegrationScript"
|
|
16588
|
+
}
|
|
16443
16589
|
}
|
|
16444
16590
|
}
|
|
16445
16591
|
}
|
|
16446
16592
|
},
|
|
16593
|
+
"400": {
|
|
16594
|
+
"$ref": "#/components/responses/BadRequestError"
|
|
16595
|
+
},
|
|
16447
16596
|
"default": {
|
|
16448
16597
|
"$ref": "#/components/responses/UnexpectedError"
|
|
16449
16598
|
}
|
|
16450
16599
|
}
|
|
16451
|
-
}
|
|
16452
|
-
|
|
16453
|
-
|
|
16454
|
-
|
|
16600
|
+
}
|
|
16601
|
+
},
|
|
16602
|
+
"/spaces/{spaceId}/custom-fields": {
|
|
16603
|
+
"get": {
|
|
16604
|
+
"operationId": "getSpaceCustomFields",
|
|
16605
|
+
"summary": "Get the values of the custom fields set on a space",
|
|
16455
16606
|
"tags": [
|
|
16456
16607
|
"spaces"
|
|
16457
16608
|
],
|
|
@@ -16465,19 +16616,165 @@
|
|
|
16465
16616
|
"$ref": "#/components/parameters/spaceId"
|
|
16466
16617
|
}
|
|
16467
16618
|
],
|
|
16468
|
-
"requestBody": {
|
|
16469
|
-
"required": true,
|
|
16470
|
-
"content": {
|
|
16471
|
-
"application/json": {
|
|
16472
|
-
"schema": {
|
|
16473
|
-
"$ref": "#/components/schemas/UpdateCustomFieldValues"
|
|
16474
|
-
}
|
|
16475
|
-
}
|
|
16476
|
-
}
|
|
16477
|
-
},
|
|
16478
16619
|
"responses": {
|
|
16479
|
-
"
|
|
16480
|
-
"description": "
|
|
16620
|
+
"200": {
|
|
16621
|
+
"description": "OK",
|
|
16622
|
+
"content": {
|
|
16623
|
+
"application/json": {
|
|
16624
|
+
"schema": {
|
|
16625
|
+
"$ref": "#/components/schemas/CustomFieldValues"
|
|
16626
|
+
}
|
|
16627
|
+
}
|
|
16628
|
+
}
|
|
16629
|
+
},
|
|
16630
|
+
"default": {
|
|
16631
|
+
"$ref": "#/components/responses/UnexpectedError"
|
|
16632
|
+
}
|
|
16633
|
+
}
|
|
16634
|
+
},
|
|
16635
|
+
"patch": {
|
|
16636
|
+
"operationId": "updateSpaceCustomFields",
|
|
16637
|
+
"summary": "Update the custom fields in a space",
|
|
16638
|
+
"tags": [
|
|
16639
|
+
"spaces"
|
|
16640
|
+
],
|
|
16641
|
+
"security": [
|
|
16642
|
+
{
|
|
16643
|
+
"user": []
|
|
16644
|
+
}
|
|
16645
|
+
],
|
|
16646
|
+
"parameters": [
|
|
16647
|
+
{
|
|
16648
|
+
"$ref": "#/components/parameters/spaceId"
|
|
16649
|
+
}
|
|
16650
|
+
],
|
|
16651
|
+
"requestBody": {
|
|
16652
|
+
"required": true,
|
|
16653
|
+
"content": {
|
|
16654
|
+
"application/json": {
|
|
16655
|
+
"schema": {
|
|
16656
|
+
"$ref": "#/components/schemas/UpdateCustomFieldValues"
|
|
16657
|
+
}
|
|
16658
|
+
}
|
|
16659
|
+
}
|
|
16660
|
+
},
|
|
16661
|
+
"responses": {
|
|
16662
|
+
"204": {
|
|
16663
|
+
"description": "Custom fields updated"
|
|
16664
|
+
},
|
|
16665
|
+
"default": {
|
|
16666
|
+
"$ref": "#/components/responses/UnexpectedError"
|
|
16667
|
+
}
|
|
16668
|
+
}
|
|
16669
|
+
}
|
|
16670
|
+
},
|
|
16671
|
+
"/spaces/{spaceId}/pages/{pageId}/feedbacks/{visitorId}": {
|
|
16672
|
+
"get": {
|
|
16673
|
+
"operationId": "getPageFeedback",
|
|
16674
|
+
"summary": "Get a page feedback by a visitor.",
|
|
16675
|
+
"tags": [
|
|
16676
|
+
"spaces"
|
|
16677
|
+
],
|
|
16678
|
+
"security": [
|
|
16679
|
+
{
|
|
16680
|
+
"user": []
|
|
16681
|
+
}
|
|
16682
|
+
],
|
|
16683
|
+
"parameters": [
|
|
16684
|
+
{
|
|
16685
|
+
"$ref": "#/components/parameters/spaceId"
|
|
16686
|
+
},
|
|
16687
|
+
{
|
|
16688
|
+
"$ref": "#/components/parameters/pageId"
|
|
16689
|
+
},
|
|
16690
|
+
{
|
|
16691
|
+
"$ref": "#/components/parameters/visitorId"
|
|
16692
|
+
}
|
|
16693
|
+
],
|
|
16694
|
+
"responses": {
|
|
16695
|
+
"200": {
|
|
16696
|
+
"description": "OK",
|
|
16697
|
+
"content": {
|
|
16698
|
+
"application/json": {
|
|
16699
|
+
"schema": {
|
|
16700
|
+
"$ref": "#/components/schemas/PageFeedback"
|
|
16701
|
+
}
|
|
16702
|
+
}
|
|
16703
|
+
}
|
|
16704
|
+
},
|
|
16705
|
+
"default": {
|
|
16706
|
+
"$ref": "#/components/responses/UnexpectedError"
|
|
16707
|
+
}
|
|
16708
|
+
}
|
|
16709
|
+
},
|
|
16710
|
+
"put": {
|
|
16711
|
+
"operationId": "createPageFeedback",
|
|
16712
|
+
"summary": "Create a page feedback by a visitor.",
|
|
16713
|
+
"tags": [
|
|
16714
|
+
"spaces"
|
|
16715
|
+
],
|
|
16716
|
+
"security": [
|
|
16717
|
+
{
|
|
16718
|
+
"user": []
|
|
16719
|
+
}
|
|
16720
|
+
],
|
|
16721
|
+
"parameters": [
|
|
16722
|
+
{
|
|
16723
|
+
"$ref": "#/components/parameters/spaceId"
|
|
16724
|
+
},
|
|
16725
|
+
{
|
|
16726
|
+
"$ref": "#/components/parameters/pageId"
|
|
16727
|
+
},
|
|
16728
|
+
{
|
|
16729
|
+
"$ref": "#/components/parameters/visitorId"
|
|
16730
|
+
}
|
|
16731
|
+
],
|
|
16732
|
+
"requestBody": {
|
|
16733
|
+
"required": true,
|
|
16734
|
+
"content": {
|
|
16735
|
+
"application/json": {
|
|
16736
|
+
"schema": {
|
|
16737
|
+
"type": "object",
|
|
16738
|
+
"properties": {
|
|
16739
|
+
"rating": {
|
|
16740
|
+
"$ref": "#/components/schemas/PageFeedbackRating"
|
|
16741
|
+
}
|
|
16742
|
+
},
|
|
16743
|
+
"required": [
|
|
16744
|
+
"rating"
|
|
16745
|
+
]
|
|
16746
|
+
}
|
|
16747
|
+
}
|
|
16748
|
+
}
|
|
16749
|
+
},
|
|
16750
|
+
"responses": {
|
|
16751
|
+
"200": {
|
|
16752
|
+
"description": "Feedback updated",
|
|
16753
|
+
"content": {
|
|
16754
|
+
"application/json": {
|
|
16755
|
+
"schema": {
|
|
16756
|
+
"$ref": "#/components/schemas/PageFeedback"
|
|
16757
|
+
}
|
|
16758
|
+
}
|
|
16759
|
+
}
|
|
16760
|
+
},
|
|
16761
|
+
"201": {
|
|
16762
|
+
"description": "Feedback created",
|
|
16763
|
+
"headers": {
|
|
16764
|
+
"Location": {
|
|
16765
|
+
"description": "URL for the feedback",
|
|
16766
|
+
"schema": {
|
|
16767
|
+
"type": "string"
|
|
16768
|
+
}
|
|
16769
|
+
}
|
|
16770
|
+
},
|
|
16771
|
+
"content": {
|
|
16772
|
+
"application/json": {
|
|
16773
|
+
"schema": {
|
|
16774
|
+
"$ref": "#/components/schemas/PageFeedback"
|
|
16775
|
+
}
|
|
16776
|
+
}
|
|
16777
|
+
}
|
|
16481
16778
|
},
|
|
16482
16779
|
"default": {
|
|
16483
16780
|
"$ref": "#/components/responses/UnexpectedError"
|
|
@@ -16543,6 +16840,12 @@
|
|
|
16543
16840
|
"properties": {
|
|
16544
16841
|
"visibility": {
|
|
16545
16842
|
"$ref": "#/components/schemas/ContentVisibility"
|
|
16843
|
+
},
|
|
16844
|
+
"title": {
|
|
16845
|
+
"$ref": "#/components/schemas/CollectionTitle"
|
|
16846
|
+
},
|
|
16847
|
+
"description": {
|
|
16848
|
+
"$ref": "#/components/schemas/CollectionDescription"
|
|
16546
16849
|
}
|
|
16547
16850
|
}
|
|
16548
16851
|
}
|
|
@@ -16564,6 +16867,31 @@
|
|
|
16564
16867
|
"$ref": "#/components/responses/UnexpectedError"
|
|
16565
16868
|
}
|
|
16566
16869
|
}
|
|
16870
|
+
},
|
|
16871
|
+
"delete": {
|
|
16872
|
+
"operationId": "deleteCollectionById",
|
|
16873
|
+
"summary": "Deletes a collection",
|
|
16874
|
+
"tags": [
|
|
16875
|
+
"collections"
|
|
16876
|
+
],
|
|
16877
|
+
"security": [
|
|
16878
|
+
{
|
|
16879
|
+
"user": []
|
|
16880
|
+
}
|
|
16881
|
+
],
|
|
16882
|
+
"parameters": [
|
|
16883
|
+
{
|
|
16884
|
+
"$ref": "#/components/parameters/collectionId"
|
|
16885
|
+
}
|
|
16886
|
+
],
|
|
16887
|
+
"responses": {
|
|
16888
|
+
"205": {
|
|
16889
|
+
"description": "Collection has been deleted"
|
|
16890
|
+
},
|
|
16891
|
+
"default": {
|
|
16892
|
+
"$ref": "#/components/responses/UnexpectedError"
|
|
16893
|
+
}
|
|
16894
|
+
}
|
|
16567
16895
|
}
|
|
16568
16896
|
},
|
|
16569
16897
|
"/collections/{collectionId}/spaces": {
|
|
@@ -19492,6 +19820,7 @@
|
|
|
19492
19820
|
"$ref": "#/components/schemas/Space"
|
|
19493
19821
|
},
|
|
19494
19822
|
"gitSync": {
|
|
19823
|
+
"deprecated": true,
|
|
19495
19824
|
"$ref": "#/components/schemas/GitSyncState"
|
|
19496
19825
|
}
|
|
19497
19826
|
},
|
|
@@ -19640,181 +19969,6 @@
|
|
|
19640
19969
|
}
|
|
19641
19970
|
}
|
|
19642
19971
|
},
|
|
19643
|
-
"/orgs/{organizationId}/dsync": {
|
|
19644
|
-
"post": {
|
|
19645
|
-
"operationId": "setupDirectorySync",
|
|
19646
|
-
"summary": "Set up Directory Sync in an organization.",
|
|
19647
|
-
"tags": [
|
|
19648
|
-
"organizations",
|
|
19649
|
-
"dsync"
|
|
19650
|
-
],
|
|
19651
|
-
"security": [
|
|
19652
|
-
{
|
|
19653
|
-
"user-internal": []
|
|
19654
|
-
}
|
|
19655
|
-
],
|
|
19656
|
-
"parameters": [
|
|
19657
|
-
{
|
|
19658
|
-
"$ref": "#/components/parameters/organizationId"
|
|
19659
|
-
}
|
|
19660
|
-
],
|
|
19661
|
-
"responses": {
|
|
19662
|
-
"200": {
|
|
19663
|
-
"description": "Directory Sync has been properly initialized for the organization.",
|
|
19664
|
-
"content": {
|
|
19665
|
-
"application/json": {
|
|
19666
|
-
"schema": {
|
|
19667
|
-
"type": "object",
|
|
19668
|
-
"required": [
|
|
19669
|
-
"setupUrl"
|
|
19670
|
-
],
|
|
19671
|
-
"properties": {
|
|
19672
|
-
"setupUrl": {
|
|
19673
|
-
"description": "The URL to navigate to to continue Directory Sync setup.",
|
|
19674
|
-
"type": "string"
|
|
19675
|
-
}
|
|
19676
|
-
}
|
|
19677
|
-
}
|
|
19678
|
-
}
|
|
19679
|
-
}
|
|
19680
|
-
},
|
|
19681
|
-
"default": {
|
|
19682
|
-
"$ref": "#/components/responses/UnexpectedError"
|
|
19683
|
-
}
|
|
19684
|
-
}
|
|
19685
|
-
}
|
|
19686
|
-
},
|
|
19687
|
-
"/orgs/{organizationId}/dsync/groups": {
|
|
19688
|
-
"get": {
|
|
19689
|
-
"operationId": "listDirectorySyncGroups",
|
|
19690
|
-
"summary": "Lists the groups exposed to the synced Directory on an organization.",
|
|
19691
|
-
"tags": [
|
|
19692
|
-
"organizations",
|
|
19693
|
-
"dsync"
|
|
19694
|
-
],
|
|
19695
|
-
"security": [
|
|
19696
|
-
{
|
|
19697
|
-
"user-internal": []
|
|
19698
|
-
}
|
|
19699
|
-
],
|
|
19700
|
-
"parameters": [
|
|
19701
|
-
{
|
|
19702
|
-
"$ref": "#/components/parameters/organizationId"
|
|
19703
|
-
}
|
|
19704
|
-
],
|
|
19705
|
-
"responses": {
|
|
19706
|
-
"200": {
|
|
19707
|
-
"description": "A list of all of a Directory's group configured for the given identity provider.\nOnly groups pushed to the SCIM sync will be listed in this result.\n",
|
|
19708
|
-
"content": {
|
|
19709
|
-
"application/json": {
|
|
19710
|
-
"schema": {
|
|
19711
|
-
"type": "object",
|
|
19712
|
-
"description": "All the groups.",
|
|
19713
|
-
"required": [
|
|
19714
|
-
"groups"
|
|
19715
|
-
],
|
|
19716
|
-
"properties": {
|
|
19717
|
-
"groups": {
|
|
19718
|
-
"type": "array",
|
|
19719
|
-
"items": {
|
|
19720
|
-
"$ref": "#/components/schemas/OrganizationDirectorySyncGroup"
|
|
19721
|
-
}
|
|
19722
|
-
}
|
|
19723
|
-
}
|
|
19724
|
-
}
|
|
19725
|
-
}
|
|
19726
|
-
}
|
|
19727
|
-
},
|
|
19728
|
-
"default": {
|
|
19729
|
-
"$ref": "#/components/responses/UnexpectedError"
|
|
19730
|
-
}
|
|
19731
|
-
}
|
|
19732
|
-
}
|
|
19733
|
-
},
|
|
19734
|
-
"/orgs/{organizationId}/dsync/teams": {
|
|
19735
|
-
"post": {
|
|
19736
|
-
"operationId": "syncDirectorySyncGroupsToTeams",
|
|
19737
|
-
"summary": "Syncs a list of group/team unique identifiers pairs together.",
|
|
19738
|
-
"description": "Each pair will lead the team being synced to the group (unless it is already synced to another) and the members of the group will then be synced to the team.\nEach sync is independent, the endpoint will still succeed if some of the syncs fail.\nCheck the response to know more about the success or failure of the entire sync.\n",
|
|
19739
|
-
"tags": [
|
|
19740
|
-
"organizations",
|
|
19741
|
-
"dsync"
|
|
19742
|
-
],
|
|
19743
|
-
"security": [
|
|
19744
|
-
{
|
|
19745
|
-
"user-internal": []
|
|
19746
|
-
}
|
|
19747
|
-
],
|
|
19748
|
-
"parameters": [
|
|
19749
|
-
{
|
|
19750
|
-
"$ref": "#/components/parameters/organizationId"
|
|
19751
|
-
}
|
|
19752
|
-
],
|
|
19753
|
-
"requestBody": {
|
|
19754
|
-
"required": true,
|
|
19755
|
-
"content": {
|
|
19756
|
-
"application/json": {
|
|
19757
|
-
"schema": {
|
|
19758
|
-
"type": "object",
|
|
19759
|
-
"description": "Parameters for syncing a list of Directory Sync groups to a GitBook team, syncing all members of those groups to the assigned teams.\nThe endpoint can be used for one or many groups to team syncs.\n",
|
|
19760
|
-
"required": [
|
|
19761
|
-
"to_sync"
|
|
19762
|
-
],
|
|
19763
|
-
"properties": {
|
|
19764
|
-
"to_sync": {
|
|
19765
|
-
"type": "array",
|
|
19766
|
-
"description": "A list of groups to teams pairs to sync.\nThe group_id is required and the team_id is optional.\nIf the latter is omitted, a new team will be created from the group's data.\n",
|
|
19767
|
-
"items": {
|
|
19768
|
-
"type": "object",
|
|
19769
|
-
"required": [
|
|
19770
|
-
"group_id"
|
|
19771
|
-
],
|
|
19772
|
-
"properties": {
|
|
19773
|
-
"group_id": {
|
|
19774
|
-
"type": "string",
|
|
19775
|
-
"description": "The unique identifier of the group for the given identity provider."
|
|
19776
|
-
},
|
|
19777
|
-
"team_id": {
|
|
19778
|
-
"type": "string",
|
|
19779
|
-
"description": "The unique identifier of the team for the given identity provider."
|
|
19780
|
-
}
|
|
19781
|
-
}
|
|
19782
|
-
}
|
|
19783
|
-
}
|
|
19784
|
-
}
|
|
19785
|
-
}
|
|
19786
|
-
}
|
|
19787
|
-
}
|
|
19788
|
-
},
|
|
19789
|
-
"responses": {
|
|
19790
|
-
"200": {
|
|
19791
|
-
"description": "A list of the results of the synchronization.\nThis will return regardless of the status of the sync.\nCheck the content to know if the sync was successful.\n",
|
|
19792
|
-
"content": {
|
|
19793
|
-
"application/json": {
|
|
19794
|
-
"schema": {
|
|
19795
|
-
"type": "object",
|
|
19796
|
-
"required": [
|
|
19797
|
-
"synced"
|
|
19798
|
-
],
|
|
19799
|
-
"properties": {
|
|
19800
|
-
"synced": {
|
|
19801
|
-
"type": "array",
|
|
19802
|
-
"description": "The list of synced pairs, mapped to the original pairs given to the sync parameters.\nEither the group_id and team_id will be defined, or the error will be defined to describe why it failed.\nUse the success parameter to know if the pair sync was sucessful or not.\n",
|
|
19803
|
-
"items": {
|
|
19804
|
-
"$ref": "#/components/schemas/OrganizationDirectorySyncGroupTeamStatus"
|
|
19805
|
-
}
|
|
19806
|
-
}
|
|
19807
|
-
}
|
|
19808
|
-
}
|
|
19809
|
-
}
|
|
19810
|
-
}
|
|
19811
|
-
},
|
|
19812
|
-
"default": {
|
|
19813
|
-
"$ref": "#/components/responses/UnexpectedError"
|
|
19814
|
-
}
|
|
19815
|
-
}
|
|
19816
|
-
}
|
|
19817
|
-
},
|
|
19818
19972
|
"/orgs/{organizationId}/custom-fields": {
|
|
19819
19973
|
"get": {
|
|
19820
19974
|
"operationId": "listOrganizationCustomFields",
|
|
@@ -21278,6 +21432,193 @@
|
|
|
21278
21432
|
}
|
|
21279
21433
|
}
|
|
21280
21434
|
},
|
|
21435
|
+
"/orgs/{organizationId}/snippets/{snippetId}/move": {
|
|
21436
|
+
"post": {
|
|
21437
|
+
"operationId": "moveSnippet",
|
|
21438
|
+
"summary": "Move a snippet into a destination. The snippet will be archived in the process.",
|
|
21439
|
+
"tags": [
|
|
21440
|
+
"organizations"
|
|
21441
|
+
],
|
|
21442
|
+
"security": [
|
|
21443
|
+
{
|
|
21444
|
+
"user": []
|
|
21445
|
+
}
|
|
21446
|
+
],
|
|
21447
|
+
"parameters": [
|
|
21448
|
+
{
|
|
21449
|
+
"$ref": "#/components/parameters/organizationId"
|
|
21450
|
+
},
|
|
21451
|
+
{
|
|
21452
|
+
"$ref": "#/components/parameters/snippetId"
|
|
21453
|
+
}
|
|
21454
|
+
],
|
|
21455
|
+
"requestBody": {
|
|
21456
|
+
"required": true,
|
|
21457
|
+
"content": {
|
|
21458
|
+
"application/json": {
|
|
21459
|
+
"schema": {
|
|
21460
|
+
"type": "object",
|
|
21461
|
+
"required": [
|
|
21462
|
+
"target"
|
|
21463
|
+
],
|
|
21464
|
+
"properties": {
|
|
21465
|
+
"target": {
|
|
21466
|
+
"type": "object",
|
|
21467
|
+
"description": "Intended destination for the page",
|
|
21468
|
+
"properties": {
|
|
21469
|
+
"space": {
|
|
21470
|
+
"description": "The id of the target space",
|
|
21471
|
+
"type": "string"
|
|
21472
|
+
},
|
|
21473
|
+
"position": {
|
|
21474
|
+
"type": "object",
|
|
21475
|
+
"properties": {
|
|
21476
|
+
"parent": {
|
|
21477
|
+
"description": "The parent of the page in the target space. If undefined, the page will be inserted at the root of the space.",
|
|
21478
|
+
"type": "string"
|
|
21479
|
+
},
|
|
21480
|
+
"index": {
|
|
21481
|
+
"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.",
|
|
21482
|
+
"type": "number"
|
|
21483
|
+
}
|
|
21484
|
+
}
|
|
21485
|
+
}
|
|
21486
|
+
},
|
|
21487
|
+
"required": [
|
|
21488
|
+
"space"
|
|
21489
|
+
]
|
|
21490
|
+
}
|
|
21491
|
+
}
|
|
21492
|
+
}
|
|
21493
|
+
}
|
|
21494
|
+
}
|
|
21495
|
+
},
|
|
21496
|
+
"responses": {
|
|
21497
|
+
"200": {
|
|
21498
|
+
"description": "The snippet was successfully moved.",
|
|
21499
|
+
"content": {
|
|
21500
|
+
"application/json": {
|
|
21501
|
+
"schema": {
|
|
21502
|
+
"type": "object",
|
|
21503
|
+
"required": [
|
|
21504
|
+
"page"
|
|
21505
|
+
],
|
|
21506
|
+
"properties": {
|
|
21507
|
+
"page": {
|
|
21508
|
+
"$ref": "#/components/schemas/RevisionPageDocument"
|
|
21509
|
+
},
|
|
21510
|
+
"changeRequest": {
|
|
21511
|
+
"$ref": "#/components/schemas/ChangeRequest"
|
|
21512
|
+
}
|
|
21513
|
+
}
|
|
21514
|
+
}
|
|
21515
|
+
}
|
|
21516
|
+
}
|
|
21517
|
+
},
|
|
21518
|
+
"default": {
|
|
21519
|
+
"$ref": "#/components/responses/UnexpectedError"
|
|
21520
|
+
}
|
|
21521
|
+
}
|
|
21522
|
+
},
|
|
21523
|
+
"get": {
|
|
21524
|
+
"operationId": "getSnippetSuggestedLocations",
|
|
21525
|
+
"summary": "Return possible snippet locations in an organization based on the current user.",
|
|
21526
|
+
"tags": [
|
|
21527
|
+
"organizations"
|
|
21528
|
+
],
|
|
21529
|
+
"security": [
|
|
21530
|
+
{
|
|
21531
|
+
"user": []
|
|
21532
|
+
}
|
|
21533
|
+
],
|
|
21534
|
+
"parameters": [
|
|
21535
|
+
{
|
|
21536
|
+
"$ref": "#/components/parameters/organizationId"
|
|
21537
|
+
},
|
|
21538
|
+
{
|
|
21539
|
+
"$ref": "#/components/parameters/snippetId"
|
|
21540
|
+
},
|
|
21541
|
+
{
|
|
21542
|
+
"$ref": "#/components/parameters/listPage"
|
|
21543
|
+
},
|
|
21544
|
+
{
|
|
21545
|
+
"$ref": "#/components/parameters/listLimit"
|
|
21546
|
+
},
|
|
21547
|
+
{
|
|
21548
|
+
"name": "spaceId",
|
|
21549
|
+
"in": "query",
|
|
21550
|
+
"description": "If specified, only locations in the given space will be returned. If not specified, GitBook will suggest spaces.",
|
|
21551
|
+
"schema": {
|
|
21552
|
+
"type": "string"
|
|
21553
|
+
}
|
|
21554
|
+
},
|
|
21555
|
+
{
|
|
21556
|
+
"name": "pageId",
|
|
21557
|
+
"in": "query",
|
|
21558
|
+
"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.",
|
|
21559
|
+
"schema": {
|
|
21560
|
+
"type": "string"
|
|
21561
|
+
}
|
|
21562
|
+
}
|
|
21563
|
+
],
|
|
21564
|
+
"responses": {
|
|
21565
|
+
"200": {
|
|
21566
|
+
"description": "A paginated list of suggested snippet locations.",
|
|
21567
|
+
"content": {
|
|
21568
|
+
"application/json": {
|
|
21569
|
+
"schema": {
|
|
21570
|
+
"allOf": [
|
|
21571
|
+
{
|
|
21572
|
+
"$ref": "#/components/schemas/List"
|
|
21573
|
+
},
|
|
21574
|
+
{
|
|
21575
|
+
"type": "object",
|
|
21576
|
+
"required": [
|
|
21577
|
+
"items"
|
|
21578
|
+
],
|
|
21579
|
+
"properties": {
|
|
21580
|
+
"items": {
|
|
21581
|
+
"type": "array",
|
|
21582
|
+
"items": {
|
|
21583
|
+
"type": "object",
|
|
21584
|
+
"required": [
|
|
21585
|
+
"space"
|
|
21586
|
+
],
|
|
21587
|
+
"properties": {
|
|
21588
|
+
"aiPowered": {
|
|
21589
|
+
"type": "boolean",
|
|
21590
|
+
"description": "If defined and true, this location was suggested by GitBook AI."
|
|
21591
|
+
},
|
|
21592
|
+
"space": {
|
|
21593
|
+
"$ref": "#/components/schemas/Space"
|
|
21594
|
+
},
|
|
21595
|
+
"parentPage": {
|
|
21596
|
+
"description": "The parent page of the suggested location.",
|
|
21597
|
+
"oneOf": [
|
|
21598
|
+
{
|
|
21599
|
+
"$ref": "#/components/schemas/RevisionPageDocument"
|
|
21600
|
+
},
|
|
21601
|
+
{
|
|
21602
|
+
"$ref": "#/components/schemas/RevisionPageGroup"
|
|
21603
|
+
}
|
|
21604
|
+
]
|
|
21605
|
+
}
|
|
21606
|
+
}
|
|
21607
|
+
}
|
|
21608
|
+
}
|
|
21609
|
+
}
|
|
21610
|
+
}
|
|
21611
|
+
]
|
|
21612
|
+
}
|
|
21613
|
+
}
|
|
21614
|
+
}
|
|
21615
|
+
},
|
|
21616
|
+
"default": {
|
|
21617
|
+
"$ref": "#/components/responses/UnexpectedError"
|
|
21618
|
+
}
|
|
21619
|
+
}
|
|
21620
|
+
}
|
|
21621
|
+
},
|
|
21281
21622
|
"/orgs/{organizationId}/ask": {
|
|
21282
21623
|
"post": {
|
|
21283
21624
|
"operationId": "askInOrganization",
|
|
@@ -21324,6 +21665,37 @@
|
|
|
21324
21665
|
}
|
|
21325
21666
|
}
|
|
21326
21667
|
},
|
|
21668
|
+
"/orgs/{organizationId}/ask/questions": {
|
|
21669
|
+
"get": {
|
|
21670
|
+
"operationId": "getRecommendedQuestionsInOrganization",
|
|
21671
|
+
"summary": "Get a list of questions recommended to be asked in an organization.",
|
|
21672
|
+
"parameters": [
|
|
21673
|
+
{
|
|
21674
|
+
"$ref": "#/components/parameters/organizationId"
|
|
21675
|
+
}
|
|
21676
|
+
],
|
|
21677
|
+
"security": [
|
|
21678
|
+
{
|
|
21679
|
+
"user": []
|
|
21680
|
+
}
|
|
21681
|
+
],
|
|
21682
|
+
"responses": {
|
|
21683
|
+
"200": {
|
|
21684
|
+
"description": "OK",
|
|
21685
|
+
"content": {
|
|
21686
|
+
"application/json": {
|
|
21687
|
+
"schema": {
|
|
21688
|
+
"$ref": "#/components/schemas/SearchAIRecommendedQuestions"
|
|
21689
|
+
}
|
|
21690
|
+
}
|
|
21691
|
+
}
|
|
21692
|
+
},
|
|
21693
|
+
"default": {
|
|
21694
|
+
"$ref": "#/components/responses/UnexpectedError"
|
|
21695
|
+
}
|
|
21696
|
+
}
|
|
21697
|
+
}
|
|
21698
|
+
},
|
|
21327
21699
|
"/orgs/{organizationId}/insights/audit-relations": {
|
|
21328
21700
|
"get": {
|
|
21329
21701
|
"operationId": "listContentAuditRelations",
|