@gitbook/api 0.20.0 → 0.21.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 +124 -75
- package/dist/index.cjs +49 -28
- package/dist/index.js +48 -28
- package/package.json +1 -1
- package/spec/openapi.json +440 -293
- package/spec/openapi.yaml +243 -174
package/spec/openapi.yaml
CHANGED
|
@@ -79,6 +79,12 @@ components:
|
|
|
79
79
|
- all
|
|
80
80
|
- open
|
|
81
81
|
- resolved
|
|
82
|
+
commentTargetPage:
|
|
83
|
+
name: targetPage
|
|
84
|
+
in: query
|
|
85
|
+
description: The target page of the comment
|
|
86
|
+
schema:
|
|
87
|
+
type: string
|
|
82
88
|
spaceId:
|
|
83
89
|
name: spaceId
|
|
84
90
|
in: path
|
|
@@ -216,6 +222,13 @@ components:
|
|
|
216
222
|
description: The id of the content audit relation
|
|
217
223
|
schema:
|
|
218
224
|
type: string
|
|
225
|
+
visitorId:
|
|
226
|
+
name: visitorId
|
|
227
|
+
in: path
|
|
228
|
+
required: true
|
|
229
|
+
description: The id of the visitor
|
|
230
|
+
schema:
|
|
231
|
+
type: string
|
|
219
232
|
backofficeHostname:
|
|
220
233
|
name: hostname
|
|
221
234
|
in: path
|
|
@@ -2985,6 +2998,13 @@ components:
|
|
|
2985
2998
|
type: string
|
|
2986
2999
|
enum:
|
|
2987
3000
|
- document
|
|
3001
|
+
urls:
|
|
3002
|
+
required:
|
|
3003
|
+
- app
|
|
3004
|
+
properties:
|
|
3005
|
+
app:
|
|
3006
|
+
description: Location of the page in the app
|
|
3007
|
+
$ref: "#/components/schemas/URL"
|
|
2988
3008
|
slug:
|
|
2989
3009
|
description: Page's slug in its direct parent
|
|
2990
3010
|
type: string
|
|
@@ -3011,6 +3031,7 @@ components:
|
|
|
3011
3031
|
required:
|
|
3012
3032
|
- kind
|
|
3013
3033
|
- type
|
|
3034
|
+
- urls
|
|
3014
3035
|
- slug
|
|
3015
3036
|
- path
|
|
3016
3037
|
- pages
|
|
@@ -3674,56 +3695,6 @@ components:
|
|
|
3674
3695
|
newSourceHostname:
|
|
3675
3696
|
type: string
|
|
3676
3697
|
description: The new hostname if the source organization needed to change hostname.
|
|
3677
|
-
OrganizationDirectorySyncGroup:
|
|
3678
|
-
type: object
|
|
3679
|
-
required:
|
|
3680
|
-
- id
|
|
3681
|
-
- idp_id
|
|
3682
|
-
- directory_id
|
|
3683
|
-
- name
|
|
3684
|
-
properties:
|
|
3685
|
-
id:
|
|
3686
|
-
type: string
|
|
3687
|
-
description: The unique identifier of this group in WorkOS. Not the unique ID from GitBook.
|
|
3688
|
-
idp_id:
|
|
3689
|
-
type: string
|
|
3690
|
-
description: The identity provider's unique ID for this group, should be used to generate the team's unique ID when syncing the groups.
|
|
3691
|
-
directory_id:
|
|
3692
|
-
type: string
|
|
3693
|
-
description: The unique ID of the directory this group is owned by in WorkOS. Is not a unique ID from our database.
|
|
3694
|
-
name:
|
|
3695
|
-
type: string
|
|
3696
|
-
description: The name of the group from the identity provider, it should always be set according to the WorkOS documentation.
|
|
3697
|
-
teamKey:
|
|
3698
|
-
type: string
|
|
3699
|
-
description: The unique ID of the GitBook team already synced to this group, if applicable.
|
|
3700
|
-
OrganizationDirectorySyncGroupTeamStatus:
|
|
3701
|
-
anyOf:
|
|
3702
|
-
- type: object
|
|
3703
|
-
required:
|
|
3704
|
-
- success
|
|
3705
|
-
- group_id
|
|
3706
|
-
- team_id
|
|
3707
|
-
properties:
|
|
3708
|
-
success:
|
|
3709
|
-
type: boolean
|
|
3710
|
-
enum:
|
|
3711
|
-
- true
|
|
3712
|
-
group_id:
|
|
3713
|
-
type: string
|
|
3714
|
-
team_id:
|
|
3715
|
-
type: string
|
|
3716
|
-
- type: object
|
|
3717
|
-
required:
|
|
3718
|
-
- success
|
|
3719
|
-
- error
|
|
3720
|
-
properties:
|
|
3721
|
-
success:
|
|
3722
|
-
type: boolean
|
|
3723
|
-
enum:
|
|
3724
|
-
- false
|
|
3725
|
-
error:
|
|
3726
|
-
type: string
|
|
3727
3698
|
OrganizationTarget:
|
|
3728
3699
|
type: object
|
|
3729
3700
|
required:
|
|
@@ -4081,6 +4052,9 @@ components:
|
|
|
4081
4052
|
type: string
|
|
4082
4053
|
format: date-time
|
|
4083
4054
|
description: Timestamp of when the snippet was last edited, if it has been edited since its creation.
|
|
4055
|
+
archived:
|
|
4056
|
+
type: boolean
|
|
4057
|
+
description: Whether the snippet is archived. Archived snippets don't appear in search results or in the app.
|
|
4084
4058
|
title:
|
|
4085
4059
|
type: string
|
|
4086
4060
|
description: Title describing the snippet.
|
|
@@ -4129,6 +4103,7 @@ components:
|
|
|
4129
4103
|
- id
|
|
4130
4104
|
- source
|
|
4131
4105
|
- createdAt
|
|
4106
|
+
- archived
|
|
4132
4107
|
- contributors
|
|
4133
4108
|
- urls
|
|
4134
4109
|
UpdateSnippetSchema:
|
|
@@ -5440,6 +5415,21 @@ components:
|
|
|
5440
5415
|
type: array
|
|
5441
5416
|
items:
|
|
5442
5417
|
$ref: "#/components/schemas/IntegrationBlock"
|
|
5418
|
+
SpaceIntegrationScript:
|
|
5419
|
+
type: object
|
|
5420
|
+
properties:
|
|
5421
|
+
script:
|
|
5422
|
+
description: Script URL to load.
|
|
5423
|
+
$ref: "#/components/schemas/URL"
|
|
5424
|
+
contentSecurityPolicy:
|
|
5425
|
+
description: Content Security Policy to secure the loading of this script.
|
|
5426
|
+
type: string
|
|
5427
|
+
cookies:
|
|
5428
|
+
type: boolean
|
|
5429
|
+
description: If true, the script will potentially load use cookies and visitors should be aware.
|
|
5430
|
+
required:
|
|
5431
|
+
- script
|
|
5432
|
+
- cookies
|
|
5443
5433
|
UpsertEntity:
|
|
5444
5434
|
type: object
|
|
5445
5435
|
description: Entity to create or update in an integration's installation.
|
|
@@ -8268,6 +8258,46 @@ components:
|
|
|
8268
8258
|
required:
|
|
8269
8259
|
- light
|
|
8270
8260
|
- dark
|
|
8261
|
+
PageFeedback:
|
|
8262
|
+
type: object
|
|
8263
|
+
properties:
|
|
8264
|
+
object:
|
|
8265
|
+
type: string
|
|
8266
|
+
description: Type of Object, always equal to "page-feedback"
|
|
8267
|
+
enum:
|
|
8268
|
+
- page-feedback
|
|
8269
|
+
visitorId:
|
|
8270
|
+
type: string
|
|
8271
|
+
rating:
|
|
8272
|
+
$ref: "#/components/schemas/PageFeedbackRating"
|
|
8273
|
+
createdAt:
|
|
8274
|
+
$ref: "#/components/schemas/Date"
|
|
8275
|
+
revision:
|
|
8276
|
+
type: string
|
|
8277
|
+
description: ID of the revision when the rating was created
|
|
8278
|
+
urls:
|
|
8279
|
+
type: object
|
|
8280
|
+
description: URLs associated with the object
|
|
8281
|
+
properties:
|
|
8282
|
+
location:
|
|
8283
|
+
type: string
|
|
8284
|
+
description: URL of the page feedback in the API
|
|
8285
|
+
format: uri
|
|
8286
|
+
required:
|
|
8287
|
+
- location
|
|
8288
|
+
required:
|
|
8289
|
+
- object
|
|
8290
|
+
- visitorId
|
|
8291
|
+
- rating
|
|
8292
|
+
- createdAt
|
|
8293
|
+
- revision
|
|
8294
|
+
- urls
|
|
8295
|
+
PageFeedbackRating:
|
|
8296
|
+
type: string
|
|
8297
|
+
enum:
|
|
8298
|
+
- bad
|
|
8299
|
+
- ok
|
|
8300
|
+
- good
|
|
8271
8301
|
responses:
|
|
8272
8302
|
UnexpectedError:
|
|
8273
8303
|
description: Unexpected Error
|
|
@@ -8421,7 +8451,8 @@ paths:
|
|
|
8421
8451
|
/search/questions:
|
|
8422
8452
|
post:
|
|
8423
8453
|
operationId: getRecommendedQuestions
|
|
8424
|
-
summary: Get a list of questions recommended by AI for a list of content.
|
|
8454
|
+
summary: Get a list of questions recommended by AI for a list of content. Deprecated, use getRecommendedQuestionsInOrganization instead.
|
|
8455
|
+
deprecated: true
|
|
8425
8456
|
security:
|
|
8426
8457
|
- user: []
|
|
8427
8458
|
requestBody:
|
|
@@ -9355,8 +9386,10 @@ paths:
|
|
|
9355
9386
|
- $ref: "#/components/parameters/changeRequestId"
|
|
9356
9387
|
- $ref: "#/components/parameters/listPage"
|
|
9357
9388
|
- $ref: "#/components/parameters/listLimit"
|
|
9389
|
+
- $ref: "#/components/parameters/listOrder"
|
|
9358
9390
|
- $ref: "#/components/parameters/pageFormat"
|
|
9359
9391
|
- $ref: "#/components/parameters/commentStatus"
|
|
9392
|
+
- $ref: "#/components/parameters/commentTargetPage"
|
|
9360
9393
|
responses:
|
|
9361
9394
|
"200":
|
|
9362
9395
|
description: OK
|
|
@@ -9999,8 +10032,10 @@ paths:
|
|
|
9999
10032
|
- $ref: "#/components/parameters/spaceId"
|
|
10000
10033
|
- $ref: "#/components/parameters/listPage"
|
|
10001
10034
|
- $ref: "#/components/parameters/listLimit"
|
|
10035
|
+
- $ref: "#/components/parameters/listOrder"
|
|
10002
10036
|
- $ref: "#/components/parameters/commentStatus"
|
|
10003
10037
|
- $ref: "#/components/parameters/pageFormat"
|
|
10038
|
+
- $ref: "#/components/parameters/commentTargetPage"
|
|
10004
10039
|
responses:
|
|
10005
10040
|
"200":
|
|
10006
10041
|
description: OK
|
|
@@ -10374,6 +10409,29 @@ paths:
|
|
|
10374
10409
|
$ref: "#/components/responses/NotFoundError"
|
|
10375
10410
|
default:
|
|
10376
10411
|
$ref: "#/components/responses/UnexpectedError"
|
|
10412
|
+
"/spaces/{spaceId}/integration-scripts":
|
|
10413
|
+
get:
|
|
10414
|
+
operationId: listSpaceIntegrationScripts
|
|
10415
|
+
summary: List the scripts to embed in published content for a space.
|
|
10416
|
+
tags:
|
|
10417
|
+
- spaces
|
|
10418
|
+
security:
|
|
10419
|
+
- user: []
|
|
10420
|
+
parameters:
|
|
10421
|
+
- $ref: "#/components/parameters/spaceId"
|
|
10422
|
+
responses:
|
|
10423
|
+
"200":
|
|
10424
|
+
description: OK
|
|
10425
|
+
content:
|
|
10426
|
+
application/json:
|
|
10427
|
+
schema:
|
|
10428
|
+
type: array
|
|
10429
|
+
items:
|
|
10430
|
+
$ref: "#/components/schemas/SpaceIntegrationScript"
|
|
10431
|
+
"400":
|
|
10432
|
+
$ref: "#/components/responses/BadRequestError"
|
|
10433
|
+
default:
|
|
10434
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
10377
10435
|
"/spaces/{spaceId}/custom-fields":
|
|
10378
10436
|
get:
|
|
10379
10437
|
operationId: getSpaceCustomFields
|
|
@@ -10413,6 +10471,69 @@ paths:
|
|
|
10413
10471
|
description: Custom fields updated
|
|
10414
10472
|
default:
|
|
10415
10473
|
$ref: "#/components/responses/UnexpectedError"
|
|
10474
|
+
"/spaces/{spaceId}/pages/{pageId}/feedbacks/{visitorId}":
|
|
10475
|
+
get:
|
|
10476
|
+
operationId: getPageFeedback
|
|
10477
|
+
summary: Get a page feedback by a visitor.
|
|
10478
|
+
tags:
|
|
10479
|
+
- spaces
|
|
10480
|
+
security:
|
|
10481
|
+
- user: []
|
|
10482
|
+
parameters:
|
|
10483
|
+
- $ref: "#/components/parameters/spaceId"
|
|
10484
|
+
- $ref: "#/components/parameters/pageId"
|
|
10485
|
+
- $ref: "#/components/parameters/visitorId"
|
|
10486
|
+
responses:
|
|
10487
|
+
"200":
|
|
10488
|
+
description: OK
|
|
10489
|
+
content:
|
|
10490
|
+
application/json:
|
|
10491
|
+
schema:
|
|
10492
|
+
$ref: "#/components/schemas/PageFeedback"
|
|
10493
|
+
default:
|
|
10494
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
10495
|
+
put:
|
|
10496
|
+
operationId: createPageFeedback
|
|
10497
|
+
summary: Create a page feedback by a visitor.
|
|
10498
|
+
tags:
|
|
10499
|
+
- spaces
|
|
10500
|
+
security:
|
|
10501
|
+
- user: []
|
|
10502
|
+
parameters:
|
|
10503
|
+
- $ref: "#/components/parameters/spaceId"
|
|
10504
|
+
- $ref: "#/components/parameters/pageId"
|
|
10505
|
+
- $ref: "#/components/parameters/visitorId"
|
|
10506
|
+
requestBody:
|
|
10507
|
+
required: true
|
|
10508
|
+
content:
|
|
10509
|
+
application/json:
|
|
10510
|
+
schema:
|
|
10511
|
+
type: object
|
|
10512
|
+
properties:
|
|
10513
|
+
rating:
|
|
10514
|
+
$ref: "#/components/schemas/PageFeedbackRating"
|
|
10515
|
+
required:
|
|
10516
|
+
- rating
|
|
10517
|
+
responses:
|
|
10518
|
+
"200":
|
|
10519
|
+
description: Feedback updated
|
|
10520
|
+
content:
|
|
10521
|
+
application/json:
|
|
10522
|
+
schema:
|
|
10523
|
+
$ref: "#/components/schemas/PageFeedback"
|
|
10524
|
+
"201":
|
|
10525
|
+
description: Feedback created
|
|
10526
|
+
headers:
|
|
10527
|
+
Location:
|
|
10528
|
+
description: URL for the feedback
|
|
10529
|
+
schema:
|
|
10530
|
+
type: string
|
|
10531
|
+
content:
|
|
10532
|
+
application/json:
|
|
10533
|
+
schema:
|
|
10534
|
+
$ref: "#/components/schemas/PageFeedback"
|
|
10535
|
+
default:
|
|
10536
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
10416
10537
|
"/collections/{collectionId}":
|
|
10417
10538
|
get:
|
|
10418
10539
|
operationId: getCollectionById
|
|
@@ -12204,129 +12325,6 @@ paths:
|
|
|
12204
12325
|
$ref: "#/components/schemas/Collection"
|
|
12205
12326
|
default:
|
|
12206
12327
|
$ref: "#/components/responses/UnexpectedError"
|
|
12207
|
-
"/orgs/{organizationId}/dsync":
|
|
12208
|
-
post:
|
|
12209
|
-
operationId: setupDirectorySync
|
|
12210
|
-
summary: Set up Directory Sync in an organization.
|
|
12211
|
-
tags:
|
|
12212
|
-
- organizations
|
|
12213
|
-
- dsync
|
|
12214
|
-
security:
|
|
12215
|
-
- user-internal: []
|
|
12216
|
-
parameters:
|
|
12217
|
-
- $ref: "#/components/parameters/organizationId"
|
|
12218
|
-
responses:
|
|
12219
|
-
"200":
|
|
12220
|
-
description: Directory Sync has been properly initialized for the organization.
|
|
12221
|
-
content:
|
|
12222
|
-
application/json:
|
|
12223
|
-
schema:
|
|
12224
|
-
type: object
|
|
12225
|
-
required:
|
|
12226
|
-
- setupUrl
|
|
12227
|
-
properties:
|
|
12228
|
-
setupUrl:
|
|
12229
|
-
description: The URL to navigate to to continue Directory Sync setup.
|
|
12230
|
-
type: string
|
|
12231
|
-
default:
|
|
12232
|
-
$ref: "#/components/responses/UnexpectedError"
|
|
12233
|
-
"/orgs/{organizationId}/dsync/groups":
|
|
12234
|
-
get:
|
|
12235
|
-
operationId: listDirectorySyncGroups
|
|
12236
|
-
summary: Lists the groups exposed to the synced Directory on an organization.
|
|
12237
|
-
tags:
|
|
12238
|
-
- organizations
|
|
12239
|
-
- dsync
|
|
12240
|
-
security:
|
|
12241
|
-
- user-internal: []
|
|
12242
|
-
parameters:
|
|
12243
|
-
- $ref: "#/components/parameters/organizationId"
|
|
12244
|
-
responses:
|
|
12245
|
-
"200":
|
|
12246
|
-
description: |
|
|
12247
|
-
A list of all of a Directory's group configured for the given identity provider.
|
|
12248
|
-
Only groups pushed to the SCIM sync will be listed in this result.
|
|
12249
|
-
content:
|
|
12250
|
-
application/json:
|
|
12251
|
-
schema:
|
|
12252
|
-
type: object
|
|
12253
|
-
description: All the groups.
|
|
12254
|
-
required:
|
|
12255
|
-
- groups
|
|
12256
|
-
properties:
|
|
12257
|
-
groups:
|
|
12258
|
-
type: array
|
|
12259
|
-
items:
|
|
12260
|
-
$ref: "#/components/schemas/OrganizationDirectorySyncGroup"
|
|
12261
|
-
default:
|
|
12262
|
-
$ref: "#/components/responses/UnexpectedError"
|
|
12263
|
-
"/orgs/{organizationId}/dsync/teams":
|
|
12264
|
-
post:
|
|
12265
|
-
operationId: syncDirectorySyncGroupsToTeams
|
|
12266
|
-
summary: Syncs a list of group/team unique identifiers pairs together.
|
|
12267
|
-
description: |
|
|
12268
|
-
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.
|
|
12269
|
-
Each sync is independent, the endpoint will still succeed if some of the syncs fail.
|
|
12270
|
-
Check the response to know more about the success or failure of the entire sync.
|
|
12271
|
-
tags:
|
|
12272
|
-
- organizations
|
|
12273
|
-
- dsync
|
|
12274
|
-
security:
|
|
12275
|
-
- user-internal: []
|
|
12276
|
-
parameters:
|
|
12277
|
-
- $ref: "#/components/parameters/organizationId"
|
|
12278
|
-
requestBody:
|
|
12279
|
-
required: true
|
|
12280
|
-
content:
|
|
12281
|
-
application/json:
|
|
12282
|
-
schema:
|
|
12283
|
-
type: object
|
|
12284
|
-
description: |
|
|
12285
|
-
Parameters for syncing a list of Directory Sync groups to a GitBook team, syncing all members of those groups to the assigned teams.
|
|
12286
|
-
The endpoint can be used for one or many groups to team syncs.
|
|
12287
|
-
required:
|
|
12288
|
-
- to_sync
|
|
12289
|
-
properties:
|
|
12290
|
-
to_sync:
|
|
12291
|
-
type: array
|
|
12292
|
-
description: |
|
|
12293
|
-
A list of groups to teams pairs to sync.
|
|
12294
|
-
The group_id is required and the team_id is optional.
|
|
12295
|
-
If the latter is omitted, a new team will be created from the group's data.
|
|
12296
|
-
items:
|
|
12297
|
-
type: object
|
|
12298
|
-
required:
|
|
12299
|
-
- group_id
|
|
12300
|
-
properties:
|
|
12301
|
-
group_id:
|
|
12302
|
-
type: string
|
|
12303
|
-
description: The unique identifier of the group for the given identity provider.
|
|
12304
|
-
team_id:
|
|
12305
|
-
type: string
|
|
12306
|
-
description: The unique identifier of the team for the given identity provider.
|
|
12307
|
-
responses:
|
|
12308
|
-
"200":
|
|
12309
|
-
description: |
|
|
12310
|
-
A list of the results of the synchronization.
|
|
12311
|
-
This will return regardless of the status of the sync.
|
|
12312
|
-
Check the content to know if the sync was successful.
|
|
12313
|
-
content:
|
|
12314
|
-
application/json:
|
|
12315
|
-
schema:
|
|
12316
|
-
type: object
|
|
12317
|
-
required:
|
|
12318
|
-
- synced
|
|
12319
|
-
properties:
|
|
12320
|
-
synced:
|
|
12321
|
-
type: array
|
|
12322
|
-
description: |
|
|
12323
|
-
The list of synced pairs, mapped to the original pairs given to the sync parameters.
|
|
12324
|
-
Either the group_id and team_id will be defined, or the error will be defined to describe why it failed.
|
|
12325
|
-
Use the success parameter to know if the pair sync was sucessful or not.
|
|
12326
|
-
items:
|
|
12327
|
-
$ref: "#/components/schemas/OrganizationDirectorySyncGroupTeamStatus"
|
|
12328
|
-
default:
|
|
12329
|
-
$ref: "#/components/responses/UnexpectedError"
|
|
12330
12328
|
"/orgs/{organizationId}/custom-fields":
|
|
12331
12329
|
get:
|
|
12332
12330
|
operationId: listOrganizationCustomFields
|
|
@@ -13142,6 +13140,60 @@ paths:
|
|
|
13142
13140
|
$ref: "#/components/schemas/Snippet"
|
|
13143
13141
|
default:
|
|
13144
13142
|
$ref: "#/components/responses/UnexpectedError"
|
|
13143
|
+
"/orgs/{organizationId}/snippets/{snippetId}/move":
|
|
13144
|
+
post:
|
|
13145
|
+
operationId: moveSnippet
|
|
13146
|
+
summary: Move a snippet into a destination. The snippet will be archived in the process.
|
|
13147
|
+
tags:
|
|
13148
|
+
- organizations
|
|
13149
|
+
security:
|
|
13150
|
+
- user: []
|
|
13151
|
+
parameters:
|
|
13152
|
+
- $ref: "#/components/parameters/organizationId"
|
|
13153
|
+
- $ref: "#/components/parameters/snippetId"
|
|
13154
|
+
requestBody:
|
|
13155
|
+
required: true
|
|
13156
|
+
content:
|
|
13157
|
+
application/json:
|
|
13158
|
+
schema:
|
|
13159
|
+
type: object
|
|
13160
|
+
required:
|
|
13161
|
+
- target
|
|
13162
|
+
properties:
|
|
13163
|
+
target:
|
|
13164
|
+
type: object
|
|
13165
|
+
description: Intended destination for the page
|
|
13166
|
+
properties:
|
|
13167
|
+
space:
|
|
13168
|
+
description: The id of the target space
|
|
13169
|
+
type: string
|
|
13170
|
+
position:
|
|
13171
|
+
type: object
|
|
13172
|
+
properties:
|
|
13173
|
+
parent:
|
|
13174
|
+
description: The parent of the page in the target space. If undefined, the page will be inserted at the root of the space.
|
|
13175
|
+
type: string
|
|
13176
|
+
index:
|
|
13177
|
+
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.
|
|
13178
|
+
type: number
|
|
13179
|
+
required:
|
|
13180
|
+
- space
|
|
13181
|
+
responses:
|
|
13182
|
+
"200":
|
|
13183
|
+
description: The snippet was successfully moved.
|
|
13184
|
+
content:
|
|
13185
|
+
application/json:
|
|
13186
|
+
schema:
|
|
13187
|
+
type: object
|
|
13188
|
+
required:
|
|
13189
|
+
- page
|
|
13190
|
+
properties:
|
|
13191
|
+
page:
|
|
13192
|
+
$ref: "#/components/schemas/RevisionPageDocument"
|
|
13193
|
+
changeRequest:
|
|
13194
|
+
$ref: "#/components/schemas/ChangeRequest"
|
|
13195
|
+
default:
|
|
13196
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
13145
13197
|
"/orgs/{organizationId}/ask":
|
|
13146
13198
|
post:
|
|
13147
13199
|
operationId: askInOrganization
|
|
@@ -13168,6 +13220,23 @@ paths:
|
|
|
13168
13220
|
$ref: "#/components/schemas/SearchAIAnswer"
|
|
13169
13221
|
default:
|
|
13170
13222
|
$ref: "#/components/responses/UnexpectedError"
|
|
13223
|
+
"/orgs/{organizationId}/ask/questions":
|
|
13224
|
+
get:
|
|
13225
|
+
operationId: getRecommendedQuestionsInOrganization
|
|
13226
|
+
summary: Get a list of questions recommended to be asked in an organization.
|
|
13227
|
+
parameters:
|
|
13228
|
+
- $ref: "#/components/parameters/organizationId"
|
|
13229
|
+
security:
|
|
13230
|
+
- user: []
|
|
13231
|
+
responses:
|
|
13232
|
+
"200":
|
|
13233
|
+
description: OK
|
|
13234
|
+
content:
|
|
13235
|
+
application/json:
|
|
13236
|
+
schema:
|
|
13237
|
+
$ref: "#/components/schemas/SearchAIRecommendedQuestions"
|
|
13238
|
+
default:
|
|
13239
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
13171
13240
|
"/orgs/{organizationId}/insights/audit-relations":
|
|
13172
13241
|
get:
|
|
13173
13242
|
operationId: listContentAuditRelations
|