@gitbook/api 0.195.0 → 0.197.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 +946 -142
- package/dist/constants.d.ts +9 -2
- package/dist/index.cjs +179 -3
- package/dist/index.js +165 -3
- package/package.json +1 -1
- package/spec/openapi.json +3157 -988
- package/spec/openapi.yaml +1665 -219
package/spec/openapi.yaml
CHANGED
|
@@ -144,6 +144,16 @@ tags:
|
|
|
144
144
|
{% openapi-schemas spec="gitbook" schemas="SiteSectionGroup" grouped="false" %}
|
|
145
145
|
The SiteSectionGroup object
|
|
146
146
|
{% endopenapi-schemas %}
|
|
147
|
+
- name: site-external-links
|
|
148
|
+
x-page-title: Site external links
|
|
149
|
+
x-page-description: Manage links to external destinations in a site's navigation.
|
|
150
|
+
x-parent: sites
|
|
151
|
+
description: |
|
|
152
|
+
External links add absolute HTTP or HTTPS destinations alongside sections and groups in a site's navigation.
|
|
153
|
+
|
|
154
|
+
{% openapi-schemas spec="gitbook" schemas="SiteExternalLink" grouped="false" %}
|
|
155
|
+
The SiteExternalLink object
|
|
156
|
+
{% endopenapi-schemas %}
|
|
147
157
|
- name: site-redirects
|
|
148
158
|
x-page-title: Site redirects
|
|
149
159
|
x-page-description: Establish redirects for pages that have moved or changed in your docs site.
|
|
@@ -1642,6 +1652,7 @@ paths:
|
|
|
1642
1652
|
summary: Update a change request's subject, description, or status
|
|
1643
1653
|
description: Updates the metadata of a change request. Use this to rename a change request, add context before requesting a review, or change the workflow status without merging. To update page content within the change request, use the content endpoint instead.
|
|
1644
1654
|
x-gitbook-mcp: true
|
|
1655
|
+
x-gitbook-return-preference: true
|
|
1645
1656
|
tags:
|
|
1646
1657
|
- change-requests
|
|
1647
1658
|
security:
|
|
@@ -1651,6 +1662,7 @@ paths:
|
|
|
1651
1662
|
parameters:
|
|
1652
1663
|
- $ref: "#/components/parameters/spaceId"
|
|
1653
1664
|
- $ref: "#/components/parameters/changeRequestId"
|
|
1665
|
+
- $ref: "#/components/parameters/returnPreference"
|
|
1654
1666
|
requestBody:
|
|
1655
1667
|
required: true
|
|
1656
1668
|
content:
|
|
@@ -1681,6 +1693,11 @@ paths:
|
|
|
1681
1693
|
application/json:
|
|
1682
1694
|
schema:
|
|
1683
1695
|
$ref: "#/components/schemas/ChangeRequest"
|
|
1696
|
+
"204":
|
|
1697
|
+
description: Change request updated without returning its representation
|
|
1698
|
+
headers:
|
|
1699
|
+
Preference-Applied:
|
|
1700
|
+
$ref: "#/components/headers/returnPreferenceApplied"
|
|
1684
1701
|
/spaces/{spaceId}/change-requests/{changeRequestId}/merge:
|
|
1685
1702
|
post:
|
|
1686
1703
|
operationId: mergeChangeRequest
|
|
@@ -2374,7 +2391,9 @@ paths:
|
|
|
2374
2391
|
operationId: updateChangeRequestContent
|
|
2375
2392
|
summary: Apply a batch of content changes to a change request
|
|
2376
2393
|
description: |-
|
|
2377
|
-
Applies an ordered array of content changes (up to 50) to the change request atomically, creating a single new revision. Changes are applied sequentially; if any single change is invalid the entire batch is rejected and no revision is created. Use this to create, update, move, or delete pages within a change request before merging to live. This is the primary way to programmatically author content in a change request.
|
|
2394
|
+
Applies an ordered array of content changes (up to 50) to the change request atomically, creating a single new revision. Changes are applied sequentially; if any single change is invalid the entire batch is rejected and no revision is created. Use this to create, update, rename, move, or delete pages within a change request before merging to live. This is the primary way to programmatically author content in a change request.
|
|
2395
|
+
**Renaming a page** — `update_page` can change a page's `title` and/or its `slug` (the path segment used to build its URL within its current parent). Both fields are independent: to rename only the title without changing the URL, set `title` and omit `slug`; to change the URL without changing the title, set `slug` and omit `title`.
|
|
2396
|
+
**Moving a page** — `update_page` can also change a page's parent and/or its position among siblings with `into`/`at`. Set `into` to the new parent's page ID, or `null` to move the page to the root of the tree; omit `into` to leave the parent unchanged. Set `at` to place the page at a specific zero-based index among its new siblings; omit it to leave the position unchanged (when the parent isn't changing) or append at the end (when it is). A page cannot be moved under itself or one of its own descendants. `insert_page`'s `into`/`at` remain the way to place a **new** page at creation time.
|
|
2378
2397
|
To put an image or attachment in a page, upload it with an `insert_files` change. Give the file a `ref` and a page inserted in the same batch can reference it as `` or `[File](./<ref>)`, which resolves to the file's ID at apply time regardless of operation order. Uploaded files are also listed as `insertedFiles` when `compat=false`, and a file already in the change request can be referenced directly as `/files/<fileId>`. Inline `data:` URIs in markdown are not ingested and large image blocks are dropped, so upload the bytes with `insert_files` instead.
|
|
2379
2398
|
When page content is provided as markdown, links to other pages are resolved against the change request's current page tree. You can link a page by:
|
|
2380
2399
|
- Page ID — `/pages/<pageId>` (also `/pages/<pageId>#anchor`).
|
|
@@ -3877,6 +3896,8 @@ paths:
|
|
|
3877
3896
|
get:
|
|
3878
3897
|
operationId: listIntegrations
|
|
3879
3898
|
summary: List all public integrations
|
|
3899
|
+
description: Returns a paginated list of the integrations published in the GitBook marketplace. Use this to discover an integration by name, category, or the blocks and content sources it provides, before installing it on an organization, space or site.
|
|
3900
|
+
x-gitbook-mcp: true
|
|
3880
3901
|
tags:
|
|
3881
3902
|
- integrations
|
|
3882
3903
|
parameters:
|
|
@@ -3910,6 +3931,8 @@ paths:
|
|
|
3910
3931
|
get:
|
|
3911
3932
|
operationId: getIntegrationByName
|
|
3912
3933
|
summary: Get an integration by its name
|
|
3934
|
+
description: Returns a single integration by its unique name, including the configuration it expects, the targets it can be installed on, and the permissions it requests. Private integrations are only readable by the organization that owns them.
|
|
3935
|
+
x-gitbook-mcp: true
|
|
3913
3936
|
tags:
|
|
3914
3937
|
- integrations
|
|
3915
3938
|
parameters:
|
|
@@ -3931,6 +3954,8 @@ paths:
|
|
|
3931
3954
|
- integrations
|
|
3932
3955
|
security:
|
|
3933
3956
|
- user: []
|
|
3957
|
+
- oauth:
|
|
3958
|
+
- integration:publish
|
|
3934
3959
|
parameters:
|
|
3935
3960
|
- $ref: "#/components/parameters/integrationName"
|
|
3936
3961
|
responses:
|
|
@@ -3956,6 +3981,8 @@ paths:
|
|
|
3956
3981
|
- integrations
|
|
3957
3982
|
security:
|
|
3958
3983
|
- user: []
|
|
3984
|
+
- oauth:
|
|
3985
|
+
- integration:delete
|
|
3959
3986
|
parameters:
|
|
3960
3987
|
- $ref: "#/components/parameters/integrationName"
|
|
3961
3988
|
responses:
|
|
@@ -4000,10 +4027,14 @@ paths:
|
|
|
4000
4027
|
post:
|
|
4001
4028
|
operationId: installIntegration
|
|
4002
4029
|
summary: Install an integration
|
|
4030
|
+
description: Installs an integration on an organization, creating the account-level installation that space and site installations hang off. Configure it with the update operation, then enable it on individual spaces or sites.
|
|
4031
|
+
x-gitbook-mcp: true
|
|
4003
4032
|
tags:
|
|
4004
4033
|
- integrations
|
|
4005
4034
|
security:
|
|
4006
4035
|
- user: []
|
|
4036
|
+
- oauth:
|
|
4037
|
+
- integration:installations:write
|
|
4007
4038
|
parameters:
|
|
4008
4039
|
- $ref: "#/components/parameters/integrationName"
|
|
4009
4040
|
requestBody:
|
|
@@ -4164,6 +4195,8 @@ paths:
|
|
|
4164
4195
|
- integrations
|
|
4165
4196
|
security:
|
|
4166
4197
|
- user: []
|
|
4198
|
+
- oauth:
|
|
4199
|
+
- integration:publish
|
|
4167
4200
|
parameters:
|
|
4168
4201
|
- $ref: "#/components/parameters/integrationName"
|
|
4169
4202
|
requestBody:
|
|
@@ -4197,6 +4230,8 @@ paths:
|
|
|
4197
4230
|
- integrations
|
|
4198
4231
|
security:
|
|
4199
4232
|
- user: []
|
|
4233
|
+
- oauth:
|
|
4234
|
+
- integration:publish
|
|
4200
4235
|
parameters:
|
|
4201
4236
|
- $ref: "#/components/parameters/integrationName"
|
|
4202
4237
|
responses:
|
|
@@ -4287,12 +4322,16 @@ paths:
|
|
|
4287
4322
|
get:
|
|
4288
4323
|
operationId: getIntegrationInstallationById
|
|
4289
4324
|
summary: Get an integration installation by its ID
|
|
4325
|
+
description: Returns the organization-level installation of an integration, including its account configuration and how many spaces it manages. The configuration can contain credentials the integration stored for third-party services.
|
|
4326
|
+
x-gitbook-mcp: true
|
|
4290
4327
|
tags:
|
|
4291
4328
|
- integrations
|
|
4292
4329
|
security:
|
|
4293
4330
|
- user: []
|
|
4294
4331
|
- integration: []
|
|
4295
4332
|
- integration-installation: []
|
|
4333
|
+
- oauth:
|
|
4334
|
+
- integration:installations:read
|
|
4296
4335
|
parameters:
|
|
4297
4336
|
- $ref: "#/components/parameters/integrationName"
|
|
4298
4337
|
- $ref: "#/components/parameters/installationId"
|
|
@@ -4308,12 +4347,16 @@ paths:
|
|
|
4308
4347
|
patch:
|
|
4309
4348
|
operationId: updateIntegrationInstallation
|
|
4310
4349
|
summary: Update an integration installation
|
|
4350
|
+
description: Updates the account-level configuration of an installation, and which spaces or sites it applies to.
|
|
4351
|
+
x-gitbook-mcp: true
|
|
4311
4352
|
tags:
|
|
4312
4353
|
- integrations
|
|
4313
4354
|
security:
|
|
4314
4355
|
- user: []
|
|
4315
4356
|
- integration: []
|
|
4316
4357
|
- integration-installation: []
|
|
4358
|
+
- oauth:
|
|
4359
|
+
- integration:installations:write
|
|
4317
4360
|
parameters:
|
|
4318
4361
|
- $ref: "#/components/parameters/integrationName"
|
|
4319
4362
|
- $ref: "#/components/parameters/installationId"
|
|
@@ -4372,8 +4415,16 @@ paths:
|
|
|
4372
4415
|
get:
|
|
4373
4416
|
operationId: listIntegrationInstallationSpaces
|
|
4374
4417
|
summary: List all space integration installations
|
|
4418
|
+
description: Returns a paginated list of the spaces an installation is enabled on, with the configuration of the integration for each of them. Pass extended to get the full space object instead of its ID.
|
|
4419
|
+
x-gitbook-mcp: true
|
|
4375
4420
|
tags:
|
|
4376
4421
|
- integrations
|
|
4422
|
+
security:
|
|
4423
|
+
- user: []
|
|
4424
|
+
- integration: []
|
|
4425
|
+
- integration-installation: []
|
|
4426
|
+
- oauth:
|
|
4427
|
+
- integration:installations:read
|
|
4377
4428
|
parameters:
|
|
4378
4429
|
- $ref: "#/components/parameters/integrationName"
|
|
4379
4430
|
- $ref: "#/components/parameters/installationId"
|
|
@@ -4404,6 +4455,14 @@ paths:
|
|
|
4404
4455
|
post:
|
|
4405
4456
|
operationId: installIntegrationOnSpace
|
|
4406
4457
|
summary: Install an integration on a space
|
|
4458
|
+
description: Enables an existing organization-level installation on one space. The organization must already have the integration installed.
|
|
4459
|
+
x-gitbook-mcp: true
|
|
4460
|
+
security:
|
|
4461
|
+
- user: []
|
|
4462
|
+
- integration: []
|
|
4463
|
+
- integration-installation: []
|
|
4464
|
+
- oauth:
|
|
4465
|
+
- integration:installations:write
|
|
4407
4466
|
parameters:
|
|
4408
4467
|
- $ref: "#/components/parameters/integrationName"
|
|
4409
4468
|
- $ref: "#/components/parameters/installationId"
|
|
@@ -4443,8 +4502,16 @@ paths:
|
|
|
4443
4502
|
get:
|
|
4444
4503
|
operationId: getIntegrationSpaceInstallation
|
|
4445
4504
|
summary: Get an integration space installation
|
|
4505
|
+
description: Returns the installation of an integration on one space, including the configuration of the integration for that space.
|
|
4506
|
+
x-gitbook-mcp: true
|
|
4446
4507
|
tags:
|
|
4447
4508
|
- integrations
|
|
4509
|
+
security:
|
|
4510
|
+
- user: []
|
|
4511
|
+
- integration: []
|
|
4512
|
+
- integration-installation: []
|
|
4513
|
+
- oauth:
|
|
4514
|
+
- integration:installations:read
|
|
4448
4515
|
parameters:
|
|
4449
4516
|
- $ref: "#/components/parameters/integrationName"
|
|
4450
4517
|
- $ref: "#/components/parameters/installationId"
|
|
@@ -4467,8 +4534,16 @@ paths:
|
|
|
4467
4534
|
patch:
|
|
4468
4535
|
operationId: updateIntegrationSpaceInstallation
|
|
4469
4536
|
summary: Update an integration space installation
|
|
4537
|
+
description: Updates the configuration of an integration for one space.
|
|
4538
|
+
x-gitbook-mcp: true
|
|
4470
4539
|
tags:
|
|
4471
4540
|
- integrations
|
|
4541
|
+
security:
|
|
4542
|
+
- user: []
|
|
4543
|
+
- integration: []
|
|
4544
|
+
- integration-installation: []
|
|
4545
|
+
- oauth:
|
|
4546
|
+
- integration:installations:write
|
|
4472
4547
|
parameters:
|
|
4473
4548
|
- $ref: "#/components/parameters/integrationName"
|
|
4474
4549
|
- $ref: "#/components/parameters/installationId"
|
|
@@ -4510,8 +4585,16 @@ paths:
|
|
|
4510
4585
|
get:
|
|
4511
4586
|
operationId: listIntegrationInstallationSites
|
|
4512
4587
|
summary: List all site integration installations
|
|
4588
|
+
description: Returns a paginated list of the sites an installation is enabled on, with the configuration of the integration for each of them. Pass extended to get the full site object instead of its ID.
|
|
4589
|
+
x-gitbook-mcp: true
|
|
4513
4590
|
tags:
|
|
4514
4591
|
- integrations
|
|
4592
|
+
security:
|
|
4593
|
+
- user: []
|
|
4594
|
+
- integration: []
|
|
4595
|
+
- integration-installation: []
|
|
4596
|
+
- oauth:
|
|
4597
|
+
- integration:installations:read
|
|
4515
4598
|
parameters:
|
|
4516
4599
|
- $ref: "#/components/parameters/integrationName"
|
|
4517
4600
|
- $ref: "#/components/parameters/installationId"
|
|
@@ -4542,8 +4625,16 @@ paths:
|
|
|
4542
4625
|
post:
|
|
4543
4626
|
operationId: installIntegrationOnSite
|
|
4544
4627
|
summary: Install an integration on a site
|
|
4628
|
+
description: Enables an existing organization-level installation on one site. The organization must already have the integration installed.
|
|
4629
|
+
x-gitbook-mcp: true
|
|
4545
4630
|
tags:
|
|
4546
4631
|
- integrations
|
|
4632
|
+
security:
|
|
4633
|
+
- user: []
|
|
4634
|
+
- integration: []
|
|
4635
|
+
- integration-installation: []
|
|
4636
|
+
- oauth:
|
|
4637
|
+
- integration:installations:write
|
|
4547
4638
|
parameters:
|
|
4548
4639
|
- $ref: "#/components/parameters/integrationName"
|
|
4549
4640
|
- $ref: "#/components/parameters/installationId"
|
|
@@ -4583,8 +4674,16 @@ paths:
|
|
|
4583
4674
|
get:
|
|
4584
4675
|
operationId: getIntegrationSiteInstallation
|
|
4585
4676
|
summary: Get an integration site installation
|
|
4677
|
+
description: Returns the installation of an integration on one site, including the configuration of the integration for that site.
|
|
4678
|
+
x-gitbook-mcp: true
|
|
4586
4679
|
tags:
|
|
4587
4680
|
- integrations
|
|
4681
|
+
security:
|
|
4682
|
+
- user: []
|
|
4683
|
+
- integration: []
|
|
4684
|
+
- integration-installation: []
|
|
4685
|
+
- oauth:
|
|
4686
|
+
- integration:installations:read
|
|
4588
4687
|
parameters:
|
|
4589
4688
|
- $ref: "#/components/parameters/integrationName"
|
|
4590
4689
|
- $ref: "#/components/parameters/installationId"
|
|
@@ -4607,8 +4706,16 @@ paths:
|
|
|
4607
4706
|
patch:
|
|
4608
4707
|
operationId: updateIntegrationSiteInstallation
|
|
4609
4708
|
summary: Update an integration site installation
|
|
4709
|
+
description: Updates the configuration of an integration for one site.
|
|
4710
|
+
x-gitbook-mcp: true
|
|
4610
4711
|
tags:
|
|
4611
4712
|
- integrations
|
|
4713
|
+
security:
|
|
4714
|
+
- user: []
|
|
4715
|
+
- integration: []
|
|
4716
|
+
- integration-installation: []
|
|
4717
|
+
- oauth:
|
|
4718
|
+
- integration:installations:write
|
|
4612
4719
|
parameters:
|
|
4613
4720
|
- $ref: "#/components/parameters/integrationName"
|
|
4614
4721
|
- $ref: "#/components/parameters/installationId"
|
|
@@ -4677,6 +4784,47 @@ paths:
|
|
|
4677
4784
|
$ref: "#/components/schemas/Organization"
|
|
4678
4785
|
required:
|
|
4679
4786
|
- items
|
|
4787
|
+
post:
|
|
4788
|
+
operationId: createOrganization
|
|
4789
|
+
summary: Create an organization
|
|
4790
|
+
x-gitbook-mcp: true
|
|
4791
|
+
tags:
|
|
4792
|
+
- organizations
|
|
4793
|
+
security:
|
|
4794
|
+
- user: []
|
|
4795
|
+
- oauth:
|
|
4796
|
+
- organization:write
|
|
4797
|
+
parameters:
|
|
4798
|
+
- name: withDefaultSite
|
|
4799
|
+
in: query
|
|
4800
|
+
description: If true, also creates a default documentation site for the organization.
|
|
4801
|
+
required: false
|
|
4802
|
+
schema:
|
|
4803
|
+
type: boolean
|
|
4804
|
+
- name: openapiUrl
|
|
4805
|
+
in: query
|
|
4806
|
+
description: URL of an OpenAPI/Swagger specification to import and attach to the default site as a reference. Only used when `withDefaultSite` is true.
|
|
4807
|
+
required: false
|
|
4808
|
+
schema:
|
|
4809
|
+
type: string
|
|
4810
|
+
requestBody:
|
|
4811
|
+
required: true
|
|
4812
|
+
content:
|
|
4813
|
+
application/json:
|
|
4814
|
+
schema:
|
|
4815
|
+
$ref: "#/components/schemas/CreateOrganization"
|
|
4816
|
+
responses:
|
|
4817
|
+
"201":
|
|
4818
|
+
description: Organization created
|
|
4819
|
+
headers:
|
|
4820
|
+
Location:
|
|
4821
|
+
description: API URL for the newly created organization
|
|
4822
|
+
schema:
|
|
4823
|
+
type: string
|
|
4824
|
+
content:
|
|
4825
|
+
application/json:
|
|
4826
|
+
schema:
|
|
4827
|
+
$ref: "#/components/schemas/Organization"
|
|
4680
4828
|
/orgs/{organizationId}:
|
|
4681
4829
|
get:
|
|
4682
4830
|
operationId: getOrganizationById
|
|
@@ -4750,12 +4898,151 @@ paths:
|
|
|
4750
4898
|
"400":
|
|
4751
4899
|
description: Invalid default content space or collection provided
|
|
4752
4900
|
$ref: "#/components/responses/BadRequestError"
|
|
4901
|
+
/orgs/{organizationId}/audit-event-actions:
|
|
4902
|
+
get:
|
|
4903
|
+
operationId: listOrganizationAuditEventActions
|
|
4904
|
+
x-gitbook-mcp: true
|
|
4905
|
+
summary: List organization audit event actions
|
|
4906
|
+
description: |
|
|
4907
|
+
Lists the supported audit event action identifiers and their display labels. Access is restricted to organization administrators and GitBook staff. The organization must be activated and on an active Enterprise plan, except for GitBook's own organization.
|
|
4908
|
+
tags:
|
|
4909
|
+
- organizations
|
|
4910
|
+
security:
|
|
4911
|
+
- user: []
|
|
4912
|
+
parameters:
|
|
4913
|
+
- $ref: "#/components/parameters/organizationId"
|
|
4914
|
+
responses:
|
|
4915
|
+
"200":
|
|
4916
|
+
description: Supported audit event actions.
|
|
4917
|
+
content:
|
|
4918
|
+
application/json:
|
|
4919
|
+
schema:
|
|
4920
|
+
type: object
|
|
4921
|
+
properties:
|
|
4922
|
+
items:
|
|
4923
|
+
type: array
|
|
4924
|
+
items:
|
|
4925
|
+
$ref: "#/components/schemas/AuditEventAction"
|
|
4926
|
+
required:
|
|
4927
|
+
- items
|
|
4928
|
+
"401":
|
|
4929
|
+
$ref: "#/components/responses/UnauthorizedError"
|
|
4930
|
+
"403":
|
|
4931
|
+
$ref: "#/components/responses/ForbiddenError"
|
|
4932
|
+
"404":
|
|
4933
|
+
$ref: "#/components/responses/NotFoundError"
|
|
4934
|
+
/orgs/{organizationId}/audit-events:
|
|
4935
|
+
get:
|
|
4936
|
+
operationId: listOrganizationAuditEvents
|
|
4937
|
+
x-gitbook-mcp: true
|
|
4938
|
+
summary: List organization audit events
|
|
4939
|
+
description: |
|
|
4940
|
+
Lists recorded changes for an activated organization. Access is restricted to organization administrators and GitBook staff, and results are ordered by occurrence time, newest first. An active Enterprise plan is required except for GitBook's own organization.
|
|
4941
|
+
tags:
|
|
4942
|
+
- organizations
|
|
4943
|
+
security:
|
|
4944
|
+
- user: []
|
|
4945
|
+
parameters:
|
|
4946
|
+
- $ref: "#/components/parameters/organizationId"
|
|
4947
|
+
- $ref: "#/components/parameters/listPage"
|
|
4948
|
+
- name: limit
|
|
4949
|
+
in: query
|
|
4950
|
+
description: Number of events to return, up to 100.
|
|
4951
|
+
schema:
|
|
4952
|
+
type: integer
|
|
4953
|
+
minimum: 1
|
|
4954
|
+
maximum: 100
|
|
4955
|
+
default: 20
|
|
4956
|
+
- name: from
|
|
4957
|
+
in: query
|
|
4958
|
+
description: Include events occurring at or after this time.
|
|
4959
|
+
schema:
|
|
4960
|
+
type: string
|
|
4961
|
+
format: date-time
|
|
4962
|
+
- name: to
|
|
4963
|
+
in: query
|
|
4964
|
+
description: Include events occurring at or before this time.
|
|
4965
|
+
schema:
|
|
4966
|
+
type: string
|
|
4967
|
+
format: date-time
|
|
4968
|
+
- name: action
|
|
4969
|
+
in: query
|
|
4970
|
+
description: Filter by an exact audit action name.
|
|
4971
|
+
schema:
|
|
4972
|
+
type: string
|
|
4973
|
+
- name: actor
|
|
4974
|
+
in: query
|
|
4975
|
+
description: Filter by an exact stable actor identifier.
|
|
4976
|
+
schema:
|
|
4977
|
+
type: string
|
|
4978
|
+
- name: target
|
|
4979
|
+
in: query
|
|
4980
|
+
description: Filter by an exact stable target identifier.
|
|
4981
|
+
schema:
|
|
4982
|
+
type: string
|
|
4983
|
+
responses:
|
|
4984
|
+
"200":
|
|
4985
|
+
description: Paginated audit events.
|
|
4986
|
+
content:
|
|
4987
|
+
application/json:
|
|
4988
|
+
schema:
|
|
4989
|
+
allOf:
|
|
4990
|
+
- $ref: "#/components/schemas/List"
|
|
4991
|
+
- type: object
|
|
4992
|
+
properties:
|
|
4993
|
+
items:
|
|
4994
|
+
type: array
|
|
4995
|
+
items:
|
|
4996
|
+
$ref: "#/components/schemas/AuditEvent"
|
|
4997
|
+
required:
|
|
4998
|
+
- items
|
|
4999
|
+
"400":
|
|
5000
|
+
$ref: "#/components/responses/BadRequestError"
|
|
5001
|
+
"401":
|
|
5002
|
+
$ref: "#/components/responses/UnauthorizedError"
|
|
5003
|
+
"403":
|
|
5004
|
+
$ref: "#/components/responses/ForbiddenError"
|
|
5005
|
+
"404":
|
|
5006
|
+
$ref: "#/components/responses/NotFoundError"
|
|
5007
|
+
/orgs/{organizationId}/audit-events/{auditEventId}:
|
|
5008
|
+
get:
|
|
5009
|
+
operationId: getOrganizationAuditEvent
|
|
5010
|
+
x-gitbook-mcp: true
|
|
5011
|
+
summary: Get an organization audit event
|
|
5012
|
+
description: |
|
|
5013
|
+
Returns the full allowlisted payload for one recorded organization change. Access is restricted to organization administrators and GitBook staff. The organization must be activated and on an active Enterprise plan, except for GitBook's own organization.
|
|
5014
|
+
tags:
|
|
5015
|
+
- organizations
|
|
5016
|
+
security:
|
|
5017
|
+
- user: []
|
|
5018
|
+
parameters:
|
|
5019
|
+
- $ref: "#/components/parameters/organizationId"
|
|
5020
|
+
- name: auditEventId
|
|
5021
|
+
in: path
|
|
5022
|
+
required: true
|
|
5023
|
+
description: Unique identifier of the audit event.
|
|
5024
|
+
schema:
|
|
5025
|
+
type: string
|
|
5026
|
+
format: uuid
|
|
5027
|
+
responses:
|
|
5028
|
+
"200":
|
|
5029
|
+
description: The audit event.
|
|
5030
|
+
content:
|
|
5031
|
+
application/json:
|
|
5032
|
+
schema:
|
|
5033
|
+
$ref: "#/components/schemas/AuditEventDetails"
|
|
5034
|
+
"401":
|
|
5035
|
+
$ref: "#/components/responses/UnauthorizedError"
|
|
5036
|
+
"403":
|
|
5037
|
+
$ref: "#/components/responses/ForbiddenError"
|
|
5038
|
+
"404":
|
|
5039
|
+
$ref: "#/components/responses/NotFoundError"
|
|
4753
5040
|
/orgs/{organizationId}/styleguides:
|
|
4754
5041
|
get:
|
|
4755
5042
|
operationId: listOrganizationStyleguides
|
|
4756
|
-
summary: List all
|
|
5043
|
+
summary: List all style guides in an organization
|
|
4757
5044
|
description: |
|
|
4758
|
-
Lists every
|
|
5045
|
+
Lists every style guide (a space holding a team's writing style guide) in the organization, along with every site that references each one. Style guides that are not referenced by any site are still returned with an empty `sites` list.
|
|
4759
5046
|
x-gitbook-mcp: true
|
|
4760
5047
|
tags:
|
|
4761
5048
|
- organizations
|
|
@@ -4775,9 +5062,9 @@ paths:
|
|
|
4775
5062
|
/orgs/{organizationId}/styleguide-templates:
|
|
4776
5063
|
get:
|
|
4777
5064
|
operationId: listStyleguideTemplates
|
|
4778
|
-
summary: List all built-in
|
|
5065
|
+
summary: List all built-in style guide templates
|
|
4779
5066
|
description: |
|
|
4780
|
-
Lists the built-in
|
|
5067
|
+
Lists the built-in style guide starter templates that can seed a new styleguide, including the markdown content used to render each template's preview.
|
|
4781
5068
|
x-gitbook-mcp: true
|
|
4782
5069
|
tags:
|
|
4783
5070
|
- organizations
|
|
@@ -5740,8 +6027,16 @@ paths:
|
|
|
5740
6027
|
get:
|
|
5741
6028
|
operationId: listOrganizationIntegrations
|
|
5742
6029
|
summary: List all public integrations along with private ones trusted by the specific org.
|
|
6030
|
+
description: "Returns a paginated list of the integrations available to the organization: every publicly published integration plus the private ones the organization owns or is trusted with. Prefer this over the public listing when acting inside an organization."
|
|
6031
|
+
x-gitbook-mcp: true
|
|
5743
6032
|
tags:
|
|
5744
6033
|
- integrations
|
|
6034
|
+
security:
|
|
6035
|
+
- user: []
|
|
6036
|
+
- integration: []
|
|
6037
|
+
- integration-installation: []
|
|
6038
|
+
- oauth:
|
|
6039
|
+
- integration:read
|
|
5745
6040
|
parameters:
|
|
5746
6041
|
- $ref: "#/components/parameters/organizationId"
|
|
5747
6042
|
- $ref: "#/components/parameters/listPage"
|
|
@@ -5774,10 +6069,14 @@ paths:
|
|
|
5774
6069
|
get:
|
|
5775
6070
|
operationId: getOrganizationIntegrationStatus
|
|
5776
6071
|
summary: Get the status of an integration
|
|
6072
|
+
description: Returns whether an integration is installed for the organization and the status of that installation. Use this for a single integration instead of listing every status.
|
|
6073
|
+
x-gitbook-mcp: true
|
|
5777
6074
|
tags:
|
|
5778
6075
|
- integrations
|
|
5779
6076
|
security:
|
|
5780
6077
|
- user: []
|
|
6078
|
+
- oauth:
|
|
6079
|
+
- integration:read
|
|
5781
6080
|
parameters:
|
|
5782
6081
|
- $ref: "#/components/parameters/organizationId"
|
|
5783
6082
|
- $ref: "#/components/parameters/integrationName"
|
|
@@ -5833,10 +6132,17 @@ paths:
|
|
|
5833
6132
|
get:
|
|
5834
6133
|
operationId: listOrganizationIntegrationsStatus
|
|
5835
6134
|
summary: List all integration statuses
|
|
5836
|
-
description: Returns integration installations in the organization. Use site or space with the matching target to efficiently scope the result to one resource.
|
|
6135
|
+
description: Returns integration installations in the organization. Use site or space with the matching target to efficiently scope the result to one resource. The target of each installation says whether it is installed on the organization, a space or a site.
|
|
6136
|
+
x-gitbook-mcp: true
|
|
5837
6137
|
tags:
|
|
5838
6138
|
- integrations
|
|
5839
6139
|
- critical
|
|
6140
|
+
security:
|
|
6141
|
+
- user: []
|
|
6142
|
+
- integration: []
|
|
6143
|
+
- integration-installation: []
|
|
6144
|
+
- oauth:
|
|
6145
|
+
- integration:read
|
|
5840
6146
|
parameters:
|
|
5841
6147
|
- $ref: "#/components/parameters/organizationId"
|
|
5842
6148
|
- $ref: "#/components/parameters/listPage"
|
|
@@ -6958,6 +7264,67 @@ paths:
|
|
|
6958
7264
|
"205":
|
|
6959
7265
|
description: Custom font deleted successfully.
|
|
6960
7266
|
/org/{organizationId}/imports:
|
|
7267
|
+
get:
|
|
7268
|
+
operationId: listImportRuns
|
|
7269
|
+
summary: List the import runs of an organization
|
|
7270
|
+
description: |
|
|
7271
|
+
Returns the import runs of the organization, most recent first. Runs left behind by an import that never reported back are returned as failed.
|
|
7272
|
+
tags:
|
|
7273
|
+
- imports
|
|
7274
|
+
x-gitbook-mcp: true
|
|
7275
|
+
security:
|
|
7276
|
+
- user: []
|
|
7277
|
+
- oauth:
|
|
7278
|
+
- space:read
|
|
7279
|
+
parameters:
|
|
7280
|
+
- $ref: "#/components/parameters/organizationId"
|
|
7281
|
+
- name: space
|
|
7282
|
+
in: query
|
|
7283
|
+
description: Only return the import runs targeting this space.
|
|
7284
|
+
schema:
|
|
7285
|
+
type: string
|
|
7286
|
+
- name: changeRequest
|
|
7287
|
+
in: query
|
|
7288
|
+
description: Only return the import runs targeting this change request.
|
|
7289
|
+
schema:
|
|
7290
|
+
type: string
|
|
7291
|
+
- name: site
|
|
7292
|
+
in: query
|
|
7293
|
+
description: Only return the import runs targeting a space of this site.
|
|
7294
|
+
schema:
|
|
7295
|
+
type: string
|
|
7296
|
+
- name: status
|
|
7297
|
+
in: query
|
|
7298
|
+
description: Only return the import runs in this status. `active` covers both `pending` and `in-progress`.
|
|
7299
|
+
schema:
|
|
7300
|
+
type: string
|
|
7301
|
+
enum:
|
|
7302
|
+
- active
|
|
7303
|
+
- pending
|
|
7304
|
+
- in-progress
|
|
7305
|
+
- completed
|
|
7306
|
+
- failed
|
|
7307
|
+
- cancelled
|
|
7308
|
+
- $ref: "#/components/parameters/listPage"
|
|
7309
|
+
- $ref: "#/components/parameters/listLimit"
|
|
7310
|
+
responses:
|
|
7311
|
+
"200":
|
|
7312
|
+
description: OK
|
|
7313
|
+
content:
|
|
7314
|
+
application/json:
|
|
7315
|
+
schema:
|
|
7316
|
+
allOf:
|
|
7317
|
+
- $ref: "#/components/schemas/List"
|
|
7318
|
+
- type: object
|
|
7319
|
+
required:
|
|
7320
|
+
- items
|
|
7321
|
+
properties:
|
|
7322
|
+
items:
|
|
7323
|
+
type: array
|
|
7324
|
+
items:
|
|
7325
|
+
$ref: "#/components/schemas/ContentImportRun"
|
|
7326
|
+
"404":
|
|
7327
|
+
$ref: "#/components/responses/NotFoundError"
|
|
6961
7328
|
post:
|
|
6962
7329
|
operationId: startImportRun
|
|
6963
7330
|
summary: Import content into a space from a website
|
|
@@ -6980,6 +7347,9 @@ paths:
|
|
|
6980
7347
|
$ref: "#/components/schemas/ContentImportSource"
|
|
6981
7348
|
target:
|
|
6982
7349
|
$ref: "#/components/schemas/ContentImportTarget"
|
|
7350
|
+
site:
|
|
7351
|
+
description: ID of the site the import is for, to list it among that site's imports. Only needed when the target space does not belong to the site yet — a site being set up, whose space is attached once the import has started. Otherwise the site is resolved from the space.
|
|
7352
|
+
type: string
|
|
6983
7353
|
enhance:
|
|
6984
7354
|
description: Enhance the imported content with AI
|
|
6985
7355
|
default: true
|
|
@@ -6998,6 +7368,31 @@ paths:
|
|
|
6998
7368
|
$ref: "#/components/responses/BadRequestError"
|
|
6999
7369
|
"404":
|
|
7000
7370
|
$ref: "#/components/responses/NotFoundError"
|
|
7371
|
+
/org/{organizationId}/imports/{importRunId}:
|
|
7372
|
+
get:
|
|
7373
|
+
operationId: getImportRun
|
|
7374
|
+
summary: Get an import run
|
|
7375
|
+
description: |
|
|
7376
|
+
Returns the import run. A run left behind by an import that never reported back is returned as failed.
|
|
7377
|
+
tags:
|
|
7378
|
+
- imports
|
|
7379
|
+
x-gitbook-mcp: true
|
|
7380
|
+
security:
|
|
7381
|
+
- user: []
|
|
7382
|
+
- oauth:
|
|
7383
|
+
- space:read
|
|
7384
|
+
parameters:
|
|
7385
|
+
- $ref: "#/components/parameters/organizationId"
|
|
7386
|
+
- $ref: "#/components/parameters/importRunId"
|
|
7387
|
+
responses:
|
|
7388
|
+
"200":
|
|
7389
|
+
description: OK
|
|
7390
|
+
content:
|
|
7391
|
+
application/json:
|
|
7392
|
+
schema:
|
|
7393
|
+
$ref: "#/components/schemas/ContentImportRun"
|
|
7394
|
+
"404":
|
|
7395
|
+
$ref: "#/components/responses/NotFoundError"
|
|
7001
7396
|
/org/{organizationId}/imports/{importRunId}/cancel:
|
|
7002
7397
|
post:
|
|
7003
7398
|
operationId: cancelImportRun
|
|
@@ -7010,7 +7405,7 @@ paths:
|
|
|
7010
7405
|
- $ref: "#/components/parameters/organizationId"
|
|
7011
7406
|
- $ref: "#/components/parameters/importRunId"
|
|
7012
7407
|
responses:
|
|
7013
|
-
"
|
|
7408
|
+
"200":
|
|
7014
7409
|
description: Import run canceled successfully.
|
|
7015
7410
|
content:
|
|
7016
7411
|
application/json:
|
|
@@ -7192,7 +7587,7 @@ paths:
|
|
|
7192
7587
|
- type: "null"
|
|
7193
7588
|
styleguide:
|
|
7194
7589
|
description: |
|
|
7195
|
-
Attach an existing
|
|
7590
|
+
Attach an existing style guide to the site by the ID of the style guide space, or `null` to detach the current one. The space must be a style guide owned by the same organization.
|
|
7196
7591
|
oneOf:
|
|
7197
7592
|
- type: string
|
|
7198
7593
|
- type: "null"
|
|
@@ -7585,9 +7980,10 @@ paths:
|
|
|
7585
7980
|
/orgs/{organizationId}/sites/{siteId}/structure/sort:
|
|
7586
7981
|
patch:
|
|
7587
7982
|
operationId: sortSiteStructure
|
|
7588
|
-
summary: Move a site
|
|
7589
|
-
description: Reorders
|
|
7983
|
+
summary: Move a site structure item to a new position
|
|
7984
|
+
description: Reorders a site space, section, section group, or external link relative to any sibling at the same structure level. Sorting changes sibling order only; move an item between the root and a group through that item's update operation first.
|
|
7590
7985
|
x-gitbook-mcp: true
|
|
7986
|
+
x-gitbook-return-preference: true
|
|
7591
7987
|
tags:
|
|
7592
7988
|
- sites
|
|
7593
7989
|
security:
|
|
@@ -7597,14 +7993,16 @@ paths:
|
|
|
7597
7993
|
parameters:
|
|
7598
7994
|
- $ref: "#/components/parameters/organizationId"
|
|
7599
7995
|
- $ref: "#/components/parameters/siteId"
|
|
7996
|
+
- $ref: "#/components/parameters/returnPreference"
|
|
7600
7997
|
requestBody:
|
|
7998
|
+
required: true
|
|
7601
7999
|
content:
|
|
7602
8000
|
application/json:
|
|
7603
8001
|
schema:
|
|
7604
8002
|
type: object
|
|
7605
8003
|
properties:
|
|
7606
8004
|
item:
|
|
7607
|
-
description:
|
|
8005
|
+
description: Pointer to the site space, section, section group, or external link being moved.
|
|
7608
8006
|
$ref: "#/components/schemas/SiteStructureItemPointer"
|
|
7609
8007
|
position:
|
|
7610
8008
|
description: The position to move the item to. When not provided the item is moved to the end of the site structure.
|
|
@@ -7619,6 +8017,11 @@ paths:
|
|
|
7619
8017
|
application/json:
|
|
7620
8018
|
schema:
|
|
7621
8019
|
$ref: "#/components/schemas/SiteStructureItem"
|
|
8020
|
+
"204":
|
|
8021
|
+
description: Item moved without returning its representation
|
|
8022
|
+
headers:
|
|
8023
|
+
Preference-Applied:
|
|
8024
|
+
$ref: "#/components/headers/returnPreferenceApplied"
|
|
7622
8025
|
"400":
|
|
7623
8026
|
description: Invalid move position provided
|
|
7624
8027
|
$ref: "#/components/responses/BadRequestError"
|
|
@@ -7872,8 +8275,9 @@ paths:
|
|
|
7872
8275
|
post:
|
|
7873
8276
|
operationId: addSpaceToSite
|
|
7874
8277
|
summary: Add a space to a site as a content source
|
|
7875
|
-
description:
|
|
8278
|
+
description: Pass an existing space ID to link it, or pass `null` to create and link a new space. New spaces are blank unless a template is provided.
|
|
7876
8279
|
x-gitbook-mcp: true
|
|
8280
|
+
x-gitbook-return-preference: true
|
|
7877
8281
|
tags:
|
|
7878
8282
|
- site-spaces
|
|
7879
8283
|
security:
|
|
@@ -7883,6 +8287,7 @@ paths:
|
|
|
7883
8287
|
parameters:
|
|
7884
8288
|
- $ref: "#/components/parameters/organizationId"
|
|
7885
8289
|
- $ref: "#/components/parameters/siteId"
|
|
8290
|
+
- $ref: "#/components/parameters/returnPreference"
|
|
7886
8291
|
requestBody:
|
|
7887
8292
|
required: true
|
|
7888
8293
|
content:
|
|
@@ -7891,20 +8296,28 @@ paths:
|
|
|
7891
8296
|
type: object
|
|
7892
8297
|
properties:
|
|
7893
8298
|
spaceId:
|
|
7894
|
-
|
|
7895
|
-
|
|
8299
|
+
oneOf:
|
|
8300
|
+
- type: string
|
|
8301
|
+
- type: "null"
|
|
8302
|
+
description: Pass the ID of an existing space or `null` to create a new space.
|
|
8303
|
+
template:
|
|
8304
|
+
$ref: "#/components/schemas/ApplySpaceTemplate"
|
|
8305
|
+
description: Template for the new space when `spaceId` is `null`. Templates that provision organization-level resources, such as OpenAPI specifications, are not supported by this site-scoped operation.
|
|
7896
8306
|
sectionId:
|
|
7897
8307
|
type: string
|
|
7898
8308
|
description: ID of the section to add the space to. If not provided, the space will be added to the default section or at the root level if the site has no sections.
|
|
7899
8309
|
draft:
|
|
7900
8310
|
type: boolean
|
|
7901
8311
|
default: false
|
|
7902
|
-
description: Whether the site space should be created as draft. Defaults to false.
|
|
8312
|
+
description: Whether the site space should be created as draft. Defaults to false. Editors can set this to true to create draft content on a non-empty site. Creating live content and adding the first content require Creator permission.
|
|
7903
8313
|
pageId:
|
|
7904
8314
|
oneOf:
|
|
7905
8315
|
- type: string
|
|
7906
8316
|
- type: "null"
|
|
7907
|
-
description: Custom home page within
|
|
8317
|
+
description: Custom home page within an existing space, rendered at the site space's path root instead of the space's default landing page. Providing it when `spaceId` is `null` returns a 400 error.
|
|
8318
|
+
title:
|
|
8319
|
+
$ref: "#/components/schemas/SiteTitle"
|
|
8320
|
+
description: Site-specific title override for the variant. Also used as the space title when `spaceId` is `null` and no template is provided.
|
|
7908
8321
|
required:
|
|
7909
8322
|
- spaceId
|
|
7910
8323
|
responses:
|
|
@@ -7919,6 +8332,11 @@ paths:
|
|
|
7919
8332
|
application/json:
|
|
7920
8333
|
schema:
|
|
7921
8334
|
$ref: "#/components/schemas/SiteSpace"
|
|
8335
|
+
"204":
|
|
8336
|
+
description: Space added to the site without returning its representation
|
|
8337
|
+
headers:
|
|
8338
|
+
Preference-Applied:
|
|
8339
|
+
$ref: "#/components/headers/returnPreferenceApplied"
|
|
7922
8340
|
get:
|
|
7923
8341
|
operationId: listSiteSpaces
|
|
7924
8342
|
summary: List all spaces linked to a site as content sources
|
|
@@ -8049,6 +8467,7 @@ paths:
|
|
|
8049
8467
|
summary: Update a section group in a site's navigation structure
|
|
8050
8468
|
description: Updates a section group's properties in the site's navigation structure.
|
|
8051
8469
|
x-gitbook-mcp: true
|
|
8470
|
+
x-gitbook-return-preference: true
|
|
8052
8471
|
tags:
|
|
8053
8472
|
- site-section-groups
|
|
8054
8473
|
security:
|
|
@@ -8059,6 +8478,7 @@ paths:
|
|
|
8059
8478
|
- $ref: "#/components/parameters/organizationId"
|
|
8060
8479
|
- $ref: "#/components/parameters/siteId"
|
|
8061
8480
|
- $ref: "#/components/parameters/siteSectionGroupId"
|
|
8481
|
+
- $ref: "#/components/parameters/returnPreference"
|
|
8062
8482
|
requestBody:
|
|
8063
8483
|
required: true
|
|
8064
8484
|
content:
|
|
@@ -8084,6 +8504,11 @@ paths:
|
|
|
8084
8504
|
application/json:
|
|
8085
8505
|
schema:
|
|
8086
8506
|
$ref: "#/components/schemas/SiteSectionGroup"
|
|
8507
|
+
"204":
|
|
8508
|
+
description: Site section group updated without returning its representation
|
|
8509
|
+
headers:
|
|
8510
|
+
Preference-Applied:
|
|
8511
|
+
$ref: "#/components/headers/returnPreferenceApplied"
|
|
8087
8512
|
delete:
|
|
8088
8513
|
operationId: deleteSiteSectionGroupById
|
|
8089
8514
|
summary: Delete a site section group
|
|
@@ -8106,7 +8531,7 @@ paths:
|
|
|
8106
8531
|
post:
|
|
8107
8532
|
operationId: addSectionToSite
|
|
8108
8533
|
summary: Add a new navigation section to a site backed by a space
|
|
8109
|
-
description: Creates a new top-level navigation section in the site
|
|
8534
|
+
description: Creates a new top-level navigation section in the site. The section appears as a tab or sidebar entry in the site navigation. Pass an existing space ID to link it as the section's primary content source, or pass `null` to create and link a new space. New spaces are blank unless a template is provided.
|
|
8110
8535
|
x-gitbook-mcp: true
|
|
8111
8536
|
tags:
|
|
8112
8537
|
- site-sections
|
|
@@ -8125,19 +8550,29 @@ paths:
|
|
|
8125
8550
|
type: object
|
|
8126
8551
|
properties:
|
|
8127
8552
|
spaceId:
|
|
8128
|
-
|
|
8129
|
-
|
|
8553
|
+
oneOf:
|
|
8554
|
+
- type: string
|
|
8555
|
+
- type: "null"
|
|
8556
|
+
description: Pass the ID of an existing space or pass `null` to create a new space. The space will be added to the section as a site space variant.
|
|
8557
|
+
template:
|
|
8558
|
+
$ref: "#/components/schemas/ApplySpaceTemplate"
|
|
8559
|
+
description: Template for the new space when `spaceId` is `null`. Templates that provision organization-level resources, such as OpenAPI specifications, are not supported by this site-scoped operation.
|
|
8130
8560
|
title:
|
|
8131
8561
|
oneOf:
|
|
8132
8562
|
- $ref: "#/components/schemas/SiteSectionTitle"
|
|
8133
8563
|
- type: "null"
|
|
8564
|
+
description: Section title. Also used as the space title when `spaceId` is `null` and no template is provided.
|
|
8134
8565
|
icon:
|
|
8135
8566
|
oneOf:
|
|
8136
8567
|
- $ref: "#/components/schemas/Icon"
|
|
8137
8568
|
- type: "null"
|
|
8138
8569
|
draft:
|
|
8139
8570
|
type: boolean
|
|
8140
|
-
|
|
8571
|
+
default: false
|
|
8572
|
+
description: Whether the section should be created in draft mode. Defaults to false. Editors can set this to true to create draft content after sections are enabled. Creating live content requires Creator permission; enabling sections requires Admin permission.
|
|
8573
|
+
pageId:
|
|
8574
|
+
type: string
|
|
8575
|
+
description: Custom home page within an existing space, rendered at the section's path root instead of the space's default landing page. Providing it when `spaceId` is `null` returns a 400 error.
|
|
8141
8576
|
siteSectionGroupId:
|
|
8142
8577
|
type: string
|
|
8143
8578
|
description: ID of the section group to create the section in
|
|
@@ -8194,6 +8629,7 @@ paths:
|
|
|
8194
8629
|
summary: Update a navigation section in a site
|
|
8195
8630
|
description: Updates a navigation section's configuration in the site structure.
|
|
8196
8631
|
x-gitbook-mcp: true
|
|
8632
|
+
x-gitbook-return-preference: true
|
|
8197
8633
|
tags:
|
|
8198
8634
|
- site-sections
|
|
8199
8635
|
security:
|
|
@@ -8204,6 +8640,7 @@ paths:
|
|
|
8204
8640
|
- $ref: "#/components/parameters/organizationId"
|
|
8205
8641
|
- $ref: "#/components/parameters/siteId"
|
|
8206
8642
|
- $ref: "#/components/parameters/siteSectionId"
|
|
8643
|
+
- $ref: "#/components/parameters/returnPreference"
|
|
8207
8644
|
requestBody:
|
|
8208
8645
|
required: true
|
|
8209
8646
|
content:
|
|
@@ -8250,6 +8687,11 @@ paths:
|
|
|
8250
8687
|
application/json:
|
|
8251
8688
|
schema:
|
|
8252
8689
|
$ref: "#/components/schemas/SiteSection"
|
|
8690
|
+
"204":
|
|
8691
|
+
description: Site section updated without returning its representation
|
|
8692
|
+
headers:
|
|
8693
|
+
Preference-Applied:
|
|
8694
|
+
$ref: "#/components/headers/returnPreferenceApplied"
|
|
8253
8695
|
delete:
|
|
8254
8696
|
operationId: deleteSiteSectionById
|
|
8255
8697
|
summary: Delete a site section
|
|
@@ -8268,6 +8710,181 @@ paths:
|
|
|
8268
8710
|
description: Site section did not exist
|
|
8269
8711
|
"205":
|
|
8270
8712
|
description: Site section has been deleted
|
|
8713
|
+
/orgs/{organizationId}/sites/{siteId}/external-links:
|
|
8714
|
+
post:
|
|
8715
|
+
operationId: addExternalLinkToSite
|
|
8716
|
+
summary: Add an external link to a site's navigation
|
|
8717
|
+
description: Creates an external navigation link at the site root or in a section group. External links require a section-based site structure and cannot be placed inside a section. The destination must be an absolute HTTP or HTTPS URL. Draft links and links whose adaptive condition does not match are omitted from published structure responses. Use the generic structure sort operation after creation to change sibling order.
|
|
8718
|
+
x-gitbook-mcp: true
|
|
8719
|
+
tags:
|
|
8720
|
+
- site-external-links
|
|
8721
|
+
security:
|
|
8722
|
+
- user: []
|
|
8723
|
+
- oauth:
|
|
8724
|
+
- site:write
|
|
8725
|
+
parameters:
|
|
8726
|
+
- $ref: "#/components/parameters/organizationId"
|
|
8727
|
+
- $ref: "#/components/parameters/siteId"
|
|
8728
|
+
requestBody:
|
|
8729
|
+
required: true
|
|
8730
|
+
content:
|
|
8731
|
+
application/json:
|
|
8732
|
+
schema:
|
|
8733
|
+
type: object
|
|
8734
|
+
properties:
|
|
8735
|
+
title:
|
|
8736
|
+
$ref: "#/components/schemas/SiteSectionTitle"
|
|
8737
|
+
localizedTitle:
|
|
8738
|
+
$ref: "#/components/schemas/LocalizedString128"
|
|
8739
|
+
description:
|
|
8740
|
+
oneOf:
|
|
8741
|
+
- $ref: "#/components/schemas/SiteSectionDescription"
|
|
8742
|
+
- type: "null"
|
|
8743
|
+
localizedDescription:
|
|
8744
|
+
oneOf:
|
|
8745
|
+
- $ref: "#/components/schemas/LocalizedString256"
|
|
8746
|
+
- type: "null"
|
|
8747
|
+
icon:
|
|
8748
|
+
oneOf:
|
|
8749
|
+
- $ref: "#/components/schemas/Icon"
|
|
8750
|
+
- type: "null"
|
|
8751
|
+
url:
|
|
8752
|
+
$ref: "#/components/schemas/URL"
|
|
8753
|
+
description: Absolute HTTP or HTTPS destination URL
|
|
8754
|
+
parent:
|
|
8755
|
+
type: string
|
|
8756
|
+
description: ID of the section group to create the link in. Omit to place it at the site root.
|
|
8757
|
+
draft:
|
|
8758
|
+
type: boolean
|
|
8759
|
+
description: Whether the external link should be created in draft mode
|
|
8760
|
+
condition:
|
|
8761
|
+
oneOf:
|
|
8762
|
+
- $ref: "#/components/schemas/Expression"
|
|
8763
|
+
- type: "null"
|
|
8764
|
+
description: Adaptive condition controlling whether visitors see the link
|
|
8765
|
+
required:
|
|
8766
|
+
- title
|
|
8767
|
+
- url
|
|
8768
|
+
responses:
|
|
8769
|
+
"201":
|
|
8770
|
+
description: External link added to the site
|
|
8771
|
+
headers:
|
|
8772
|
+
Location:
|
|
8773
|
+
description: API URL for the newly created external link
|
|
8774
|
+
schema:
|
|
8775
|
+
type: string
|
|
8776
|
+
content:
|
|
8777
|
+
application/json:
|
|
8778
|
+
schema:
|
|
8779
|
+
$ref: "#/components/schemas/SiteExternalLink"
|
|
8780
|
+
"400":
|
|
8781
|
+
description: The site has a simple structure or the parent group is invalid
|
|
8782
|
+
$ref: "#/components/responses/BadRequestError"
|
|
8783
|
+
default:
|
|
8784
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
8785
|
+
/orgs/{organizationId}/sites/{siteId}/external-links/{siteExternalLinkId}:
|
|
8786
|
+
patch:
|
|
8787
|
+
operationId: updateSiteExternalLinkById
|
|
8788
|
+
summary: Update an external link in a site's navigation
|
|
8789
|
+
description: Updates an external navigation link. Set parent to a section group ID to move the link into that group, or null to move it to the site root; links cannot be placed inside a section. A changed destination must remain an absolute HTTP or HTTPS URL. Draft and adaptive-condition fields control visibility. Use the generic structure sort operation after changing the parent to adjust the link's sibling order.
|
|
8790
|
+
x-gitbook-mcp: true
|
|
8791
|
+
x-gitbook-return-preference: true
|
|
8792
|
+
tags:
|
|
8793
|
+
- site-external-links
|
|
8794
|
+
security:
|
|
8795
|
+
- user: []
|
|
8796
|
+
- oauth:
|
|
8797
|
+
- site:write
|
|
8798
|
+
parameters:
|
|
8799
|
+
- $ref: "#/components/parameters/organizationId"
|
|
8800
|
+
- $ref: "#/components/parameters/siteId"
|
|
8801
|
+
- $ref: "#/components/parameters/siteExternalLinkId"
|
|
8802
|
+
- $ref: "#/components/parameters/returnPreference"
|
|
8803
|
+
requestBody:
|
|
8804
|
+
required: true
|
|
8805
|
+
content:
|
|
8806
|
+
application/json:
|
|
8807
|
+
schema:
|
|
8808
|
+
type: object
|
|
8809
|
+
properties:
|
|
8810
|
+
title:
|
|
8811
|
+
$ref: "#/components/schemas/SiteSectionTitle"
|
|
8812
|
+
localizedTitle:
|
|
8813
|
+
oneOf:
|
|
8814
|
+
- $ref: "#/components/schemas/LocalizedString128"
|
|
8815
|
+
- type: "null"
|
|
8816
|
+
description:
|
|
8817
|
+
oneOf:
|
|
8818
|
+
- $ref: "#/components/schemas/SiteSectionDescription"
|
|
8819
|
+
- type: "null"
|
|
8820
|
+
localizedDescription:
|
|
8821
|
+
oneOf:
|
|
8822
|
+
- $ref: "#/components/schemas/LocalizedString256"
|
|
8823
|
+
- type: "null"
|
|
8824
|
+
icon:
|
|
8825
|
+
oneOf:
|
|
8826
|
+
- $ref: "#/components/schemas/Icon"
|
|
8827
|
+
- type: "null"
|
|
8828
|
+
url:
|
|
8829
|
+
$ref: "#/components/schemas/URL"
|
|
8830
|
+
description: Absolute HTTP or HTTPS destination URL
|
|
8831
|
+
parent:
|
|
8832
|
+
description: ID of the section group to move the link into. Set to null to move it to the site root.
|
|
8833
|
+
oneOf:
|
|
8834
|
+
- type: string
|
|
8835
|
+
- type: "null"
|
|
8836
|
+
draft:
|
|
8837
|
+
type: boolean
|
|
8838
|
+
description: Whether the external link should be kept in draft mode
|
|
8839
|
+
condition:
|
|
8840
|
+
oneOf:
|
|
8841
|
+
- $ref: "#/components/schemas/Expression"
|
|
8842
|
+
- type: "null"
|
|
8843
|
+
description: Adaptive condition controlling whether visitors see the link
|
|
8844
|
+
responses:
|
|
8845
|
+
"200":
|
|
8846
|
+
description: External link updated
|
|
8847
|
+
content:
|
|
8848
|
+
application/json:
|
|
8849
|
+
schema:
|
|
8850
|
+
$ref: "#/components/schemas/SiteExternalLink"
|
|
8851
|
+
"204":
|
|
8852
|
+
description: External link updated without returning its representation
|
|
8853
|
+
headers:
|
|
8854
|
+
Preference-Applied:
|
|
8855
|
+
$ref: "#/components/headers/returnPreferenceApplied"
|
|
8856
|
+
"400":
|
|
8857
|
+
description: The parent group or destination URL is invalid
|
|
8858
|
+
$ref: "#/components/responses/BadRequestError"
|
|
8859
|
+
"404":
|
|
8860
|
+
description: Site or external link not found
|
|
8861
|
+
$ref: "#/components/responses/NotFoundError"
|
|
8862
|
+
default:
|
|
8863
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
8864
|
+
delete:
|
|
8865
|
+
operationId: deleteSiteExternalLinkById
|
|
8866
|
+
summary: Delete an external link from a site's navigation
|
|
8867
|
+
description: Deletes an external link. This operation is intentionally unavailable to MCP clients.
|
|
8868
|
+
tags:
|
|
8869
|
+
- site-external-links
|
|
8870
|
+
security:
|
|
8871
|
+
- user: []
|
|
8872
|
+
- oauth:
|
|
8873
|
+
- site:write
|
|
8874
|
+
parameters:
|
|
8875
|
+
- $ref: "#/components/parameters/organizationId"
|
|
8876
|
+
- $ref: "#/components/parameters/siteId"
|
|
8877
|
+
- $ref: "#/components/parameters/siteExternalLinkId"
|
|
8878
|
+
responses:
|
|
8879
|
+
"204":
|
|
8880
|
+
description: External link did not exist
|
|
8881
|
+
"205":
|
|
8882
|
+
description: External link has been deleted
|
|
8883
|
+
"404":
|
|
8884
|
+
description: Site not found
|
|
8885
|
+
$ref: "#/components/responses/NotFoundError"
|
|
8886
|
+
default:
|
|
8887
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
8271
8888
|
/orgs/{organizationId}/sites/{siteId}/search:
|
|
8272
8889
|
post:
|
|
8273
8890
|
operationId: searchSiteContent
|
|
@@ -8402,6 +9019,10 @@ paths:
|
|
|
8402
9019
|
pageId:
|
|
8403
9020
|
description: ID of the page the feedback is about.
|
|
8404
9021
|
type: string
|
|
9022
|
+
source:
|
|
9023
|
+
description: |
|
|
9024
|
+
Surface the feedback was submitted from. When omitted, the feedback is recorded with an unknown source.
|
|
9025
|
+
$ref: "#/components/schemas/AgentFeedbackSource"
|
|
8405
9026
|
required:
|
|
8406
9027
|
- feedback
|
|
8407
9028
|
- url
|
|
@@ -8669,6 +9290,11 @@ paths:
|
|
|
8669
9290
|
description: Filter findings by associated site topic ID.
|
|
8670
9291
|
schema:
|
|
8671
9292
|
type: string
|
|
9293
|
+
- name: question
|
|
9294
|
+
in: query
|
|
9295
|
+
description: Filter findings that reference the given site question ID as evidence.
|
|
9296
|
+
schema:
|
|
9297
|
+
type: string
|
|
8672
9298
|
- name: status
|
|
8673
9299
|
in: query
|
|
8674
9300
|
description: Filter findings by status.
|
|
@@ -9206,6 +9832,8 @@ paths:
|
|
|
9206
9832
|
get:
|
|
9207
9833
|
operationId: getSiteTopicById
|
|
9208
9834
|
summary: Get a topic
|
|
9835
|
+
description: Retrieves a single topic of a site by its ID, including its label, its parent topic when it is a subtopic, its summary and usage settings, and its page, record, finding and Ask AI question counts. Use this when you have a topic ID and need the topic's label or its stats.
|
|
9836
|
+
x-gitbook-mcp: true
|
|
9209
9837
|
tags:
|
|
9210
9838
|
- site-context
|
|
9211
9839
|
security:
|
|
@@ -9721,6 +10349,7 @@ paths:
|
|
|
9721
10349
|
summary: Update a space linked to a site
|
|
9722
10350
|
description: Updates the configuration of a site space. Use this to remap a site space to a different space, hide it from navigation, or promote it from draft to live.
|
|
9723
10351
|
x-gitbook-mcp: true
|
|
10352
|
+
x-gitbook-return-preference: true
|
|
9724
10353
|
tags:
|
|
9725
10354
|
- site-spaces
|
|
9726
10355
|
security:
|
|
@@ -9731,6 +10360,7 @@ paths:
|
|
|
9731
10360
|
- $ref: "#/components/parameters/organizationId"
|
|
9732
10361
|
- $ref: "#/components/parameters/siteId"
|
|
9733
10362
|
- $ref: "#/components/parameters/siteSpaceId"
|
|
10363
|
+
- $ref: "#/components/parameters/returnPreference"
|
|
9734
10364
|
requestBody:
|
|
9735
10365
|
required: true
|
|
9736
10366
|
content:
|
|
@@ -9766,6 +10396,11 @@ paths:
|
|
|
9766
10396
|
application/json:
|
|
9767
10397
|
schema:
|
|
9768
10398
|
$ref: "#/components/schemas/SiteSpace"
|
|
10399
|
+
"204":
|
|
10400
|
+
description: Site space updated without returning its representation
|
|
10401
|
+
headers:
|
|
10402
|
+
Preference-Applied:
|
|
10403
|
+
$ref: "#/components/headers/returnPreferenceApplied"
|
|
9769
10404
|
delete:
|
|
9770
10405
|
operationId: deleteSiteSpaceById
|
|
9771
10406
|
summary: Delete a site space
|
|
@@ -10618,8 +11253,8 @@ paths:
|
|
|
10618
11253
|
/orgs/{organizationId}/sites/{siteId}/styleguide:
|
|
10619
11254
|
post:
|
|
10620
11255
|
operationId: createSiteStyleguideById
|
|
10621
|
-
summary: Create or retrieve the
|
|
10622
|
-
description: Ensures the site has a dedicated
|
|
11256
|
+
summary: Create or retrieve the style guide space for a site
|
|
11257
|
+
description: Ensures the site has a dedicated style guide space and returns it. The style guide defines writing style and tone guidelines that the AI editor agent references when generating or refining content for the site. If a style guide already exists, this is idempotent and returns the existing space.
|
|
10623
11258
|
x-gitbook-mcp: true
|
|
10624
11259
|
tags:
|
|
10625
11260
|
- sites
|
|
@@ -10640,10 +11275,10 @@ paths:
|
|
|
10640
11275
|
template:
|
|
10641
11276
|
type: string
|
|
10642
11277
|
description: |
|
|
10643
|
-
Built-in template id to seed the
|
|
11278
|
+
Built-in template id to seed the style guide content with. Omit (or send no body) to create a blank style guide.
|
|
10644
11279
|
responses:
|
|
10645
11280
|
"200":
|
|
10646
|
-
description:
|
|
11281
|
+
description: Style guide created or already exists.
|
|
10647
11282
|
content:
|
|
10648
11283
|
application/json:
|
|
10649
11284
|
schema:
|
|
@@ -10764,7 +11399,7 @@ paths:
|
|
|
10764
11399
|
post:
|
|
10765
11400
|
operationId: createSiteRedirect
|
|
10766
11401
|
summary: Create a URL redirect rule for a site
|
|
10767
|
-
description: Creates a new redirect rule mapping a source path to a destination URL or content reference. Use the bulk upsert endpoint instead when creating many redirects at once.
|
|
11402
|
+
description: Creates a new redirect rule mapping a source path to a destination URL or content reference. Creating a live redirect also resolves open broken-link findings for the same source path. Use the bulk upsert endpoint instead when creating many redirects at once.
|
|
10768
11403
|
x-gitbook-mcp: true
|
|
10769
11404
|
tags:
|
|
10770
11405
|
- site-redirects
|
|
@@ -11009,6 +11644,11 @@ paths:
|
|
|
11009
11644
|
schema:
|
|
11010
11645
|
type: boolean
|
|
11011
11646
|
default: false
|
|
11647
|
+
- name: orderBy
|
|
11648
|
+
in: query
|
|
11649
|
+
description: Sort redirects by the given field.
|
|
11650
|
+
schema:
|
|
11651
|
+
$ref: "#/components/schemas/SiteRedirectOrderBy"
|
|
11012
11652
|
responses:
|
|
11013
11653
|
"200":
|
|
11014
11654
|
description: The list of redirects for the site.
|
|
@@ -11847,6 +12487,12 @@ paths:
|
|
|
11847
12487
|
patch:
|
|
11848
12488
|
operationId: updateGitSyncInstallationById
|
|
11849
12489
|
summary: Update a Git Sync installation configuration
|
|
12490
|
+
description: |
|
|
12491
|
+
Updates the installation configuration, then queues a sync operation using the new settings.
|
|
12492
|
+
A `git` priority queues an import from the selected repository and branch into GitBook; a
|
|
12493
|
+
`gitbook` priority queues an export from GitBook to the repository. Site imports require a
|
|
12494
|
+
`gitbook-docs.yaml` file at the configured project directory and return a conflict without saving or
|
|
12495
|
+
queuing the sync when the file is missing.
|
|
11850
12496
|
tags:
|
|
11851
12497
|
- git
|
|
11852
12498
|
security:
|
|
@@ -11879,7 +12525,42 @@ paths:
|
|
|
11879
12525
|
"404":
|
|
11880
12526
|
$ref: "#/components/responses/NotFoundError"
|
|
11881
12527
|
"409":
|
|
11882
|
-
|
|
12528
|
+
description: The site Git Sync configuration is missing from the repository
|
|
12529
|
+
content:
|
|
12530
|
+
application/json:
|
|
12531
|
+
schema:
|
|
12532
|
+
allOf:
|
|
12533
|
+
- $ref: "#/components/schemas/Error"
|
|
12534
|
+
- type: object
|
|
12535
|
+
required:
|
|
12536
|
+
- error
|
|
12537
|
+
properties:
|
|
12538
|
+
error:
|
|
12539
|
+
type: object
|
|
12540
|
+
required:
|
|
12541
|
+
- type
|
|
12542
|
+
- details
|
|
12543
|
+
properties:
|
|
12544
|
+
type:
|
|
12545
|
+
type: string
|
|
12546
|
+
enum:
|
|
12547
|
+
- missing_site_git_sync_config
|
|
12548
|
+
details:
|
|
12549
|
+
type: object
|
|
12550
|
+
required:
|
|
12551
|
+
- path
|
|
12552
|
+
- branch
|
|
12553
|
+
- prompt
|
|
12554
|
+
properties:
|
|
12555
|
+
path:
|
|
12556
|
+
type: string
|
|
12557
|
+
description: Repository-relative path where `gitbook-docs.yaml` is required.
|
|
12558
|
+
branch:
|
|
12559
|
+
type: string
|
|
12560
|
+
description: Repository branch where `gitbook-docs.yaml` is required.
|
|
12561
|
+
prompt:
|
|
12562
|
+
type: string
|
|
12563
|
+
description: Prompt for a coding agent to create and commit the missing file.
|
|
11883
12564
|
delete:
|
|
11884
12565
|
operationId: uninstallGitSyncInstallation
|
|
11885
12566
|
summary: Uninstall a Git Sync installation
|
|
@@ -11960,6 +12641,47 @@ paths:
|
|
|
11960
12641
|
$ref: "#/components/responses/UnauthorizedError"
|
|
11961
12642
|
"404":
|
|
11962
12643
|
$ref: "#/components/responses/NotFoundError"
|
|
12644
|
+
/git/installations/{installationId}/github/repos/{accountName}/{repositoryName}/file:
|
|
12645
|
+
get:
|
|
12646
|
+
operationId: getGitHubRepoFileForGitSyncInstallation
|
|
12647
|
+
summary: Get a file from a GitHub repository for a Git Sync installation
|
|
12648
|
+
tags:
|
|
12649
|
+
- git
|
|
12650
|
+
security:
|
|
12651
|
+
- user: []
|
|
12652
|
+
parameters:
|
|
12653
|
+
- $ref: "#/components/parameters/installationId"
|
|
12654
|
+
- name: accountName
|
|
12655
|
+
in: path
|
|
12656
|
+
required: true
|
|
12657
|
+
schema:
|
|
12658
|
+
type: string
|
|
12659
|
+
- name: repositoryName
|
|
12660
|
+
in: path
|
|
12661
|
+
required: true
|
|
12662
|
+
schema:
|
|
12663
|
+
type: string
|
|
12664
|
+
- name: path
|
|
12665
|
+
in: query
|
|
12666
|
+
required: true
|
|
12667
|
+
schema:
|
|
12668
|
+
type: string
|
|
12669
|
+
- name: ref
|
|
12670
|
+
in: query
|
|
12671
|
+
required: true
|
|
12672
|
+
schema:
|
|
12673
|
+
type: string
|
|
12674
|
+
responses:
|
|
12675
|
+
"200":
|
|
12676
|
+
description: File found in the selected GitHub repository
|
|
12677
|
+
content:
|
|
12678
|
+
application/json:
|
|
12679
|
+
schema:
|
|
12680
|
+
$ref: "#/components/schemas/GitSyncRepositoryFile"
|
|
12681
|
+
"401":
|
|
12682
|
+
$ref: "#/components/responses/UnauthorizedError"
|
|
12683
|
+
"404":
|
|
12684
|
+
$ref: "#/components/responses/NotFoundError"
|
|
11963
12685
|
/git/installations/{installationId}/gitlab/projects:
|
|
11964
12686
|
get:
|
|
11965
12687
|
operationId: listGitLabProjectsForGitSyncInstallation
|
|
@@ -12021,6 +12743,42 @@ paths:
|
|
|
12021
12743
|
$ref: "#/components/responses/UnauthorizedError"
|
|
12022
12744
|
"404":
|
|
12023
12745
|
$ref: "#/components/responses/NotFoundError"
|
|
12746
|
+
/git/installations/{installationId}/gitlab/projects/{projectId}/file:
|
|
12747
|
+
get:
|
|
12748
|
+
operationId: getGitLabProjectFileForGitSyncInstallation
|
|
12749
|
+
summary: Get a file from a GitLab project for a Git Sync installation
|
|
12750
|
+
tags:
|
|
12751
|
+
- git
|
|
12752
|
+
security:
|
|
12753
|
+
- user: []
|
|
12754
|
+
parameters:
|
|
12755
|
+
- $ref: "#/components/parameters/installationId"
|
|
12756
|
+
- name: projectId
|
|
12757
|
+
in: path
|
|
12758
|
+
required: true
|
|
12759
|
+
schema:
|
|
12760
|
+
type: number
|
|
12761
|
+
- name: path
|
|
12762
|
+
in: query
|
|
12763
|
+
required: true
|
|
12764
|
+
schema:
|
|
12765
|
+
type: string
|
|
12766
|
+
- name: ref
|
|
12767
|
+
in: query
|
|
12768
|
+
required: true
|
|
12769
|
+
schema:
|
|
12770
|
+
type: string
|
|
12771
|
+
responses:
|
|
12772
|
+
"200":
|
|
12773
|
+
description: File found in the selected GitLab project
|
|
12774
|
+
content:
|
|
12775
|
+
application/json:
|
|
12776
|
+
schema:
|
|
12777
|
+
$ref: "#/components/schemas/GitSyncRepositoryFile"
|
|
12778
|
+
"401":
|
|
12779
|
+
$ref: "#/components/responses/UnauthorizedError"
|
|
12780
|
+
"404":
|
|
12781
|
+
$ref: "#/components/responses/NotFoundError"
|
|
12024
12782
|
components:
|
|
12025
12783
|
securitySchemes:
|
|
12026
12784
|
user:
|
|
@@ -12067,6 +12825,11 @@ components:
|
|
|
12067
12825
|
site:insights:read: Read site analytics and insights.
|
|
12068
12826
|
site:ask: Ask AI questions across a site's content.
|
|
12069
12827
|
site:search: Search across a site's content.
|
|
12828
|
+
integration:read: Read integrations and where they are installed.
|
|
12829
|
+
integration:installations:read: Read integration installations and their configuration, which can include credentials for third-party services.
|
|
12830
|
+
integration:installations:write: Install and configure integrations on an organization, its spaces and its sites.
|
|
12831
|
+
integration:publish: Publish integrations, which can request their own permissions on your content, and route their events to a development tunnel.
|
|
12832
|
+
integration:delete: Unpublish integrations, permanently deleting them and every installation of them.
|
|
12070
12833
|
openapi:read: Read OpenAPI specifications.
|
|
12071
12834
|
openapi:write: Create, update and delete OpenAPI specifications.
|
|
12072
12835
|
parameters:
|
|
@@ -12228,6 +12991,16 @@ components:
|
|
|
12228
12991
|
description: The unique ID of the change request or its number identifier in the space
|
|
12229
12992
|
schema:
|
|
12230
12993
|
$ref: "#/components/schemas/EntityId"
|
|
12994
|
+
returnPreference:
|
|
12995
|
+
in: header
|
|
12996
|
+
name: prefer
|
|
12997
|
+
description: Control whether a successful response includes the updated resource representation.
|
|
12998
|
+
required: false
|
|
12999
|
+
schema:
|
|
13000
|
+
type: string
|
|
13001
|
+
enum:
|
|
13002
|
+
- return=minimal
|
|
13003
|
+
- return=representation
|
|
12231
13004
|
reviewId:
|
|
12232
13005
|
name: reviewId
|
|
12233
13006
|
in: path
|
|
@@ -12525,6 +13298,13 @@ components:
|
|
|
12525
13298
|
description: The unique id of the section within a site
|
|
12526
13299
|
schema:
|
|
12527
13300
|
type: string
|
|
13301
|
+
siteExternalLinkId:
|
|
13302
|
+
name: siteExternalLinkId
|
|
13303
|
+
in: path
|
|
13304
|
+
required: true
|
|
13305
|
+
description: The unique ID of the site external link
|
|
13306
|
+
schema:
|
|
13307
|
+
type: string
|
|
12528
13308
|
siteContextRecordId:
|
|
12529
13309
|
name: siteContextRecordId
|
|
12530
13310
|
in: path
|
|
@@ -13079,6 +13859,9 @@ components:
|
|
|
13079
13859
|
- state
|
|
13080
13860
|
- direction
|
|
13081
13861
|
- startedAt
|
|
13862
|
+
operationTimeout:
|
|
13863
|
+
type: integer
|
|
13864
|
+
description: How long an operation is allowed to run before it is terminated (in milliseconds).
|
|
13082
13865
|
updatedAt:
|
|
13083
13866
|
description: When the Git provider details were last updated
|
|
13084
13867
|
$ref: "#/components/schemas/Timestamp"
|
|
@@ -13086,6 +13869,137 @@ components:
|
|
|
13086
13869
|
- installationId
|
|
13087
13870
|
- installationProvider
|
|
13088
13871
|
- installationStatus
|
|
13872
|
+
ContentImportSource:
|
|
13873
|
+
oneOf:
|
|
13874
|
+
- type: object
|
|
13875
|
+
properties:
|
|
13876
|
+
type:
|
|
13877
|
+
type: string
|
|
13878
|
+
enum:
|
|
13879
|
+
- website
|
|
13880
|
+
url:
|
|
13881
|
+
$ref: "#/components/schemas/URL"
|
|
13882
|
+
required:
|
|
13883
|
+
- type
|
|
13884
|
+
- url
|
|
13885
|
+
- type: object
|
|
13886
|
+
properties:
|
|
13887
|
+
type:
|
|
13888
|
+
type: string
|
|
13889
|
+
enum:
|
|
13890
|
+
- file
|
|
13891
|
+
files:
|
|
13892
|
+
description: Files to import
|
|
13893
|
+
type: array
|
|
13894
|
+
maxItems: 50
|
|
13895
|
+
items:
|
|
13896
|
+
description: Key of file
|
|
13897
|
+
type: string
|
|
13898
|
+
required:
|
|
13899
|
+
- type
|
|
13900
|
+
- files
|
|
13901
|
+
ContentImportTarget:
|
|
13902
|
+
type: object
|
|
13903
|
+
properties:
|
|
13904
|
+
space:
|
|
13905
|
+
type: string
|
|
13906
|
+
description: ID of the space to import in
|
|
13907
|
+
changeRequest:
|
|
13908
|
+
type: string
|
|
13909
|
+
description: ID of the change request to import in
|
|
13910
|
+
page:
|
|
13911
|
+
type: string
|
|
13912
|
+
description: ID of the page to import in
|
|
13913
|
+
required:
|
|
13914
|
+
- space
|
|
13915
|
+
ContentImportRun:
|
|
13916
|
+
type: object
|
|
13917
|
+
properties:
|
|
13918
|
+
object:
|
|
13919
|
+
description: Type of Object, always equals to "import-run"
|
|
13920
|
+
type: string
|
|
13921
|
+
enum:
|
|
13922
|
+
- import-run
|
|
13923
|
+
id:
|
|
13924
|
+
description: Unique ID of the import
|
|
13925
|
+
type: string
|
|
13926
|
+
startedAt:
|
|
13927
|
+
description: Date when the import has started
|
|
13928
|
+
$ref: "#/components/schemas/Timestamp"
|
|
13929
|
+
completedAt:
|
|
13930
|
+
description: Filled when the imported is in status "completed"
|
|
13931
|
+
$ref: "#/components/schemas/Timestamp"
|
|
13932
|
+
createdAt:
|
|
13933
|
+
description: Date when the import was requested
|
|
13934
|
+
$ref: "#/components/schemas/Timestamp"
|
|
13935
|
+
updatedAt:
|
|
13936
|
+
description: Date when the import was last updated
|
|
13937
|
+
$ref: "#/components/schemas/Timestamp"
|
|
13938
|
+
status:
|
|
13939
|
+
description: Status of the import
|
|
13940
|
+
type: string
|
|
13941
|
+
enum:
|
|
13942
|
+
- pending
|
|
13943
|
+
- in-progress
|
|
13944
|
+
- completed
|
|
13945
|
+
- failed
|
|
13946
|
+
- cancelled
|
|
13947
|
+
reason:
|
|
13948
|
+
description: Reason for the import failure when `status` is `failed`.
|
|
13949
|
+
type: string
|
|
13950
|
+
source:
|
|
13951
|
+
description: Where the content is imported from.
|
|
13952
|
+
$ref: "#/components/schemas/ContentImportSource"
|
|
13953
|
+
target:
|
|
13954
|
+
description: Where the content is imported into.
|
|
13955
|
+
$ref: "#/components/schemas/ContentImportTarget"
|
|
13956
|
+
site:
|
|
13957
|
+
description: ID of the site the target space belongs to, when it belongs to exactly one.
|
|
13958
|
+
type: string
|
|
13959
|
+
createdBy:
|
|
13960
|
+
description: ID of the user who started the import.
|
|
13961
|
+
type: string
|
|
13962
|
+
urls:
|
|
13963
|
+
type: object
|
|
13964
|
+
description: URLs associated with the object
|
|
13965
|
+
properties:
|
|
13966
|
+
location:
|
|
13967
|
+
description: URL of the import run in the API
|
|
13968
|
+
type: string
|
|
13969
|
+
format: uri
|
|
13970
|
+
required:
|
|
13971
|
+
- location
|
|
13972
|
+
pages:
|
|
13973
|
+
description: Pages included in the import
|
|
13974
|
+
type: array
|
|
13975
|
+
items:
|
|
13976
|
+
type: object
|
|
13977
|
+
properties:
|
|
13978
|
+
id:
|
|
13979
|
+
description: ID of page
|
|
13980
|
+
type: string
|
|
13981
|
+
sourceURL:
|
|
13982
|
+
description: Source URL where the page has been imported from
|
|
13983
|
+
type: string
|
|
13984
|
+
type:
|
|
13985
|
+
description: Type of page
|
|
13986
|
+
type: string
|
|
13987
|
+
enum:
|
|
13988
|
+
- page
|
|
13989
|
+
- folder
|
|
13990
|
+
status:
|
|
13991
|
+
description: Status of the page
|
|
13992
|
+
type: string
|
|
13993
|
+
enum:
|
|
13994
|
+
- complete
|
|
13995
|
+
- pending
|
|
13996
|
+
required:
|
|
13997
|
+
- id
|
|
13998
|
+
- type
|
|
13999
|
+
- status
|
|
14000
|
+
required:
|
|
14001
|
+
- id
|
|
14002
|
+
- status
|
|
13089
14003
|
VisitorAuthCustomBackend:
|
|
13090
14004
|
type: object
|
|
13091
14005
|
title: Custom backend for authenticated access
|
|
@@ -13177,7 +14091,7 @@ components:
|
|
|
13177
14091
|
$ref: "#/components/schemas/SpaceEditMode"
|
|
13178
14092
|
type:
|
|
13179
14093
|
type: string
|
|
13180
|
-
description: Kind of space. Only set to `styleguide` for spaces holding a team's writing
|
|
14094
|
+
description: Kind of space. Only set to `styleguide` for spaces holding a team's writing style guide; omitted for regular spaces.
|
|
13181
14095
|
enum:
|
|
13182
14096
|
- styleguide
|
|
13183
14097
|
mergeRules:
|
|
@@ -13218,6 +14132,12 @@ components:
|
|
|
13218
14132
|
$ref: "#/components/schemas/TranslationLanguage"
|
|
13219
14133
|
gitSync:
|
|
13220
14134
|
$ref: "#/components/schemas/GitSyncState"
|
|
14135
|
+
imports:
|
|
14136
|
+
description: |
|
|
14137
|
+
Import runs targeting this space, still running or ended recently, most recent first. Only returned when fetching a single space.
|
|
14138
|
+
type: array
|
|
14139
|
+
items:
|
|
14140
|
+
$ref: "#/components/schemas/ContentImportRun"
|
|
13221
14141
|
visitorAuth:
|
|
13222
14142
|
$ref: "#/components/schemas/VisitorAuth"
|
|
13223
14143
|
revision:
|
|
@@ -13487,10 +14407,17 @@ components:
|
|
|
13487
14407
|
type: string
|
|
13488
14408
|
title:
|
|
13489
14409
|
type: string
|
|
14410
|
+
description:
|
|
14411
|
+
type: string
|
|
14412
|
+
description: Description of the page, suitable for presenting a page-root search destination.
|
|
13490
14413
|
path:
|
|
13491
14414
|
type: string
|
|
13492
14415
|
score:
|
|
13493
14416
|
$ref: "#/components/schemas/SearchResultScore"
|
|
14417
|
+
rank:
|
|
14418
|
+
type: integer
|
|
14419
|
+
minimum: 1
|
|
14420
|
+
description: One-based position in the globally ranked result set, preserved when results are paginated and grouped by space.
|
|
13494
14421
|
resultType:
|
|
13495
14422
|
type: string
|
|
13496
14423
|
description: Whether the page matched on its own fields (title, description) or on the content of one of its sections.
|
|
@@ -13524,8 +14451,10 @@ components:
|
|
|
13524
14451
|
required:
|
|
13525
14452
|
- id
|
|
13526
14453
|
- title
|
|
14454
|
+
- description
|
|
13527
14455
|
- path
|
|
13528
14456
|
- score
|
|
14457
|
+
- rank
|
|
13529
14458
|
- ancestors
|
|
13530
14459
|
- urls
|
|
13531
14460
|
UpdateSpaceGitInfo:
|
|
@@ -17444,6 +18373,9 @@ components:
|
|
|
17444
18373
|
type: object
|
|
17445
18374
|
description: External link associated with a change request.
|
|
17446
18375
|
properties:
|
|
18376
|
+
id:
|
|
18377
|
+
type: string
|
|
18378
|
+
description: The ID of an existing link, as served on the change request. Pass it back to update that link; omit it to add a new one. Links created before links were stored individually have no ID and are matched on their URL instead.
|
|
17447
18379
|
ref:
|
|
17448
18380
|
$ref: "#/components/schemas/ContentRefURL"
|
|
17449
18381
|
title:
|
|
@@ -17520,6 +18452,9 @@ components:
|
|
|
17520
18452
|
- $ref: "#/components/schemas/ChangeRequestLinkInput"
|
|
17521
18453
|
- type: object
|
|
17522
18454
|
properties:
|
|
18455
|
+
id:
|
|
18456
|
+
type: string
|
|
18457
|
+
description: The ID of the link. Absent on links not yet stored relationally.
|
|
17523
18458
|
expanded:
|
|
17524
18459
|
$ref: "#/components/schemas/ChangeRequestLinkExpanded"
|
|
17525
18460
|
readOnly: true
|
|
@@ -17598,6 +18533,12 @@ components:
|
|
|
17598
18533
|
outdated:
|
|
17599
18534
|
type: boolean
|
|
17600
18535
|
description: If true, the change request is not up-to-date with latest changes in the main content.
|
|
18536
|
+
imports:
|
|
18537
|
+
description: |
|
|
18538
|
+
Import runs targeting this change request, still running or ended recently, most recent first. Only returned when fetching a single change request.
|
|
18539
|
+
type: array
|
|
18540
|
+
items:
|
|
18541
|
+
$ref: "#/components/schemas/ContentImportRun"
|
|
17601
18542
|
links:
|
|
17602
18543
|
$ref: "#/components/schemas/ChangeRequestLinks"
|
|
17603
18544
|
urls:
|
|
@@ -18220,7 +19161,7 @@ components:
|
|
|
18220
19161
|
type: string
|
|
18221
19162
|
description: Adaptive-content condition controlling whether the page is shown to a visitor. Set to an empty string to remove the condition.
|
|
18222
19163
|
ChangeRequestContentChangeUpdatePage:
|
|
18223
|
-
description: Update an existing page. Its document and/or its metadata (title, icon, description, visibility, adaptive-content condition) can be changed
|
|
19164
|
+
description: Update an existing page. Its document and/or its metadata (title, icon, description, visibility, adaptive-content condition) can be changed, and it can be moved to a new parent and/or position with `into`/`at`.
|
|
18224
19165
|
allOf:
|
|
18225
19166
|
- $ref: "#/components/schemas/RevisionPageUpdate"
|
|
18226
19167
|
- type: object
|
|
@@ -18238,6 +19179,15 @@ components:
|
|
|
18238
19179
|
document:
|
|
18239
19180
|
description: New document for the page. When provided as markdown, its frontmatter is read to update the page metadata. Omit to update only the metadata fields.
|
|
18240
19181
|
$ref: "#/components/schemas/Document"
|
|
19182
|
+
into:
|
|
19183
|
+
description: Move the page to be a child of this page ID. Set to `null` to move it to the root of the page tree. Omit to leave the page's parent unchanged. The target cannot be the page itself or one of its own descendants.
|
|
19184
|
+
oneOf:
|
|
19185
|
+
- type: string
|
|
19186
|
+
- type: "null"
|
|
19187
|
+
at:
|
|
19188
|
+
type: integer
|
|
19189
|
+
minimum: 0
|
|
19190
|
+
description: Zero-based index to move the page to among its new siblings (those of `into`, or the root pages when `into` is omitted or `null`). Omit to leave the page's position unchanged when its parent isn't changing, or to append it at the end when its parent is changing.
|
|
18241
19191
|
example:
|
|
18242
19192
|
operation: update_page
|
|
18243
19193
|
page: page_id
|
|
@@ -19478,6 +20428,9 @@ components:
|
|
|
19478
20428
|
inviteLinks:
|
|
19479
20429
|
description: If true, invite links are enabled for this organization.
|
|
19480
20430
|
type: boolean
|
|
20431
|
+
auditLogs:
|
|
20432
|
+
description: Whether audit logs can currently be accessed for this organization.
|
|
20433
|
+
type: boolean
|
|
19481
20434
|
plan:
|
|
19482
20435
|
$ref: "#/components/schemas/BillingProduct"
|
|
19483
20436
|
billing:
|
|
@@ -21136,9 +22089,15 @@ components:
|
|
|
21136
22089
|
access:
|
|
21137
22090
|
type: boolean
|
|
21138
22091
|
description: Can the user access the site in the application.
|
|
22092
|
+
edit:
|
|
22093
|
+
type: boolean
|
|
22094
|
+
description: Can the user edit content and create draft content in the site.
|
|
22095
|
+
create:
|
|
22096
|
+
type: boolean
|
|
22097
|
+
description: Can the user create draft content, publish content, and manage the site's content structure.
|
|
21139
22098
|
admin:
|
|
21140
22099
|
type: boolean
|
|
21141
|
-
description: Can the user
|
|
22100
|
+
description: Can the user manage the site content, settings and publish the site.
|
|
21142
22101
|
installIntegration:
|
|
21143
22102
|
type: boolean
|
|
21144
22103
|
description: Can the user install integrations on the site.
|
|
@@ -21151,6 +22110,8 @@ components:
|
|
|
21151
22110
|
required:
|
|
21152
22111
|
- view
|
|
21153
22112
|
- access
|
|
22113
|
+
- edit
|
|
22114
|
+
- create
|
|
21154
22115
|
- admin
|
|
21155
22116
|
- installIntegration
|
|
21156
22117
|
- viewAdaptiveSchema
|
|
@@ -21178,8 +22139,8 @@ components:
|
|
|
21178
22139
|
styleguide:
|
|
21179
22140
|
$ref: "#/components/schemas/ContentRefSpace"
|
|
21180
22141
|
description: |
|
|
21181
|
-
Reference to a GitBook space holding the team's writing
|
|
21182
|
-
When present on a site, the editing agent receives the
|
|
22142
|
+
Reference to a GitBook space holding the team's writing style guide.
|
|
22143
|
+
When present on a site, the editing agent receives the style guide
|
|
21183
22144
|
table of contents in its system prompt and can fetch sections on
|
|
21184
22145
|
demand to check edits against the rules.
|
|
21185
22146
|
features:
|
|
@@ -22119,6 +23080,48 @@ components:
|
|
|
22119
23080
|
$ref: "#/components/schemas/IntegrationInstallationExternalIds"
|
|
22120
23081
|
configuration:
|
|
22121
23082
|
$ref: "#/components/schemas/IntegrationInstallationConfiguration"
|
|
23083
|
+
SiteOnboardingSource:
|
|
23084
|
+
type: string
|
|
23085
|
+
description: Where the user's docs are coming from today.
|
|
23086
|
+
enum:
|
|
23087
|
+
- markdown-in-git
|
|
23088
|
+
- import
|
|
23089
|
+
- template
|
|
23090
|
+
SiteOnboardingAudience:
|
|
23091
|
+
type: string
|
|
23092
|
+
description: Who the user wants to be able to access their site.
|
|
23093
|
+
enum:
|
|
23094
|
+
- public
|
|
23095
|
+
- mixed
|
|
23096
|
+
- protected
|
|
23097
|
+
- internal
|
|
23098
|
+
SiteOnboardingInterest:
|
|
23099
|
+
type: string
|
|
23100
|
+
description: Something the user is interested in doing with the site.
|
|
23101
|
+
enum:
|
|
23102
|
+
- adaptive-content
|
|
23103
|
+
- api-docs
|
|
23104
|
+
- proactive-agent
|
|
23105
|
+
SiteOnboardingPreferences:
|
|
23106
|
+
type: object
|
|
23107
|
+
description: Preferences collected from the user during site onboarding, used to tailor recommendations and to apply their initial setup choices.
|
|
23108
|
+
properties:
|
|
23109
|
+
source:
|
|
23110
|
+
oneOf:
|
|
23111
|
+
- $ref: "#/components/schemas/SiteOnboardingSource"
|
|
23112
|
+
- type: "null"
|
|
23113
|
+
audience:
|
|
23114
|
+
oneOf:
|
|
23115
|
+
- $ref: "#/components/schemas/SiteOnboardingAudience"
|
|
23116
|
+
- type: "null"
|
|
23117
|
+
interests:
|
|
23118
|
+
type: array
|
|
23119
|
+
items:
|
|
23120
|
+
$ref: "#/components/schemas/SiteOnboardingInterest"
|
|
23121
|
+
required:
|
|
23122
|
+
- source
|
|
23123
|
+
- audience
|
|
23124
|
+
- interests
|
|
22122
23125
|
CreateOrganization:
|
|
22123
23126
|
type: object
|
|
22124
23127
|
properties:
|
|
@@ -22126,10 +23129,9 @@ components:
|
|
|
22126
23129
|
$ref: "#/components/schemas/OrganizationTitle"
|
|
22127
23130
|
emailDomains:
|
|
22128
23131
|
$ref: "#/components/schemas/OrganizationEmailDomains"
|
|
22129
|
-
|
|
22130
|
-
|
|
22131
|
-
|
|
22132
|
-
$ref: "#/components/schemas/OrganizationUseCase"
|
|
23132
|
+
onboardingPreferences:
|
|
23133
|
+
description: Preferences collected from the user during onboarding, to apply to the organization's default site. Only used when `withDefaultSite` is true.
|
|
23134
|
+
$ref: "#/components/schemas/SiteOnboardingPreferences"
|
|
22133
23135
|
required:
|
|
22134
23136
|
- title
|
|
22135
23137
|
SiteSectionTitle:
|
|
@@ -22315,11 +23317,12 @@ components:
|
|
|
22315
23317
|
description: Whether the site section group is draft and not live.
|
|
22316
23318
|
children:
|
|
22317
23319
|
type: array
|
|
22318
|
-
description: List of all child sections and
|
|
23320
|
+
description: List of all child sections, groups, and external links nested under this group
|
|
22319
23321
|
items:
|
|
22320
23322
|
oneOf:
|
|
22321
23323
|
- $ref: "#/components/schemas/SiteSection"
|
|
22322
23324
|
- $ref: "#/components/schemas/SiteSectionGroup"
|
|
23325
|
+
- $ref: "#/components/schemas/SiteExternalLink"
|
|
22323
23326
|
icon:
|
|
22324
23327
|
$ref: "#/components/schemas/Icon"
|
|
22325
23328
|
required:
|
|
@@ -22329,6 +23332,45 @@ components:
|
|
|
22329
23332
|
- draft
|
|
22330
23333
|
- sections
|
|
22331
23334
|
- children
|
|
23335
|
+
SiteExternalLink:
|
|
23336
|
+
type: object
|
|
23337
|
+
properties:
|
|
23338
|
+
object:
|
|
23339
|
+
type: string
|
|
23340
|
+
description: The object type, which is always "site-external-link"
|
|
23341
|
+
enum:
|
|
23342
|
+
- site-external-link
|
|
23343
|
+
id:
|
|
23344
|
+
type: string
|
|
23345
|
+
description: Unique identifier of the external link
|
|
23346
|
+
title:
|
|
23347
|
+
$ref: "#/components/schemas/SiteSectionTitle"
|
|
23348
|
+
localizedTitle:
|
|
23349
|
+
$ref: "#/components/schemas/LocalizedString128"
|
|
23350
|
+
description:
|
|
23351
|
+
$ref: "#/components/schemas/SiteSectionDescription"
|
|
23352
|
+
localizedDescription:
|
|
23353
|
+
$ref: "#/components/schemas/LocalizedString256"
|
|
23354
|
+
icon:
|
|
23355
|
+
$ref: "#/components/schemas/Icon"
|
|
23356
|
+
url:
|
|
23357
|
+
$ref: "#/components/schemas/URL"
|
|
23358
|
+
description: Absolute HTTP or HTTPS URL opened by the external link
|
|
23359
|
+
sectionGroup:
|
|
23360
|
+
type: string
|
|
23361
|
+
description: ID of the section group the external link belongs to. Omitted for a root link.
|
|
23362
|
+
draft:
|
|
23363
|
+
type: boolean
|
|
23364
|
+
description: Whether the external link is draft and not live
|
|
23365
|
+
condition:
|
|
23366
|
+
description: Conditional expression used to evaluate whether the external link should be shown to the site's visitor
|
|
23367
|
+
$ref: "#/components/schemas/Expression"
|
|
23368
|
+
required:
|
|
23369
|
+
- object
|
|
23370
|
+
- id
|
|
23371
|
+
- title
|
|
23372
|
+
- url
|
|
23373
|
+
- draft
|
|
22332
23374
|
SiteStructure:
|
|
22333
23375
|
oneOf:
|
|
22334
23376
|
- type: object
|
|
@@ -22343,6 +23385,7 @@ components:
|
|
|
22343
23385
|
oneOf:
|
|
22344
23386
|
- $ref: "#/components/schemas/SiteSection"
|
|
22345
23387
|
- $ref: "#/components/schemas/SiteSectionGroup"
|
|
23388
|
+
- $ref: "#/components/schemas/SiteExternalLink"
|
|
22346
23389
|
required:
|
|
22347
23390
|
- type
|
|
22348
23391
|
- structure
|
|
@@ -22412,15 +23455,143 @@ components:
|
|
|
22412
23455
|
- sites
|
|
22413
23456
|
- spaces
|
|
22414
23457
|
- deletedSpaces
|
|
23458
|
+
AuditEventAction:
|
|
23459
|
+
type: object
|
|
23460
|
+
properties:
|
|
23461
|
+
object:
|
|
23462
|
+
type: string
|
|
23463
|
+
enum:
|
|
23464
|
+
- audit-event-action
|
|
23465
|
+
id:
|
|
23466
|
+
type: string
|
|
23467
|
+
description: Stable action identifier stored on audit events.
|
|
23468
|
+
label:
|
|
23469
|
+
type: string
|
|
23470
|
+
description: Human-readable label for the action.
|
|
23471
|
+
required:
|
|
23472
|
+
- object
|
|
23473
|
+
- id
|
|
23474
|
+
- label
|
|
23475
|
+
AuditEventActor:
|
|
23476
|
+
type: object
|
|
23477
|
+
properties:
|
|
23478
|
+
type:
|
|
23479
|
+
type: string
|
|
23480
|
+
enum:
|
|
23481
|
+
- user
|
|
23482
|
+
- integration
|
|
23483
|
+
- installation
|
|
23484
|
+
- system
|
|
23485
|
+
- support
|
|
23486
|
+
description: Kind of actor that initiated the change.
|
|
23487
|
+
id:
|
|
23488
|
+
type: string
|
|
23489
|
+
description: Stable identifier of the actor.
|
|
23490
|
+
label:
|
|
23491
|
+
type: string
|
|
23492
|
+
description: Display label captured when the event was recorded.
|
|
23493
|
+
required:
|
|
23494
|
+
- type
|
|
23495
|
+
- id
|
|
23496
|
+
AuditEventTarget:
|
|
23497
|
+
type: object
|
|
23498
|
+
properties:
|
|
23499
|
+
type:
|
|
23500
|
+
type: string
|
|
23501
|
+
description: Kind of resource affected by the change.
|
|
23502
|
+
id:
|
|
23503
|
+
type: string
|
|
23504
|
+
description: Stable identifier of the affected resource.
|
|
23505
|
+
label:
|
|
23506
|
+
type: string
|
|
23507
|
+
description: Display label captured when the event was recorded.
|
|
23508
|
+
required:
|
|
23509
|
+
- type
|
|
23510
|
+
- id
|
|
23511
|
+
AuditEvent:
|
|
23512
|
+
type: object
|
|
23513
|
+
properties:
|
|
23514
|
+
object:
|
|
23515
|
+
type: string
|
|
23516
|
+
enum:
|
|
23517
|
+
- audit-event
|
|
23518
|
+
id:
|
|
23519
|
+
type: string
|
|
23520
|
+
format: uuid
|
|
23521
|
+
description: Unique identifier of the audit event.
|
|
23522
|
+
occurredAt:
|
|
23523
|
+
$ref: "#/components/schemas/Timestamp"
|
|
23524
|
+
action:
|
|
23525
|
+
type: string
|
|
23526
|
+
description: Stable action name describing the recorded change.
|
|
23527
|
+
actor:
|
|
23528
|
+
$ref: "#/components/schemas/AuditEventActor"
|
|
23529
|
+
source:
|
|
23530
|
+
type: string
|
|
23531
|
+
enum:
|
|
23532
|
+
- ui
|
|
23533
|
+
- api
|
|
23534
|
+
- integration
|
|
23535
|
+
- webhook
|
|
23536
|
+
- workflow
|
|
23537
|
+
- script
|
|
23538
|
+
- support
|
|
23539
|
+
description: Entry point that initiated the change.
|
|
23540
|
+
target:
|
|
23541
|
+
$ref: "#/components/schemas/AuditEventTarget"
|
|
23542
|
+
urls:
|
|
23543
|
+
type: object
|
|
23544
|
+
properties:
|
|
23545
|
+
location:
|
|
23546
|
+
type: string
|
|
23547
|
+
format: uri
|
|
23548
|
+
description: URL of the audit event in the API.
|
|
23549
|
+
required:
|
|
23550
|
+
- location
|
|
23551
|
+
required:
|
|
23552
|
+
- object
|
|
23553
|
+
- id
|
|
23554
|
+
- occurredAt
|
|
23555
|
+
- action
|
|
23556
|
+
- actor
|
|
23557
|
+
- source
|
|
23558
|
+
- target
|
|
23559
|
+
- urls
|
|
23560
|
+
AuditEventDetails:
|
|
23561
|
+
allOf:
|
|
23562
|
+
- $ref: "#/components/schemas/AuditEvent"
|
|
23563
|
+
- type: object
|
|
23564
|
+
properties:
|
|
23565
|
+
executionId:
|
|
23566
|
+
type: string
|
|
23567
|
+
description: Identifier of the operation that recorded the event.
|
|
23568
|
+
correlationId:
|
|
23569
|
+
type: string
|
|
23570
|
+
description: Identifier shared by events produced by the same user action.
|
|
23571
|
+
causedByEventId:
|
|
23572
|
+
type: string
|
|
23573
|
+
format: uuid
|
|
23574
|
+
description: Audit event that caused this later system effect.
|
|
23575
|
+
schemaVersion:
|
|
23576
|
+
type: integer
|
|
23577
|
+
minimum: 1
|
|
23578
|
+
description: Version of the action payload schema.
|
|
23579
|
+
payload:
|
|
23580
|
+
type: object
|
|
23581
|
+
additionalProperties: true
|
|
23582
|
+
description: Allowlisted details specific to the action.
|
|
23583
|
+
required:
|
|
23584
|
+
- schemaVersion
|
|
23585
|
+
- payload
|
|
22415
23586
|
OrganizationStyleguide:
|
|
22416
23587
|
type: object
|
|
22417
|
-
description: A
|
|
23588
|
+
description: A style guide space and all the sites referencing it.
|
|
22418
23589
|
properties:
|
|
22419
23590
|
space:
|
|
22420
23591
|
$ref: "#/components/schemas/Space"
|
|
22421
23592
|
sites:
|
|
22422
23593
|
type: array
|
|
22423
|
-
description: Sites in the organization that reference this
|
|
23594
|
+
description: Sites in the organization that reference this style guide.
|
|
22424
23595
|
items:
|
|
22425
23596
|
$ref: "#/components/schemas/Site"
|
|
22426
23597
|
required:
|
|
@@ -22437,11 +23608,11 @@ components:
|
|
|
22437
23608
|
- styleguides
|
|
22438
23609
|
StyleguideTemplate:
|
|
22439
23610
|
type: object
|
|
22440
|
-
description: A built-in
|
|
23611
|
+
description: A built-in style guide starter template used to seed and preview a style guide.
|
|
22441
23612
|
properties:
|
|
22442
23613
|
id:
|
|
22443
23614
|
type: string
|
|
22444
|
-
description: Identifier of the template, passed to createSiteStyleguideById to seed a
|
|
23615
|
+
description: Identifier of the template, passed to createSiteStyleguideById to seed a style guide from it.
|
|
22445
23616
|
title:
|
|
22446
23617
|
type: string
|
|
22447
23618
|
description: Human-readable name of the template.
|
|
@@ -24179,6 +25350,7 @@ components:
|
|
|
24179
25350
|
enum:
|
|
24180
25351
|
- customization_font
|
|
24181
25352
|
- import_file
|
|
25353
|
+
- organization_file
|
|
24182
25354
|
StorageUploadURL:
|
|
24183
25355
|
type: object
|
|
24184
25356
|
properties:
|
|
@@ -24281,104 +25453,6 @@ components:
|
|
|
24281
25453
|
description: The path of the file in the storage bucket
|
|
24282
25454
|
minLength: 1
|
|
24283
25455
|
maxLength: 512
|
|
24284
|
-
ContentImportSource:
|
|
24285
|
-
oneOf:
|
|
24286
|
-
- type: object
|
|
24287
|
-
properties:
|
|
24288
|
-
type:
|
|
24289
|
-
type: string
|
|
24290
|
-
enum:
|
|
24291
|
-
- website
|
|
24292
|
-
url:
|
|
24293
|
-
$ref: "#/components/schemas/URL"
|
|
24294
|
-
required:
|
|
24295
|
-
- type
|
|
24296
|
-
- url
|
|
24297
|
-
- type: object
|
|
24298
|
-
properties:
|
|
24299
|
-
type:
|
|
24300
|
-
type: string
|
|
24301
|
-
enum:
|
|
24302
|
-
- file
|
|
24303
|
-
files:
|
|
24304
|
-
description: Files to import
|
|
24305
|
-
type: array
|
|
24306
|
-
maxItems: 50
|
|
24307
|
-
items:
|
|
24308
|
-
description: Key of file
|
|
24309
|
-
type: string
|
|
24310
|
-
required:
|
|
24311
|
-
- type
|
|
24312
|
-
- files
|
|
24313
|
-
ContentImportTarget:
|
|
24314
|
-
type: object
|
|
24315
|
-
properties:
|
|
24316
|
-
space:
|
|
24317
|
-
type: string
|
|
24318
|
-
description: ID of the space to import in
|
|
24319
|
-
changeRequest:
|
|
24320
|
-
type: string
|
|
24321
|
-
description: ID of the change request to import in
|
|
24322
|
-
page:
|
|
24323
|
-
type: string
|
|
24324
|
-
description: ID of the page to import in
|
|
24325
|
-
required:
|
|
24326
|
-
- space
|
|
24327
|
-
ContentImportRun:
|
|
24328
|
-
type: object
|
|
24329
|
-
properties:
|
|
24330
|
-
id:
|
|
24331
|
-
description: Unique ID of the import
|
|
24332
|
-
type: string
|
|
24333
|
-
startedAt:
|
|
24334
|
-
description: Date when the import has started
|
|
24335
|
-
$ref: "#/components/schemas/Timestamp"
|
|
24336
|
-
completedAt:
|
|
24337
|
-
description: Filled when the imported is in status "completed"
|
|
24338
|
-
$ref: "#/components/schemas/Timestamp"
|
|
24339
|
-
status:
|
|
24340
|
-
description: Status of the import
|
|
24341
|
-
type: string
|
|
24342
|
-
enum:
|
|
24343
|
-
- pending
|
|
24344
|
-
- in-progress
|
|
24345
|
-
- completed
|
|
24346
|
-
- failed
|
|
24347
|
-
- cancelled
|
|
24348
|
-
reason:
|
|
24349
|
-
description: Reason for the import failure when `status` is `failed`.
|
|
24350
|
-
type: string
|
|
24351
|
-
pages:
|
|
24352
|
-
description: Pages included in the import
|
|
24353
|
-
type: array
|
|
24354
|
-
items:
|
|
24355
|
-
type: object
|
|
24356
|
-
properties:
|
|
24357
|
-
id:
|
|
24358
|
-
description: ID of page
|
|
24359
|
-
type: string
|
|
24360
|
-
sourceURL:
|
|
24361
|
-
description: Source URL where the page has been imported from
|
|
24362
|
-
type: string
|
|
24363
|
-
type:
|
|
24364
|
-
description: Type of page
|
|
24365
|
-
type: string
|
|
24366
|
-
enum:
|
|
24367
|
-
- page
|
|
24368
|
-
- folder
|
|
24369
|
-
status:
|
|
24370
|
-
description: Status of the page
|
|
24371
|
-
type: string
|
|
24372
|
-
enum:
|
|
24373
|
-
- complete
|
|
24374
|
-
- pending
|
|
24375
|
-
required:
|
|
24376
|
-
- id
|
|
24377
|
-
- type
|
|
24378
|
-
- status
|
|
24379
|
-
required:
|
|
24380
|
-
- id
|
|
24381
|
-
- status
|
|
24382
25456
|
SitePublishOperationPreviewResponse:
|
|
24383
25457
|
description: |
|
|
24384
25458
|
A response to a request to preview the publishing of a site. It indicates whether the operation can proceed immediately, requires checkout, if a trial is available or if a trial extension is available.
|
|
@@ -24990,6 +26064,12 @@ components:
|
|
|
24990
26064
|
oneOf:
|
|
24991
26065
|
- $ref: "#/components/schemas/CustomizationDefaultFont"
|
|
24992
26066
|
- $ref: "#/components/schemas/CustomizationFontDefinitionInput"
|
|
26067
|
+
CustomizationHeadingFont:
|
|
26068
|
+
description: Font used for headings. `null` means headings use the main font (`styling.font`).
|
|
26069
|
+
oneOf:
|
|
26070
|
+
- $ref: "#/components/schemas/CustomizationDefaultFont"
|
|
26071
|
+
- $ref: "#/components/schemas/CustomizationFontDefinitionInput"
|
|
26072
|
+
- type: "null"
|
|
24993
26073
|
CustomizationDefaultMonospaceFont:
|
|
24994
26074
|
type: string
|
|
24995
26075
|
enum:
|
|
@@ -25390,6 +26470,8 @@ components:
|
|
|
25390
26470
|
$ref: "#/components/schemas/CustomizationLinksStyle"
|
|
25391
26471
|
font:
|
|
25392
26472
|
$ref: "#/components/schemas/CustomizationFont"
|
|
26473
|
+
headingFont:
|
|
26474
|
+
$ref: "#/components/schemas/CustomizationHeadingFont"
|
|
25393
26475
|
monospaceFont:
|
|
25394
26476
|
$ref: "#/components/schemas/CustomizationMonospaceFont"
|
|
25395
26477
|
background:
|
|
@@ -25711,15 +26793,16 @@ components:
|
|
|
25711
26793
|
- site-space
|
|
25712
26794
|
- site-section
|
|
25713
26795
|
- site-section-group
|
|
26796
|
+
- site-external-link
|
|
25714
26797
|
id:
|
|
25715
26798
|
type: string
|
|
25716
|
-
description: Unique identifier for the site structure item (site space, site section
|
|
26799
|
+
description: Unique identifier for the site structure item (site space, site section, site section group, or external link).
|
|
25717
26800
|
required:
|
|
25718
26801
|
- type
|
|
25719
26802
|
- id
|
|
25720
26803
|
SiteStructureItemMovePosition:
|
|
25721
26804
|
type: object
|
|
25722
|
-
description: Position at which to move the site structure item
|
|
26805
|
+
description: Position at which to move the site structure item relative to any sibling of the same structure level.
|
|
25723
26806
|
properties:
|
|
25724
26807
|
before:
|
|
25725
26808
|
$ref: "#/components/schemas/SiteStructureItemPointer"
|
|
@@ -25729,12 +26812,13 @@ components:
|
|
|
25729
26812
|
title: Site Structure Item
|
|
25730
26813
|
type: object
|
|
25731
26814
|
description: |
|
|
25732
|
-
A site structure item can be a site space, a site section
|
|
26815
|
+
A site structure item can be a site space, a site section, a site section group, or an external link.
|
|
25733
26816
|
It is used to represent the structure of a site.
|
|
25734
26817
|
oneOf:
|
|
25735
26818
|
- $ref: "#/components/schemas/SiteSpace"
|
|
25736
26819
|
- $ref: "#/components/schemas/SiteSection"
|
|
25737
26820
|
- $ref: "#/components/schemas/SiteSectionGroup"
|
|
26821
|
+
- $ref: "#/components/schemas/SiteExternalLink"
|
|
25738
26822
|
BillingOperationPreviewResponse:
|
|
25739
26823
|
description: |
|
|
25740
26824
|
A response to a request to preview a paid operation or action. A user might preview an operation before executing it to see which billing steps would be required (if any). This schema defines the response of that preview request.
|
|
@@ -25935,6 +27019,12 @@ components:
|
|
|
25935
27019
|
type: string
|
|
25936
27020
|
maxLength: 1024
|
|
25937
27021
|
description: The end goal the agent is trying to accomplish on behalf of the user. Unlike the immediate query, the goal describes the broader task or outcome the agent is working towards.
|
|
27022
|
+
AgentFeedbackSource:
|
|
27023
|
+
type: string
|
|
27024
|
+
description: "The surface the agent was running on when it submitted the feedback: the MCP server exposed by the site, or the site assistant."
|
|
27025
|
+
enum:
|
|
27026
|
+
- mcp
|
|
27027
|
+
- assistant
|
|
25938
27028
|
SiteInsightsSession:
|
|
25939
27029
|
type: object
|
|
25940
27030
|
description: Identifiers for a GitBook site session, used for analytics and adaptive content.
|
|
@@ -26163,12 +27253,14 @@ components:
|
|
|
26163
27253
|
- Incorrect content: The content is factually wrong or misleading, leading users astray regardless of whether it was ever correct.
|
|
26164
27254
|
- Content gap: The content is missing important information that should be present to answer user questions effectively.
|
|
26165
27255
|
- Broken link: A URL on the site returns a 404, and can be resolved by creating a redirect or a new page.
|
|
27256
|
+
- Outbound link error: An external URL used by the site's content fails to resolve, and can be fixed by replacing or removing the link.
|
|
26166
27257
|
- Other: Any other type of finding not covered by the above categories.
|
|
26167
27258
|
enum:
|
|
26168
27259
|
- content-outdated
|
|
26169
27260
|
- content-incorrect
|
|
26170
27261
|
- content-gap
|
|
26171
27262
|
- broken-link
|
|
27263
|
+
- outbound-link-error
|
|
26172
27264
|
- other
|
|
26173
27265
|
SiteFindingSeverity:
|
|
26174
27266
|
type: string
|
|
@@ -26206,67 +27298,6 @@ components:
|
|
|
26206
27298
|
description: The source path to redirect from.
|
|
26207
27299
|
maxLength: 512
|
|
26208
27300
|
pattern: ^\/(?!\*)(?!.*\*.+)(?:[A-Za-z0-9\-._~+]|%[0-9A-Fa-f]{2})+(?:\/(?:[A-Za-z0-9\-._~+]|%[0-9A-Fa-f]{2})+)*(?:\/\*|\*)?$
|
|
26209
|
-
SiteRedirectDestinationSiteSection:
|
|
26210
|
-
type: object
|
|
26211
|
-
properties:
|
|
26212
|
-
kind:
|
|
26213
|
-
type: string
|
|
26214
|
-
enum:
|
|
26215
|
-
- site-section
|
|
26216
|
-
siteSectionId:
|
|
26217
|
-
type: string
|
|
26218
|
-
description: Unique identifier for the site section to redirect to
|
|
26219
|
-
required:
|
|
26220
|
-
- kind
|
|
26221
|
-
- siteSectionId
|
|
26222
|
-
SiteRedirectDestinationSiteSpace:
|
|
26223
|
-
type: object
|
|
26224
|
-
properties:
|
|
26225
|
-
kind:
|
|
26226
|
-
type: string
|
|
26227
|
-
enum:
|
|
26228
|
-
- site-space
|
|
26229
|
-
siteSpaceId:
|
|
26230
|
-
type: string
|
|
26231
|
-
description: Unique identifier for the site space to redirect to
|
|
26232
|
-
required:
|
|
26233
|
-
- kind
|
|
26234
|
-
- siteSpaceId
|
|
26235
|
-
SiteRedirectDestinationPage:
|
|
26236
|
-
type: object
|
|
26237
|
-
properties:
|
|
26238
|
-
kind:
|
|
26239
|
-
type: string
|
|
26240
|
-
enum:
|
|
26241
|
-
- site-page
|
|
26242
|
-
siteSpaceId:
|
|
26243
|
-
type: string
|
|
26244
|
-
description: Unique identifier for the site space of the page
|
|
26245
|
-
pageId:
|
|
26246
|
-
type: string
|
|
26247
|
-
description: Unique identifier for the page within the site space to redirect to
|
|
26248
|
-
required:
|
|
26249
|
-
- kind
|
|
26250
|
-
- siteSpaceId
|
|
26251
|
-
- pageId
|
|
26252
|
-
SiteRedirectDestinationExternal:
|
|
26253
|
-
type: object
|
|
26254
|
-
properties:
|
|
26255
|
-
kind:
|
|
26256
|
-
type: string
|
|
26257
|
-
enum:
|
|
26258
|
-
- external
|
|
26259
|
-
url:
|
|
26260
|
-
$ref: "#/components/schemas/URL"
|
|
26261
|
-
required:
|
|
26262
|
-
- kind
|
|
26263
|
-
- url
|
|
26264
|
-
SiteRedirectDestination:
|
|
26265
|
-
oneOf:
|
|
26266
|
-
- $ref: "#/components/schemas/SiteRedirectDestinationSiteSection"
|
|
26267
|
-
- $ref: "#/components/schemas/SiteRedirectDestinationSiteSpace"
|
|
26268
|
-
- $ref: "#/components/schemas/SiteRedirectDestinationPage"
|
|
26269
|
-
- $ref: "#/components/schemas/SiteRedirectDestinationExternal"
|
|
26270
27301
|
SiteRedirectInputDestinationPath:
|
|
26271
27302
|
type: object
|
|
26272
27303
|
properties:
|
|
@@ -26284,10 +27315,6 @@ components:
|
|
|
26284
27315
|
- kind
|
|
26285
27316
|
- spaceId
|
|
26286
27317
|
- path
|
|
26287
|
-
SiteRedirectInputDestination:
|
|
26288
|
-
oneOf:
|
|
26289
|
-
- $ref: "#/components/schemas/SiteRedirectDestination"
|
|
26290
|
-
- $ref: "#/components/schemas/SiteRedirectInputDestinationPath"
|
|
26291
27318
|
SiteFindingBrokenLinkAction:
|
|
26292
27319
|
type: object
|
|
26293
27320
|
description: Suggested fix for a broken-link finding, shaped as the input for `createSiteRedirect` so it can be applied directly. Absent when the finding has no directly applicable redirect (for example, a suggestion to create a new page).
|
|
@@ -26298,10 +27325,48 @@ components:
|
|
|
26298
27325
|
type: boolean
|
|
26299
27326
|
description: Whether the redirect appends the wildcard-matched suffix of the source path to the destination.
|
|
26300
27327
|
destination:
|
|
26301
|
-
$ref: "#/components/schemas/
|
|
27328
|
+
$ref: "#/components/schemas/SiteRedirectInputDestinationPath"
|
|
26302
27329
|
required:
|
|
26303
27330
|
- source
|
|
26304
27331
|
- destination
|
|
27332
|
+
SiteFindingOutboundLink:
|
|
27333
|
+
type: object
|
|
27334
|
+
description: "Details of an `outbound-link-error` finding: the failing external URL and the observed failure, sourced from the site's outbound link checks. Absent on findings of any other type."
|
|
27335
|
+
properties:
|
|
27336
|
+
url:
|
|
27337
|
+
type: string
|
|
27338
|
+
format: uri
|
|
27339
|
+
description: The external URL that fails to resolve.
|
|
27340
|
+
status:
|
|
27341
|
+
type: string
|
|
27342
|
+
description: Current health status of the URL for this site.
|
|
27343
|
+
enum:
|
|
27344
|
+
- pending
|
|
27345
|
+
- healthy
|
|
27346
|
+
- suspect
|
|
27347
|
+
- failed
|
|
27348
|
+
- recovering
|
|
27349
|
+
- canceled
|
|
27350
|
+
failureKind:
|
|
27351
|
+
type: string
|
|
27352
|
+
description: Classification of the confirmed failure.
|
|
27353
|
+
enum:
|
|
27354
|
+
- client-error
|
|
27355
|
+
- server-error
|
|
27356
|
+
- redirect
|
|
27357
|
+
- dns
|
|
27358
|
+
- tls
|
|
27359
|
+
- connection
|
|
27360
|
+
- timeout
|
|
27361
|
+
httpStatus:
|
|
27362
|
+
type: number
|
|
27363
|
+
description: HTTP status code of the last observation, when one was received.
|
|
27364
|
+
checkedAt:
|
|
27365
|
+
$ref: "#/components/schemas/Timestamp"
|
|
27366
|
+
description: When the URL was last observed over HTTP.
|
|
27367
|
+
required:
|
|
27368
|
+
- url
|
|
27369
|
+
- status
|
|
26305
27370
|
SiteFinding:
|
|
26306
27371
|
type: object
|
|
26307
27372
|
properties:
|
|
@@ -26347,6 +27412,8 @@ components:
|
|
|
26347
27412
|
description: Whether an AI agent should be able to fix this finding directly
|
|
26348
27413
|
brokenLinkAction:
|
|
26349
27414
|
$ref: "#/components/schemas/SiteFindingBrokenLinkAction"
|
|
27415
|
+
outboundLink:
|
|
27416
|
+
$ref: "#/components/schemas/SiteFindingOutboundLink"
|
|
26350
27417
|
createdAt:
|
|
26351
27418
|
$ref: "#/components/schemas/Timestamp"
|
|
26352
27419
|
updatedAt:
|
|
@@ -26644,6 +27711,15 @@ components:
|
|
|
26644
27711
|
- syncing
|
|
26645
27712
|
- succeeded
|
|
26646
27713
|
- failed
|
|
27714
|
+
ContextConnectionFailureReason:
|
|
27715
|
+
type: string
|
|
27716
|
+
description: Why a synchronization failed, indicating who can resolve it. `authentication` and `misconfigured` need the connection to be reconfigured; `rate_limited` and `upstream_unavailable` are the source's own limits or downtime and are retried; `unknown` could not be attributed to the source's response.
|
|
27717
|
+
enum:
|
|
27718
|
+
- authentication
|
|
27719
|
+
- misconfigured
|
|
27720
|
+
- rate_limited
|
|
27721
|
+
- upstream_unavailable
|
|
27722
|
+
- unknown
|
|
26647
27723
|
ContextSearchBoost:
|
|
26648
27724
|
type: string
|
|
26649
27725
|
description: Relative score adjustment applied to records from a connection when searching.
|
|
@@ -27020,6 +28096,8 @@ components:
|
|
|
27020
28096
|
failureMessage:
|
|
27021
28097
|
type: string
|
|
27022
28098
|
description: Failure message when synchronization fails
|
|
28099
|
+
failureReason:
|
|
28100
|
+
$ref: "#/components/schemas/ContextConnectionFailureReason"
|
|
27023
28101
|
email:
|
|
27024
28102
|
type: object
|
|
27025
28103
|
description: Parameters associated with the connection when it is an email connection
|
|
@@ -28037,6 +29115,66 @@ components:
|
|
|
28037
29115
|
- status
|
|
28038
29116
|
- reviewId
|
|
28039
29117
|
- commentId
|
|
29118
|
+
AIToolCallStartContentImport:
|
|
29119
|
+
type: object
|
|
29120
|
+
properties:
|
|
29121
|
+
tool:
|
|
29122
|
+
type: string
|
|
29123
|
+
enum:
|
|
29124
|
+
- startContentImport
|
|
29125
|
+
spaceId:
|
|
29126
|
+
type: string
|
|
29127
|
+
description: The ID of the space the content is imported into.
|
|
29128
|
+
changeRequestId:
|
|
29129
|
+
type: string
|
|
29130
|
+
description: The ID of the change request the content is imported into.
|
|
29131
|
+
runId:
|
|
29132
|
+
type: string
|
|
29133
|
+
description: The ID of the import run.
|
|
29134
|
+
url:
|
|
29135
|
+
type: string
|
|
29136
|
+
description: The URL the content is imported from, when importing a website.
|
|
29137
|
+
files:
|
|
29138
|
+
type: array
|
|
29139
|
+
description: Names of the attached files the content is imported from, when importing files.
|
|
29140
|
+
items:
|
|
29141
|
+
type: string
|
|
29142
|
+
required:
|
|
29143
|
+
- tool
|
|
29144
|
+
- spaceId
|
|
29145
|
+
- changeRequestId
|
|
29146
|
+
- runId
|
|
29147
|
+
AIToolCallCheckContentImport:
|
|
29148
|
+
type: object
|
|
29149
|
+
properties:
|
|
29150
|
+
tool:
|
|
29151
|
+
type: string
|
|
29152
|
+
enum:
|
|
29153
|
+
- checkContentImport
|
|
29154
|
+
runId:
|
|
29155
|
+
type: string
|
|
29156
|
+
description: The ID of the import run.
|
|
29157
|
+
status:
|
|
29158
|
+
type: string
|
|
29159
|
+
description: Status of the import when it was checked.
|
|
29160
|
+
enum:
|
|
29161
|
+
- pending
|
|
29162
|
+
- in-progress
|
|
29163
|
+
- completed
|
|
29164
|
+
- failed
|
|
29165
|
+
- cancelled
|
|
29166
|
+
importedPages:
|
|
29167
|
+
type: number
|
|
29168
|
+
description: Number of pages imported when the import was checked.
|
|
29169
|
+
totalPages:
|
|
29170
|
+
type: number
|
|
29171
|
+
description: Number of pages the import has discovered so far.
|
|
29172
|
+
required:
|
|
29173
|
+
- tool
|
|
29174
|
+
- runId
|
|
29175
|
+
- status
|
|
29176
|
+
- importedPages
|
|
29177
|
+
- totalPages
|
|
28040
29178
|
AIToolCallMCP:
|
|
28041
29179
|
type: object
|
|
28042
29180
|
description: Tool called from an MCP server
|
|
@@ -28112,6 +29250,8 @@ components:
|
|
|
28112
29250
|
- $ref: "#/components/schemas/AIToolCallReplyToComment"
|
|
28113
29251
|
- $ref: "#/components/schemas/AIToolCallGetComments"
|
|
28114
29252
|
- $ref: "#/components/schemas/AIToolCallSubmitChangeRequestReview"
|
|
29253
|
+
- $ref: "#/components/schemas/AIToolCallStartContentImport"
|
|
29254
|
+
- $ref: "#/components/schemas/AIToolCallCheckContentImport"
|
|
28115
29255
|
- $ref: "#/components/schemas/AIToolCallMCP"
|
|
28116
29256
|
- $ref: "#/components/schemas/AIToolCallOther"
|
|
28117
29257
|
AIMessageStepPhase:
|
|
@@ -28165,10 +29305,32 @@ components:
|
|
|
28165
29305
|
- url
|
|
28166
29306
|
- filename
|
|
28167
29307
|
- contentType
|
|
29308
|
+
AIAttachmentImportFile:
|
|
29309
|
+
type: object
|
|
29310
|
+
description: A file attached for the sole purpose of being imported. Its content is never given to the model — the type is one the importer accepts but the model cannot read, such as a ZIP archive — so the model only learns that the file is attached and can import it.
|
|
29311
|
+
properties:
|
|
29312
|
+
type:
|
|
29313
|
+
type: string
|
|
29314
|
+
enum:
|
|
29315
|
+
- import-file
|
|
29316
|
+
url:
|
|
29317
|
+
$ref: "#/components/schemas/URL"
|
|
29318
|
+
filename:
|
|
29319
|
+
type: string
|
|
29320
|
+
description: Name of the file.
|
|
29321
|
+
contentType:
|
|
29322
|
+
type: string
|
|
29323
|
+
description: MIME type of the file. Must be a file type supported by the content import.
|
|
29324
|
+
required:
|
|
29325
|
+
- type
|
|
29326
|
+
- url
|
|
29327
|
+
- filename
|
|
29328
|
+
- contentType
|
|
28168
29329
|
AIAttachment:
|
|
28169
29330
|
oneOf:
|
|
28170
29331
|
- $ref: "#/components/schemas/AIAttachmentImage"
|
|
28171
29332
|
- $ref: "#/components/schemas/AIAttachmentFile"
|
|
29333
|
+
- $ref: "#/components/schemas/AIAttachmentImportFile"
|
|
28172
29334
|
AIMessageContext:
|
|
28173
29335
|
type: object
|
|
28174
29336
|
description: Context about the current user sending a message.
|
|
@@ -29705,6 +30867,14 @@ components:
|
|
|
29705
30867
|
type: string
|
|
29706
30868
|
enum:
|
|
29707
30869
|
- eventLLMSVariant
|
|
30870
|
+
- type: object
|
|
30871
|
+
required:
|
|
30872
|
+
- column
|
|
30873
|
+
properties:
|
|
30874
|
+
column:
|
|
30875
|
+
type: string
|
|
30876
|
+
enum:
|
|
30877
|
+
- eventPageNotFoundType
|
|
29708
30878
|
- type: object
|
|
29709
30879
|
required:
|
|
29710
30880
|
- column
|
|
@@ -29817,6 +30987,15 @@ components:
|
|
|
29817
30987
|
type: string
|
|
29818
30988
|
enum:
|
|
29819
30989
|
- utmContent
|
|
30990
|
+
- type: object
|
|
30991
|
+
description: Whether the visitor was authenticated when the event happened. Recorded at ingest from the site's visibility and the visitor's claims, so it is only exact for events tracked after that became available; older events fall back to the presence of any claim.
|
|
30992
|
+
required:
|
|
30993
|
+
- column
|
|
30994
|
+
properties:
|
|
30995
|
+
column:
|
|
30996
|
+
type: string
|
|
30997
|
+
enum:
|
|
30998
|
+
- visitorAuthenticated
|
|
29820
30999
|
- type: object
|
|
29821
31000
|
required:
|
|
29822
31001
|
- column
|
|
@@ -29940,6 +31119,21 @@ components:
|
|
|
29940
31119
|
- claude-code
|
|
29941
31120
|
- codex
|
|
29942
31121
|
- opencode
|
|
31122
|
+
- gptbot
|
|
31123
|
+
- claudebot
|
|
31124
|
+
- meta-fetcher
|
|
31125
|
+
- grok
|
|
31126
|
+
- github-copilot
|
|
31127
|
+
- meta-webindexer
|
|
31128
|
+
- meta-ads
|
|
31129
|
+
- duckassist
|
|
31130
|
+
- amzn-searchbot
|
|
31131
|
+
- amzn-user
|
|
31132
|
+
SiteInsightsPageNotFoundType:
|
|
31133
|
+
description: Why a site URL returned a 404. `conditional` means the URL targets content gated by an adaptive-content condition, so the visitor lacked access to a page that exists. Computed by GitBook when the event is ingested; 404s recorded before this existed, and those on genuinely missing pages, carry no value.
|
|
31134
|
+
type: string
|
|
31135
|
+
enum:
|
|
31136
|
+
- conditional
|
|
29943
31137
|
SiteInsightsQueryEventsValues:
|
|
29944
31138
|
oneOf:
|
|
29945
31139
|
- type: object
|
|
@@ -30079,6 +31273,21 @@ components:
|
|
|
30079
31273
|
type: array
|
|
30080
31274
|
items:
|
|
30081
31275
|
type: string
|
|
31276
|
+
- type: object
|
|
31277
|
+
required:
|
|
31278
|
+
- column
|
|
31279
|
+
- values
|
|
31280
|
+
properties:
|
|
31281
|
+
column:
|
|
31282
|
+
type: string
|
|
31283
|
+
enum:
|
|
31284
|
+
- visitorAuthenticated
|
|
31285
|
+
values:
|
|
31286
|
+
type: array
|
|
31287
|
+
items:
|
|
31288
|
+
type:
|
|
31289
|
+
- boolean
|
|
31290
|
+
- "null"
|
|
30082
31291
|
- type: object
|
|
30083
31292
|
required:
|
|
30084
31293
|
- column
|
|
@@ -30226,6 +31435,21 @@ components:
|
|
|
30226
31435
|
oneOf:
|
|
30227
31436
|
- type: "null"
|
|
30228
31437
|
- $ref: "#/components/schemas/SiteInsightsLLMSVariant"
|
|
31438
|
+
- type: object
|
|
31439
|
+
required:
|
|
31440
|
+
- column
|
|
31441
|
+
- values
|
|
31442
|
+
properties:
|
|
31443
|
+
column:
|
|
31444
|
+
type: string
|
|
31445
|
+
enum:
|
|
31446
|
+
- eventPageNotFoundType
|
|
31447
|
+
values:
|
|
31448
|
+
type: array
|
|
31449
|
+
items:
|
|
31450
|
+
oneOf:
|
|
31451
|
+
- type: "null"
|
|
31452
|
+
- $ref: "#/components/schemas/SiteInsightsPageNotFoundType"
|
|
30229
31453
|
- type: object
|
|
30230
31454
|
required:
|
|
30231
31455
|
- column
|
|
@@ -30758,6 +31982,75 @@ components:
|
|
|
30758
31982
|
type: number
|
|
30759
31983
|
revenue:
|
|
30760
31984
|
type: string
|
|
31985
|
+
SiteRedirectOrderBy:
|
|
31986
|
+
type: string
|
|
31987
|
+
enum:
|
|
31988
|
+
- createdAt
|
|
31989
|
+
- updatedAt
|
|
31990
|
+
- source
|
|
31991
|
+
default: createdAt
|
|
31992
|
+
description: The field to sort site redirects by. `createdAt` returns the most recently created redirects first. `updatedAt` returns the most recently updated redirects first (falling back to the creation date for redirects never updated). `source` returns redirects sorted alphabetically by source path. Defaults to 'createdAt'.
|
|
31993
|
+
SiteRedirectDestinationSiteSection:
|
|
31994
|
+
type: object
|
|
31995
|
+
properties:
|
|
31996
|
+
kind:
|
|
31997
|
+
type: string
|
|
31998
|
+
enum:
|
|
31999
|
+
- site-section
|
|
32000
|
+
siteSectionId:
|
|
32001
|
+
type: string
|
|
32002
|
+
description: Unique identifier for the site section to redirect to
|
|
32003
|
+
required:
|
|
32004
|
+
- kind
|
|
32005
|
+
- siteSectionId
|
|
32006
|
+
SiteRedirectDestinationSiteSpace:
|
|
32007
|
+
type: object
|
|
32008
|
+
properties:
|
|
32009
|
+
kind:
|
|
32010
|
+
type: string
|
|
32011
|
+
enum:
|
|
32012
|
+
- site-space
|
|
32013
|
+
siteSpaceId:
|
|
32014
|
+
type: string
|
|
32015
|
+
description: Unique identifier for the site space to redirect to
|
|
32016
|
+
required:
|
|
32017
|
+
- kind
|
|
32018
|
+
- siteSpaceId
|
|
32019
|
+
SiteRedirectDestinationPage:
|
|
32020
|
+
type: object
|
|
32021
|
+
properties:
|
|
32022
|
+
kind:
|
|
32023
|
+
type: string
|
|
32024
|
+
enum:
|
|
32025
|
+
- site-page
|
|
32026
|
+
siteSpaceId:
|
|
32027
|
+
type: string
|
|
32028
|
+
description: Unique identifier for the site space of the page
|
|
32029
|
+
pageId:
|
|
32030
|
+
type: string
|
|
32031
|
+
description: Unique identifier for the page within the site space to redirect to
|
|
32032
|
+
required:
|
|
32033
|
+
- kind
|
|
32034
|
+
- siteSpaceId
|
|
32035
|
+
- pageId
|
|
32036
|
+
SiteRedirectDestinationExternal:
|
|
32037
|
+
type: object
|
|
32038
|
+
properties:
|
|
32039
|
+
kind:
|
|
32040
|
+
type: string
|
|
32041
|
+
enum:
|
|
32042
|
+
- external
|
|
32043
|
+
url:
|
|
32044
|
+
$ref: "#/components/schemas/URL"
|
|
32045
|
+
required:
|
|
32046
|
+
- kind
|
|
32047
|
+
- url
|
|
32048
|
+
SiteRedirectDestination:
|
|
32049
|
+
oneOf:
|
|
32050
|
+
- $ref: "#/components/schemas/SiteRedirectDestinationSiteSection"
|
|
32051
|
+
- $ref: "#/components/schemas/SiteRedirectDestinationSiteSpace"
|
|
32052
|
+
- $ref: "#/components/schemas/SiteRedirectDestinationPage"
|
|
32053
|
+
- $ref: "#/components/schemas/SiteRedirectDestinationExternal"
|
|
30761
32054
|
SiteRedirect:
|
|
30762
32055
|
type: object
|
|
30763
32056
|
properties:
|
|
@@ -30778,6 +32071,14 @@ components:
|
|
|
30778
32071
|
description: Capture and append the wildcard-matched suffix to the destination URL.
|
|
30779
32072
|
destination:
|
|
30780
32073
|
$ref: "#/components/schemas/SiteRedirectDestination"
|
|
32074
|
+
createdAt:
|
|
32075
|
+
type: string
|
|
32076
|
+
format: date-time
|
|
32077
|
+
description: When the redirect was created.
|
|
32078
|
+
updatedAt:
|
|
32079
|
+
type: string
|
|
32080
|
+
format: date-time
|
|
32081
|
+
description: When the redirect was last updated. Absent if never updated since creation.
|
|
30781
32082
|
required:
|
|
30782
32083
|
- object
|
|
30783
32084
|
- id
|
|
@@ -30785,6 +32086,11 @@ components:
|
|
|
30785
32086
|
- draft
|
|
30786
32087
|
- captureWildcard
|
|
30787
32088
|
- destination
|
|
32089
|
+
- createdAt
|
|
32090
|
+
SiteRedirectInputDestination:
|
|
32091
|
+
oneOf:
|
|
32092
|
+
- $ref: "#/components/schemas/SiteRedirectDestination"
|
|
32093
|
+
- $ref: "#/components/schemas/SiteRedirectInputDestinationPath"
|
|
30788
32094
|
SiteMcpServerName:
|
|
30789
32095
|
type: string
|
|
30790
32096
|
description: Name of the MCP server
|
|
@@ -31600,6 +32906,23 @@ components:
|
|
|
31600
32906
|
required:
|
|
31601
32907
|
- name
|
|
31602
32908
|
- ref
|
|
32909
|
+
GitSyncRepositoryFile:
|
|
32910
|
+
type: object
|
|
32911
|
+
description: A file found in a Git Sync repository at a specific ref.
|
|
32912
|
+
properties:
|
|
32913
|
+
name:
|
|
32914
|
+
type: string
|
|
32915
|
+
path:
|
|
32916
|
+
type: string
|
|
32917
|
+
sha:
|
|
32918
|
+
type: string
|
|
32919
|
+
size:
|
|
32920
|
+
type: number
|
|
32921
|
+
required:
|
|
32922
|
+
- name
|
|
32923
|
+
- path
|
|
32924
|
+
- sha
|
|
32925
|
+
- size
|
|
31603
32926
|
GitSyncGitLabProject:
|
|
31604
32927
|
type: object
|
|
31605
32928
|
description: GitLab project that can be selected for Git Sync.
|
|
@@ -32282,6 +33605,7 @@ components:
|
|
|
32282
33605
|
Stable identifier for this section group, used as the Git Sync key.
|
|
32283
33606
|
Must be unique amongst all other section groups of the site. For
|
|
32284
33607
|
example: `section-group-product` or `section-group-1`.
|
|
33608
|
+
You can nest section groups only one level deep. For example, `section-group-1` can have a child section group `section-group-1-1`, but `section-group-1-1` cannot have a child section group.
|
|
32285
33609
|
minLength: 1
|
|
32286
33610
|
title:
|
|
32287
33611
|
$ref: "#/components/schemas/SiteSectionGroupTitle"
|
|
@@ -32315,6 +33639,9 @@ components:
|
|
|
32315
33639
|
when `content.directory` is `null`. Hierarchy comes from where the space
|
|
32316
33640
|
appears in the YAML (under a section, a section group, or at the root), not
|
|
32317
33641
|
from an explicit parent reference.
|
|
33642
|
+
|
|
33643
|
+
The directory is read as one book — the Markdown files it holds become the
|
|
33644
|
+
pages of the space.
|
|
32318
33645
|
properties:
|
|
32319
33646
|
type:
|
|
32320
33647
|
type: string
|
|
@@ -32337,7 +33664,10 @@ components:
|
|
|
32337
33664
|
$ref: "#/components/schemas/SiteSpacePath"
|
|
32338
33665
|
default:
|
|
32339
33666
|
type: boolean
|
|
32340
|
-
description:
|
|
33667
|
+
description: |
|
|
33668
|
+
Whether this is the default space of its parent — the one opened when the
|
|
33669
|
+
site or the section is visited without a space path. Exactly one space
|
|
33670
|
+
among each set of siblings carries it.
|
|
32341
33671
|
hidden:
|
|
32342
33672
|
type: boolean
|
|
32343
33673
|
description: Whether the space is hidden from the site's navigation.
|
|
@@ -32354,7 +33684,12 @@ components:
|
|
|
32354
33684
|
directory:
|
|
32355
33685
|
oneOf:
|
|
32356
33686
|
- type: string
|
|
32357
|
-
description:
|
|
33687
|
+
description: |
|
|
33688
|
+
Directory holding this space's content, resolved from the site's
|
|
33689
|
+
project directory — `./guides` under a site rooted at `docs/`
|
|
33690
|
+
reads `docs/guides`. A leading slash escapes to the repository
|
|
33691
|
+
root instead, so `/guides` always reads `guides`. Parent-directory
|
|
33692
|
+
segments (`..`) are rejected.
|
|
32358
33693
|
minLength: 1
|
|
32359
33694
|
- type: "null"
|
|
32360
33695
|
description: The space does not inherit the site's repository.
|
|
@@ -32375,8 +33710,10 @@ components:
|
|
|
32375
33710
|
A section — a group of spaces sharing a top-level navigation entry.
|
|
32376
33711
|
Discriminated by `type: section`.
|
|
32377
33712
|
|
|
32378
|
-
Spaces inside a section are listed inline under `children
|
|
32379
|
-
|
|
33713
|
+
Spaces inside a section are listed inline under `children`; a section holds
|
|
33714
|
+
nothing else — nest sections under a section group instead. A site with
|
|
33715
|
+
sections must mark exactly one section with `default: true`, and cannot also
|
|
33716
|
+
list spaces at the top level of its structure.
|
|
32380
33717
|
properties:
|
|
32381
33718
|
type:
|
|
32382
33719
|
type: string
|
|
@@ -32430,14 +33767,94 @@ components:
|
|
|
32430
33767
|
description: |
|
|
32431
33768
|
Hierarchical structure of a site in a Git Sync YAML. Each entry is one of
|
|
32432
33769
|
three node types: a section group, a section, or a space.
|
|
33770
|
+
|
|
33771
|
+
A **space** is a leaf holding content, pointed at a repository directory. A
|
|
33772
|
+
**section** gathers spaces behind one top-level navigation entry. A
|
|
33773
|
+
**section group** gathers sections. A site either uses sections or lists its
|
|
33774
|
+
spaces at the top level, never both.
|
|
33775
|
+
|
|
33776
|
+
```yaml
|
|
33777
|
+
structure:
|
|
33778
|
+
- type: space
|
|
33779
|
+
key: space-guides
|
|
33780
|
+
title: Guides
|
|
33781
|
+
path: guides
|
|
33782
|
+
default: true
|
|
33783
|
+
content:
|
|
33784
|
+
directory: ./guides
|
|
33785
|
+
- type: space
|
|
33786
|
+
key: space-api
|
|
33787
|
+
title: API reference
|
|
33788
|
+
path: api
|
|
33789
|
+
content:
|
|
33790
|
+
directory: ./api
|
|
33791
|
+
```
|
|
33792
|
+
|
|
33793
|
+
The same two spaces behind top-level navigation entries:
|
|
33794
|
+
|
|
33795
|
+
```yaml
|
|
33796
|
+
structure:
|
|
33797
|
+
- type: section
|
|
33798
|
+
key: section-product
|
|
33799
|
+
title: Product
|
|
33800
|
+
path: product
|
|
33801
|
+
default: true
|
|
33802
|
+
children:
|
|
33803
|
+
- type: space
|
|
33804
|
+
key: space-guides
|
|
33805
|
+
title: Guides
|
|
33806
|
+
path: guides
|
|
33807
|
+
default: true
|
|
33808
|
+
content:
|
|
33809
|
+
directory: ./guides
|
|
33810
|
+
- type: section
|
|
33811
|
+
key: section-reference
|
|
33812
|
+
title: Reference
|
|
33813
|
+
path: reference
|
|
33814
|
+
children:
|
|
33815
|
+
- type: space
|
|
33816
|
+
key: space-api
|
|
33817
|
+
title: API reference
|
|
33818
|
+
path: api
|
|
33819
|
+
default: true
|
|
33820
|
+
content:
|
|
33821
|
+
directory: ./api
|
|
33822
|
+
```
|
|
33823
|
+
|
|
33824
|
+
Rules checked on import — a violation fails the sync, naming the offending
|
|
33825
|
+
node:
|
|
33826
|
+
|
|
33827
|
+
- Every `key` is unique across the file, whatever the node type. Git Sync
|
|
33828
|
+
recognises a node from one sync to the next by its key, so a reused key
|
|
33829
|
+
leaves two nodes indistinguishable.
|
|
33830
|
+
- Each section marks exactly one of its spaces `default: true`, and a site
|
|
33831
|
+
without sections marks one among its top-level spaces. The default is the
|
|
33832
|
+
space that opens when the site or the section is visited without a space
|
|
33833
|
+
path of its own.
|
|
33834
|
+
- A site declaring any section marks exactly one of those sections
|
|
33835
|
+
`default: true`, and lists no space at the top level: once a section
|
|
33836
|
+
exists, every space belongs inside one.
|
|
33837
|
+
- Sections hold only spaces. Section groups hold only sections, or one
|
|
33838
|
+
further level of section groups — nothing nests deeper than that.
|
|
33839
|
+
- Spaces pointed at the same `content.directory` declare the same
|
|
33840
|
+
`content.language`. One directory is read once, so it cannot produce two
|
|
33841
|
+
languages at the same time.
|
|
32433
33842
|
items:
|
|
32434
33843
|
$ref: "#/components/schemas/GitSyncSiteStructureNode"
|
|
32435
33844
|
GitSyncSiteConfig:
|
|
32436
33845
|
type: object
|
|
32437
33846
|
description: |
|
|
32438
|
-
Schema for a site `docs.yaml` file — the canonical contract for what
|
|
32439
|
-
can be authored in Git Sync to drive a site's
|
|
33847
|
+
Schema for a site `gitbook-docs.yaml` file — the canonical contract for what
|
|
33848
|
+
can be authored in Git Sync to drive a site's structure.
|
|
33849
|
+
|
|
33850
|
+
The file lives at the root of the site's project directory in the synced
|
|
33851
|
+
repository. It names the site and maps the repository's content directories
|
|
33852
|
+
onto the site's navigation.
|
|
32440
33853
|
properties:
|
|
33854
|
+
$schema:
|
|
33855
|
+
type: string
|
|
33856
|
+
format: uri
|
|
33857
|
+
description: URL of the schema used by editors to validate the site configuration.
|
|
32441
33858
|
version:
|
|
32442
33859
|
type: integer
|
|
32443
33860
|
description: |
|
|
@@ -34195,12 +35612,6 @@ components:
|
|
|
34195
35612
|
required:
|
|
34196
35613
|
- code
|
|
34197
35614
|
- message
|
|
34198
|
-
UnexpectedError:
|
|
34199
|
-
description: Unexpected Error
|
|
34200
|
-
content:
|
|
34201
|
-
application/json:
|
|
34202
|
-
schema:
|
|
34203
|
-
$ref: "#/components/schemas/Error"
|
|
34204
35615
|
UnauthorizedError:
|
|
34205
35616
|
description: Unauthorized
|
|
34206
35617
|
content:
|
|
@@ -34223,3 +35634,38 @@ components:
|
|
|
34223
35634
|
required:
|
|
34224
35635
|
- code
|
|
34225
35636
|
- message
|
|
35637
|
+
ForbiddenError:
|
|
35638
|
+
description: Forbidden
|
|
35639
|
+
content:
|
|
35640
|
+
application/json:
|
|
35641
|
+
schema:
|
|
35642
|
+
type: object
|
|
35643
|
+
required:
|
|
35644
|
+
- error
|
|
35645
|
+
properties:
|
|
35646
|
+
error:
|
|
35647
|
+
type: object
|
|
35648
|
+
properties:
|
|
35649
|
+
code:
|
|
35650
|
+
type: integer
|
|
35651
|
+
format: int32
|
|
35652
|
+
enum:
|
|
35653
|
+
- 403
|
|
35654
|
+
message:
|
|
35655
|
+
type: string
|
|
35656
|
+
required:
|
|
35657
|
+
- code
|
|
35658
|
+
- message
|
|
35659
|
+
UnexpectedError:
|
|
35660
|
+
description: Unexpected Error
|
|
35661
|
+
content:
|
|
35662
|
+
application/json:
|
|
35663
|
+
schema:
|
|
35664
|
+
$ref: "#/components/schemas/Error"
|
|
35665
|
+
headers:
|
|
35666
|
+
returnPreferenceApplied:
|
|
35667
|
+
description: Confirms that the requested minimal response preference was applied.
|
|
35668
|
+
schema:
|
|
35669
|
+
type: string
|
|
35670
|
+
enum:
|
|
35671
|
+
- return=minimal
|