@gitbook/api 0.196.0 → 0.198.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 +450 -78
- package/dist/constants.d.ts +5 -1
- package/dist/index.cjs +97 -2
- package/dist/index.js +89 -2
- package/package.json +1 -1
- package/spec/openapi.json +1736 -496
- package/spec/openapi.yaml +871 -100
package/spec/openapi.yaml
CHANGED
|
@@ -114,6 +114,12 @@ tags:
|
|
|
114
114
|
{% openapi-schemas spec="gitbook" schemas="SiteAgentSettings" grouped="false" %}
|
|
115
115
|
The SiteAgentSettings object
|
|
116
116
|
{% endopenapi-schemas %}
|
|
117
|
+
- name: site-agent-feedback
|
|
118
|
+
x-page-title: Site agent feedback
|
|
119
|
+
x-page-description: Collect feedback from AI agents about the surfaces your site exposes to them.
|
|
120
|
+
x-parent: sites
|
|
121
|
+
description: |
|
|
122
|
+
Collect structured feedback from AI agents about the tools, operations, commands and content they worked with, so you can see where agents struggle instead of only how often they call you. Feedback is usually about the surfaces you expose to agents, such as your own MCP server, API or CLI; the site is where it is collected and who owns it.
|
|
117
123
|
- name: site-spaces
|
|
118
124
|
x-page-title: Site spaces
|
|
119
125
|
x-page-description: Control which spaces are linked and displayed in a docs site.
|
|
@@ -144,6 +150,16 @@ tags:
|
|
|
144
150
|
{% openapi-schemas spec="gitbook" schemas="SiteSectionGroup" grouped="false" %}
|
|
145
151
|
The SiteSectionGroup object
|
|
146
152
|
{% endopenapi-schemas %}
|
|
153
|
+
- name: site-external-links
|
|
154
|
+
x-page-title: Site external links
|
|
155
|
+
x-page-description: Manage links to external destinations in a site's navigation.
|
|
156
|
+
x-parent: sites
|
|
157
|
+
description: |
|
|
158
|
+
External links add absolute HTTP or HTTPS destinations alongside sections and groups in a site's navigation.
|
|
159
|
+
|
|
160
|
+
{% openapi-schemas spec="gitbook" schemas="SiteExternalLink" grouped="false" %}
|
|
161
|
+
The SiteExternalLink object
|
|
162
|
+
{% endopenapi-schemas %}
|
|
147
163
|
- name: site-redirects
|
|
148
164
|
x-page-title: Site redirects
|
|
149
165
|
x-page-description: Establish redirects for pages that have moved or changed in your docs site.
|
|
@@ -2381,7 +2397,9 @@ paths:
|
|
|
2381
2397
|
operationId: updateChangeRequestContent
|
|
2382
2398
|
summary: Apply a batch of content changes to a change request
|
|
2383
2399
|
description: |-
|
|
2384
|
-
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.
|
|
2400
|
+
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.
|
|
2401
|
+
**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`.
|
|
2402
|
+
**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.
|
|
2385
2403
|
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.
|
|
2386
2404
|
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:
|
|
2387
2405
|
- Page ID — `/pages/<pageId>` (also `/pages/<pageId>#anchor`).
|
|
@@ -3884,6 +3902,8 @@ paths:
|
|
|
3884
3902
|
get:
|
|
3885
3903
|
operationId: listIntegrations
|
|
3886
3904
|
summary: List all public integrations
|
|
3905
|
+
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.
|
|
3906
|
+
x-gitbook-mcp: true
|
|
3887
3907
|
tags:
|
|
3888
3908
|
- integrations
|
|
3889
3909
|
parameters:
|
|
@@ -3917,6 +3937,8 @@ paths:
|
|
|
3917
3937
|
get:
|
|
3918
3938
|
operationId: getIntegrationByName
|
|
3919
3939
|
summary: Get an integration by its name
|
|
3940
|
+
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.
|
|
3941
|
+
x-gitbook-mcp: true
|
|
3920
3942
|
tags:
|
|
3921
3943
|
- integrations
|
|
3922
3944
|
parameters:
|
|
@@ -3938,6 +3960,8 @@ paths:
|
|
|
3938
3960
|
- integrations
|
|
3939
3961
|
security:
|
|
3940
3962
|
- user: []
|
|
3963
|
+
- oauth:
|
|
3964
|
+
- integration:publish
|
|
3941
3965
|
parameters:
|
|
3942
3966
|
- $ref: "#/components/parameters/integrationName"
|
|
3943
3967
|
responses:
|
|
@@ -3963,6 +3987,8 @@ paths:
|
|
|
3963
3987
|
- integrations
|
|
3964
3988
|
security:
|
|
3965
3989
|
- user: []
|
|
3990
|
+
- oauth:
|
|
3991
|
+
- integration:delete
|
|
3966
3992
|
parameters:
|
|
3967
3993
|
- $ref: "#/components/parameters/integrationName"
|
|
3968
3994
|
responses:
|
|
@@ -4007,10 +4033,14 @@ paths:
|
|
|
4007
4033
|
post:
|
|
4008
4034
|
operationId: installIntegration
|
|
4009
4035
|
summary: Install an integration
|
|
4036
|
+
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.
|
|
4037
|
+
x-gitbook-mcp: true
|
|
4010
4038
|
tags:
|
|
4011
4039
|
- integrations
|
|
4012
4040
|
security:
|
|
4013
4041
|
- user: []
|
|
4042
|
+
- oauth:
|
|
4043
|
+
- integration:installations:write
|
|
4014
4044
|
parameters:
|
|
4015
4045
|
- $ref: "#/components/parameters/integrationName"
|
|
4016
4046
|
requestBody:
|
|
@@ -4171,6 +4201,8 @@ paths:
|
|
|
4171
4201
|
- integrations
|
|
4172
4202
|
security:
|
|
4173
4203
|
- user: []
|
|
4204
|
+
- oauth:
|
|
4205
|
+
- integration:publish
|
|
4174
4206
|
parameters:
|
|
4175
4207
|
- $ref: "#/components/parameters/integrationName"
|
|
4176
4208
|
requestBody:
|
|
@@ -4204,6 +4236,8 @@ paths:
|
|
|
4204
4236
|
- integrations
|
|
4205
4237
|
security:
|
|
4206
4238
|
- user: []
|
|
4239
|
+
- oauth:
|
|
4240
|
+
- integration:publish
|
|
4207
4241
|
parameters:
|
|
4208
4242
|
- $ref: "#/components/parameters/integrationName"
|
|
4209
4243
|
responses:
|
|
@@ -4294,12 +4328,16 @@ paths:
|
|
|
4294
4328
|
get:
|
|
4295
4329
|
operationId: getIntegrationInstallationById
|
|
4296
4330
|
summary: Get an integration installation by its ID
|
|
4331
|
+
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.
|
|
4332
|
+
x-gitbook-mcp: true
|
|
4297
4333
|
tags:
|
|
4298
4334
|
- integrations
|
|
4299
4335
|
security:
|
|
4300
4336
|
- user: []
|
|
4301
4337
|
- integration: []
|
|
4302
4338
|
- integration-installation: []
|
|
4339
|
+
- oauth:
|
|
4340
|
+
- integration:installations:read
|
|
4303
4341
|
parameters:
|
|
4304
4342
|
- $ref: "#/components/parameters/integrationName"
|
|
4305
4343
|
- $ref: "#/components/parameters/installationId"
|
|
@@ -4315,12 +4353,16 @@ paths:
|
|
|
4315
4353
|
patch:
|
|
4316
4354
|
operationId: updateIntegrationInstallation
|
|
4317
4355
|
summary: Update an integration installation
|
|
4356
|
+
description: Updates the account-level configuration of an installation, and which spaces or sites it applies to.
|
|
4357
|
+
x-gitbook-mcp: true
|
|
4318
4358
|
tags:
|
|
4319
4359
|
- integrations
|
|
4320
4360
|
security:
|
|
4321
4361
|
- user: []
|
|
4322
4362
|
- integration: []
|
|
4323
4363
|
- integration-installation: []
|
|
4364
|
+
- oauth:
|
|
4365
|
+
- integration:installations:write
|
|
4324
4366
|
parameters:
|
|
4325
4367
|
- $ref: "#/components/parameters/integrationName"
|
|
4326
4368
|
- $ref: "#/components/parameters/installationId"
|
|
@@ -4379,8 +4421,16 @@ paths:
|
|
|
4379
4421
|
get:
|
|
4380
4422
|
operationId: listIntegrationInstallationSpaces
|
|
4381
4423
|
summary: List all space integration installations
|
|
4424
|
+
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.
|
|
4425
|
+
x-gitbook-mcp: true
|
|
4382
4426
|
tags:
|
|
4383
4427
|
- integrations
|
|
4428
|
+
security:
|
|
4429
|
+
- user: []
|
|
4430
|
+
- integration: []
|
|
4431
|
+
- integration-installation: []
|
|
4432
|
+
- oauth:
|
|
4433
|
+
- integration:installations:read
|
|
4384
4434
|
parameters:
|
|
4385
4435
|
- $ref: "#/components/parameters/integrationName"
|
|
4386
4436
|
- $ref: "#/components/parameters/installationId"
|
|
@@ -4411,6 +4461,14 @@ paths:
|
|
|
4411
4461
|
post:
|
|
4412
4462
|
operationId: installIntegrationOnSpace
|
|
4413
4463
|
summary: Install an integration on a space
|
|
4464
|
+
description: Enables an existing organization-level installation on one space. The organization must already have the integration installed.
|
|
4465
|
+
x-gitbook-mcp: true
|
|
4466
|
+
security:
|
|
4467
|
+
- user: []
|
|
4468
|
+
- integration: []
|
|
4469
|
+
- integration-installation: []
|
|
4470
|
+
- oauth:
|
|
4471
|
+
- integration:installations:write
|
|
4414
4472
|
parameters:
|
|
4415
4473
|
- $ref: "#/components/parameters/integrationName"
|
|
4416
4474
|
- $ref: "#/components/parameters/installationId"
|
|
@@ -4450,8 +4508,16 @@ paths:
|
|
|
4450
4508
|
get:
|
|
4451
4509
|
operationId: getIntegrationSpaceInstallation
|
|
4452
4510
|
summary: Get an integration space installation
|
|
4511
|
+
description: Returns the installation of an integration on one space, including the configuration of the integration for that space.
|
|
4512
|
+
x-gitbook-mcp: true
|
|
4453
4513
|
tags:
|
|
4454
4514
|
- integrations
|
|
4515
|
+
security:
|
|
4516
|
+
- user: []
|
|
4517
|
+
- integration: []
|
|
4518
|
+
- integration-installation: []
|
|
4519
|
+
- oauth:
|
|
4520
|
+
- integration:installations:read
|
|
4455
4521
|
parameters:
|
|
4456
4522
|
- $ref: "#/components/parameters/integrationName"
|
|
4457
4523
|
- $ref: "#/components/parameters/installationId"
|
|
@@ -4474,8 +4540,16 @@ paths:
|
|
|
4474
4540
|
patch:
|
|
4475
4541
|
operationId: updateIntegrationSpaceInstallation
|
|
4476
4542
|
summary: Update an integration space installation
|
|
4543
|
+
description: Updates the configuration of an integration for one space.
|
|
4544
|
+
x-gitbook-mcp: true
|
|
4477
4545
|
tags:
|
|
4478
4546
|
- integrations
|
|
4547
|
+
security:
|
|
4548
|
+
- user: []
|
|
4549
|
+
- integration: []
|
|
4550
|
+
- integration-installation: []
|
|
4551
|
+
- oauth:
|
|
4552
|
+
- integration:installations:write
|
|
4479
4553
|
parameters:
|
|
4480
4554
|
- $ref: "#/components/parameters/integrationName"
|
|
4481
4555
|
- $ref: "#/components/parameters/installationId"
|
|
@@ -4517,8 +4591,16 @@ paths:
|
|
|
4517
4591
|
get:
|
|
4518
4592
|
operationId: listIntegrationInstallationSites
|
|
4519
4593
|
summary: List all site integration installations
|
|
4594
|
+
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.
|
|
4595
|
+
x-gitbook-mcp: true
|
|
4520
4596
|
tags:
|
|
4521
4597
|
- integrations
|
|
4598
|
+
security:
|
|
4599
|
+
- user: []
|
|
4600
|
+
- integration: []
|
|
4601
|
+
- integration-installation: []
|
|
4602
|
+
- oauth:
|
|
4603
|
+
- integration:installations:read
|
|
4522
4604
|
parameters:
|
|
4523
4605
|
- $ref: "#/components/parameters/integrationName"
|
|
4524
4606
|
- $ref: "#/components/parameters/installationId"
|
|
@@ -4549,8 +4631,16 @@ paths:
|
|
|
4549
4631
|
post:
|
|
4550
4632
|
operationId: installIntegrationOnSite
|
|
4551
4633
|
summary: Install an integration on a site
|
|
4634
|
+
description: Enables an existing organization-level installation on one site. The organization must already have the integration installed.
|
|
4635
|
+
x-gitbook-mcp: true
|
|
4552
4636
|
tags:
|
|
4553
4637
|
- integrations
|
|
4638
|
+
security:
|
|
4639
|
+
- user: []
|
|
4640
|
+
- integration: []
|
|
4641
|
+
- integration-installation: []
|
|
4642
|
+
- oauth:
|
|
4643
|
+
- integration:installations:write
|
|
4554
4644
|
parameters:
|
|
4555
4645
|
- $ref: "#/components/parameters/integrationName"
|
|
4556
4646
|
- $ref: "#/components/parameters/installationId"
|
|
@@ -4590,8 +4680,16 @@ paths:
|
|
|
4590
4680
|
get:
|
|
4591
4681
|
operationId: getIntegrationSiteInstallation
|
|
4592
4682
|
summary: Get an integration site installation
|
|
4683
|
+
description: Returns the installation of an integration on one site, including the configuration of the integration for that site.
|
|
4684
|
+
x-gitbook-mcp: true
|
|
4593
4685
|
tags:
|
|
4594
4686
|
- integrations
|
|
4687
|
+
security:
|
|
4688
|
+
- user: []
|
|
4689
|
+
- integration: []
|
|
4690
|
+
- integration-installation: []
|
|
4691
|
+
- oauth:
|
|
4692
|
+
- integration:installations:read
|
|
4595
4693
|
parameters:
|
|
4596
4694
|
- $ref: "#/components/parameters/integrationName"
|
|
4597
4695
|
- $ref: "#/components/parameters/installationId"
|
|
@@ -4614,8 +4712,16 @@ paths:
|
|
|
4614
4712
|
patch:
|
|
4615
4713
|
operationId: updateIntegrationSiteInstallation
|
|
4616
4714
|
summary: Update an integration site installation
|
|
4715
|
+
description: Updates the configuration of an integration for one site.
|
|
4716
|
+
x-gitbook-mcp: true
|
|
4617
4717
|
tags:
|
|
4618
4718
|
- integrations
|
|
4719
|
+
security:
|
|
4720
|
+
- user: []
|
|
4721
|
+
- integration: []
|
|
4722
|
+
- integration-installation: []
|
|
4723
|
+
- oauth:
|
|
4724
|
+
- integration:installations:write
|
|
4619
4725
|
parameters:
|
|
4620
4726
|
- $ref: "#/components/parameters/integrationName"
|
|
4621
4727
|
- $ref: "#/components/parameters/installationId"
|
|
@@ -4708,6 +4814,7 @@ paths:
|
|
|
4708
4814
|
schema:
|
|
4709
4815
|
type: string
|
|
4710
4816
|
requestBody:
|
|
4817
|
+
required: true
|
|
4711
4818
|
content:
|
|
4712
4819
|
application/json:
|
|
4713
4820
|
schema:
|
|
@@ -5926,8 +6033,16 @@ paths:
|
|
|
5926
6033
|
get:
|
|
5927
6034
|
operationId: listOrganizationIntegrations
|
|
5928
6035
|
summary: List all public integrations along with private ones trusted by the specific org.
|
|
6036
|
+
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."
|
|
6037
|
+
x-gitbook-mcp: true
|
|
5929
6038
|
tags:
|
|
5930
6039
|
- integrations
|
|
6040
|
+
security:
|
|
6041
|
+
- user: []
|
|
6042
|
+
- integration: []
|
|
6043
|
+
- integration-installation: []
|
|
6044
|
+
- oauth:
|
|
6045
|
+
- integration:read
|
|
5931
6046
|
parameters:
|
|
5932
6047
|
- $ref: "#/components/parameters/organizationId"
|
|
5933
6048
|
- $ref: "#/components/parameters/listPage"
|
|
@@ -5960,10 +6075,14 @@ paths:
|
|
|
5960
6075
|
get:
|
|
5961
6076
|
operationId: getOrganizationIntegrationStatus
|
|
5962
6077
|
summary: Get the status of an integration
|
|
6078
|
+
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.
|
|
6079
|
+
x-gitbook-mcp: true
|
|
5963
6080
|
tags:
|
|
5964
6081
|
- integrations
|
|
5965
6082
|
security:
|
|
5966
6083
|
- user: []
|
|
6084
|
+
- oauth:
|
|
6085
|
+
- integration:read
|
|
5967
6086
|
parameters:
|
|
5968
6087
|
- $ref: "#/components/parameters/organizationId"
|
|
5969
6088
|
- $ref: "#/components/parameters/integrationName"
|
|
@@ -6019,10 +6138,17 @@ paths:
|
|
|
6019
6138
|
get:
|
|
6020
6139
|
operationId: listOrganizationIntegrationsStatus
|
|
6021
6140
|
summary: List all integration statuses
|
|
6022
|
-
description: Returns integration installations in the organization. Use site or space with the matching target to efficiently scope the result to one resource.
|
|
6141
|
+
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.
|
|
6142
|
+
x-gitbook-mcp: true
|
|
6023
6143
|
tags:
|
|
6024
6144
|
- integrations
|
|
6025
6145
|
- critical
|
|
6146
|
+
security:
|
|
6147
|
+
- user: []
|
|
6148
|
+
- integration: []
|
|
6149
|
+
- integration-installation: []
|
|
6150
|
+
- oauth:
|
|
6151
|
+
- integration:read
|
|
6026
6152
|
parameters:
|
|
6027
6153
|
- $ref: "#/components/parameters/organizationId"
|
|
6028
6154
|
- $ref: "#/components/parameters/listPage"
|
|
@@ -7860,8 +7986,8 @@ paths:
|
|
|
7860
7986
|
/orgs/{organizationId}/sites/{siteId}/structure/sort:
|
|
7861
7987
|
patch:
|
|
7862
7988
|
operationId: sortSiteStructure
|
|
7863
|
-
summary: Move a site
|
|
7864
|
-
description: Reorders
|
|
7989
|
+
summary: Move a site structure item to a new position
|
|
7990
|
+
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.
|
|
7865
7991
|
x-gitbook-mcp: true
|
|
7866
7992
|
x-gitbook-return-preference: true
|
|
7867
7993
|
tags:
|
|
@@ -7875,13 +8001,14 @@ paths:
|
|
|
7875
8001
|
- $ref: "#/components/parameters/siteId"
|
|
7876
8002
|
- $ref: "#/components/parameters/returnPreference"
|
|
7877
8003
|
requestBody:
|
|
8004
|
+
required: true
|
|
7878
8005
|
content:
|
|
7879
8006
|
application/json:
|
|
7880
8007
|
schema:
|
|
7881
8008
|
type: object
|
|
7882
8009
|
properties:
|
|
7883
8010
|
item:
|
|
7884
|
-
description:
|
|
8011
|
+
description: Pointer to the site space, section, section group, or external link being moved.
|
|
7885
8012
|
$ref: "#/components/schemas/SiteStructureItemPointer"
|
|
7886
8013
|
position:
|
|
7887
8014
|
description: The position to move the item to. When not provided the item is moved to the end of the site structure.
|
|
@@ -8154,7 +8281,7 @@ paths:
|
|
|
8154
8281
|
post:
|
|
8155
8282
|
operationId: addSpaceToSite
|
|
8156
8283
|
summary: Add a space to a site as a content source
|
|
8157
|
-
description:
|
|
8284
|
+
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.
|
|
8158
8285
|
x-gitbook-mcp: true
|
|
8159
8286
|
x-gitbook-return-preference: true
|
|
8160
8287
|
tags:
|
|
@@ -8175,22 +8302,28 @@ paths:
|
|
|
8175
8302
|
type: object
|
|
8176
8303
|
properties:
|
|
8177
8304
|
spaceId:
|
|
8178
|
-
|
|
8179
|
-
|
|
8305
|
+
oneOf:
|
|
8306
|
+
- type: string
|
|
8307
|
+
- type: "null"
|
|
8308
|
+
description: Pass the ID of an existing space or `null` to create a new space.
|
|
8309
|
+
template:
|
|
8310
|
+
$ref: "#/components/schemas/ApplySpaceTemplate"
|
|
8311
|
+
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.
|
|
8180
8312
|
sectionId:
|
|
8181
8313
|
type: string
|
|
8182
8314
|
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.
|
|
8183
8315
|
draft:
|
|
8184
8316
|
type: boolean
|
|
8185
8317
|
default: false
|
|
8186
|
-
description: Whether the site space should be created as draft. Defaults to false.
|
|
8318
|
+
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.
|
|
8187
8319
|
pageId:
|
|
8188
8320
|
oneOf:
|
|
8189
8321
|
- type: string
|
|
8190
8322
|
- type: "null"
|
|
8191
|
-
description: Custom home page within
|
|
8323
|
+
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.
|
|
8192
8324
|
title:
|
|
8193
8325
|
$ref: "#/components/schemas/SiteTitle"
|
|
8326
|
+
description: Site-specific title override for the variant. Also used as the space title when `spaceId` is `null` and no template is provided.
|
|
8194
8327
|
required:
|
|
8195
8328
|
- spaceId
|
|
8196
8329
|
responses:
|
|
@@ -8370,6 +8503,11 @@ paths:
|
|
|
8370
8503
|
draft:
|
|
8371
8504
|
type: boolean
|
|
8372
8505
|
description: Whether the site section group should be kept in draft mode. Setting it to true makes the site section group draft. Setting it to false makes the site section group live.
|
|
8506
|
+
parentSectionGroupId:
|
|
8507
|
+
description: ID of the parent section group to move this section group into. Set to null to move the section group to the root of the site.
|
|
8508
|
+
oneOf:
|
|
8509
|
+
- type: string
|
|
8510
|
+
- type: "null"
|
|
8373
8511
|
responses:
|
|
8374
8512
|
"200":
|
|
8375
8513
|
description: OK
|
|
@@ -8404,7 +8542,7 @@ paths:
|
|
|
8404
8542
|
post:
|
|
8405
8543
|
operationId: addSectionToSite
|
|
8406
8544
|
summary: Add a new navigation section to a site backed by a space
|
|
8407
|
-
description: Creates a new top-level navigation section in the site
|
|
8545
|
+
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.
|
|
8408
8546
|
x-gitbook-mcp: true
|
|
8409
8547
|
tags:
|
|
8410
8548
|
- site-sections
|
|
@@ -8423,22 +8561,29 @@ paths:
|
|
|
8423
8561
|
type: object
|
|
8424
8562
|
properties:
|
|
8425
8563
|
spaceId:
|
|
8426
|
-
|
|
8427
|
-
|
|
8564
|
+
oneOf:
|
|
8565
|
+
- type: string
|
|
8566
|
+
- type: "null"
|
|
8567
|
+
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.
|
|
8568
|
+
template:
|
|
8569
|
+
$ref: "#/components/schemas/ApplySpaceTemplate"
|
|
8570
|
+
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.
|
|
8428
8571
|
title:
|
|
8429
8572
|
oneOf:
|
|
8430
8573
|
- $ref: "#/components/schemas/SiteSectionTitle"
|
|
8431
8574
|
- type: "null"
|
|
8575
|
+
description: Section title. Also used as the space title when `spaceId` is `null` and no template is provided.
|
|
8432
8576
|
icon:
|
|
8433
8577
|
oneOf:
|
|
8434
8578
|
- $ref: "#/components/schemas/Icon"
|
|
8435
8579
|
- type: "null"
|
|
8436
8580
|
draft:
|
|
8437
8581
|
type: boolean
|
|
8438
|
-
|
|
8582
|
+
default: false
|
|
8583
|
+
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.
|
|
8439
8584
|
pageId:
|
|
8440
8585
|
type: string
|
|
8441
|
-
description: Custom home page within
|
|
8586
|
+
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.
|
|
8442
8587
|
siteSectionGroupId:
|
|
8443
8588
|
type: string
|
|
8444
8589
|
description: ID of the section group to create the section in
|
|
@@ -8576,6 +8721,181 @@ paths:
|
|
|
8576
8721
|
description: Site section did not exist
|
|
8577
8722
|
"205":
|
|
8578
8723
|
description: Site section has been deleted
|
|
8724
|
+
/orgs/{organizationId}/sites/{siteId}/external-links:
|
|
8725
|
+
post:
|
|
8726
|
+
operationId: addExternalLinkToSite
|
|
8727
|
+
summary: Add an external link to a site's navigation
|
|
8728
|
+
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.
|
|
8729
|
+
x-gitbook-mcp: true
|
|
8730
|
+
tags:
|
|
8731
|
+
- site-external-links
|
|
8732
|
+
security:
|
|
8733
|
+
- user: []
|
|
8734
|
+
- oauth:
|
|
8735
|
+
- site:write
|
|
8736
|
+
parameters:
|
|
8737
|
+
- $ref: "#/components/parameters/organizationId"
|
|
8738
|
+
- $ref: "#/components/parameters/siteId"
|
|
8739
|
+
requestBody:
|
|
8740
|
+
required: true
|
|
8741
|
+
content:
|
|
8742
|
+
application/json:
|
|
8743
|
+
schema:
|
|
8744
|
+
type: object
|
|
8745
|
+
properties:
|
|
8746
|
+
title:
|
|
8747
|
+
$ref: "#/components/schemas/SiteSectionTitle"
|
|
8748
|
+
localizedTitle:
|
|
8749
|
+
$ref: "#/components/schemas/LocalizedString128"
|
|
8750
|
+
description:
|
|
8751
|
+
oneOf:
|
|
8752
|
+
- $ref: "#/components/schemas/SiteSectionDescription"
|
|
8753
|
+
- type: "null"
|
|
8754
|
+
localizedDescription:
|
|
8755
|
+
oneOf:
|
|
8756
|
+
- $ref: "#/components/schemas/LocalizedString256"
|
|
8757
|
+
- type: "null"
|
|
8758
|
+
icon:
|
|
8759
|
+
oneOf:
|
|
8760
|
+
- $ref: "#/components/schemas/Icon"
|
|
8761
|
+
- type: "null"
|
|
8762
|
+
url:
|
|
8763
|
+
$ref: "#/components/schemas/URL"
|
|
8764
|
+
description: Absolute HTTP or HTTPS destination URL
|
|
8765
|
+
parent:
|
|
8766
|
+
type: string
|
|
8767
|
+
description: ID of the section group to create the link in. Omit to place it at the site root.
|
|
8768
|
+
draft:
|
|
8769
|
+
type: boolean
|
|
8770
|
+
description: Whether the external link should be created in draft mode
|
|
8771
|
+
condition:
|
|
8772
|
+
oneOf:
|
|
8773
|
+
- $ref: "#/components/schemas/Expression"
|
|
8774
|
+
- type: "null"
|
|
8775
|
+
description: Adaptive condition controlling whether visitors see the link
|
|
8776
|
+
required:
|
|
8777
|
+
- title
|
|
8778
|
+
- url
|
|
8779
|
+
responses:
|
|
8780
|
+
"201":
|
|
8781
|
+
description: External link added to the site
|
|
8782
|
+
headers:
|
|
8783
|
+
Location:
|
|
8784
|
+
description: API URL for the newly created external link
|
|
8785
|
+
schema:
|
|
8786
|
+
type: string
|
|
8787
|
+
content:
|
|
8788
|
+
application/json:
|
|
8789
|
+
schema:
|
|
8790
|
+
$ref: "#/components/schemas/SiteExternalLink"
|
|
8791
|
+
"400":
|
|
8792
|
+
description: The site has a simple structure or the parent group is invalid
|
|
8793
|
+
$ref: "#/components/responses/BadRequestError"
|
|
8794
|
+
default:
|
|
8795
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
8796
|
+
/orgs/{organizationId}/sites/{siteId}/external-links/{siteExternalLinkId}:
|
|
8797
|
+
patch:
|
|
8798
|
+
operationId: updateSiteExternalLinkById
|
|
8799
|
+
summary: Update an external link in a site's navigation
|
|
8800
|
+
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.
|
|
8801
|
+
x-gitbook-mcp: true
|
|
8802
|
+
x-gitbook-return-preference: true
|
|
8803
|
+
tags:
|
|
8804
|
+
- site-external-links
|
|
8805
|
+
security:
|
|
8806
|
+
- user: []
|
|
8807
|
+
- oauth:
|
|
8808
|
+
- site:write
|
|
8809
|
+
parameters:
|
|
8810
|
+
- $ref: "#/components/parameters/organizationId"
|
|
8811
|
+
- $ref: "#/components/parameters/siteId"
|
|
8812
|
+
- $ref: "#/components/parameters/siteExternalLinkId"
|
|
8813
|
+
- $ref: "#/components/parameters/returnPreference"
|
|
8814
|
+
requestBody:
|
|
8815
|
+
required: true
|
|
8816
|
+
content:
|
|
8817
|
+
application/json:
|
|
8818
|
+
schema:
|
|
8819
|
+
type: object
|
|
8820
|
+
properties:
|
|
8821
|
+
title:
|
|
8822
|
+
$ref: "#/components/schemas/SiteSectionTitle"
|
|
8823
|
+
localizedTitle:
|
|
8824
|
+
oneOf:
|
|
8825
|
+
- $ref: "#/components/schemas/LocalizedString128"
|
|
8826
|
+
- type: "null"
|
|
8827
|
+
description:
|
|
8828
|
+
oneOf:
|
|
8829
|
+
- $ref: "#/components/schemas/SiteSectionDescription"
|
|
8830
|
+
- type: "null"
|
|
8831
|
+
localizedDescription:
|
|
8832
|
+
oneOf:
|
|
8833
|
+
- $ref: "#/components/schemas/LocalizedString256"
|
|
8834
|
+
- type: "null"
|
|
8835
|
+
icon:
|
|
8836
|
+
oneOf:
|
|
8837
|
+
- $ref: "#/components/schemas/Icon"
|
|
8838
|
+
- type: "null"
|
|
8839
|
+
url:
|
|
8840
|
+
$ref: "#/components/schemas/URL"
|
|
8841
|
+
description: Absolute HTTP or HTTPS destination URL
|
|
8842
|
+
parent:
|
|
8843
|
+
description: ID of the section group to move the link into. Set to null to move it to the site root.
|
|
8844
|
+
oneOf:
|
|
8845
|
+
- type: string
|
|
8846
|
+
- type: "null"
|
|
8847
|
+
draft:
|
|
8848
|
+
type: boolean
|
|
8849
|
+
description: Whether the external link should be kept in draft mode
|
|
8850
|
+
condition:
|
|
8851
|
+
oneOf:
|
|
8852
|
+
- $ref: "#/components/schemas/Expression"
|
|
8853
|
+
- type: "null"
|
|
8854
|
+
description: Adaptive condition controlling whether visitors see the link
|
|
8855
|
+
responses:
|
|
8856
|
+
"200":
|
|
8857
|
+
description: External link updated
|
|
8858
|
+
content:
|
|
8859
|
+
application/json:
|
|
8860
|
+
schema:
|
|
8861
|
+
$ref: "#/components/schemas/SiteExternalLink"
|
|
8862
|
+
"204":
|
|
8863
|
+
description: External link updated without returning its representation
|
|
8864
|
+
headers:
|
|
8865
|
+
Preference-Applied:
|
|
8866
|
+
$ref: "#/components/headers/returnPreferenceApplied"
|
|
8867
|
+
"400":
|
|
8868
|
+
description: The parent group or destination URL is invalid
|
|
8869
|
+
$ref: "#/components/responses/BadRequestError"
|
|
8870
|
+
"404":
|
|
8871
|
+
description: Site or external link not found
|
|
8872
|
+
$ref: "#/components/responses/NotFoundError"
|
|
8873
|
+
default:
|
|
8874
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
8875
|
+
delete:
|
|
8876
|
+
operationId: deleteSiteExternalLinkById
|
|
8877
|
+
summary: Delete an external link from a site's navigation
|
|
8878
|
+
description: Deletes an external link. This operation is intentionally unavailable to MCP clients.
|
|
8879
|
+
tags:
|
|
8880
|
+
- site-external-links
|
|
8881
|
+
security:
|
|
8882
|
+
- user: []
|
|
8883
|
+
- oauth:
|
|
8884
|
+
- site:write
|
|
8885
|
+
parameters:
|
|
8886
|
+
- $ref: "#/components/parameters/organizationId"
|
|
8887
|
+
- $ref: "#/components/parameters/siteId"
|
|
8888
|
+
- $ref: "#/components/parameters/siteExternalLinkId"
|
|
8889
|
+
responses:
|
|
8890
|
+
"204":
|
|
8891
|
+
description: External link did not exist
|
|
8892
|
+
"205":
|
|
8893
|
+
description: External link has been deleted
|
|
8894
|
+
"404":
|
|
8895
|
+
description: Site not found
|
|
8896
|
+
$ref: "#/components/responses/NotFoundError"
|
|
8897
|
+
default:
|
|
8898
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
8579
8899
|
/orgs/{organizationId}/sites/{siteId}/search:
|
|
8580
8900
|
post:
|
|
8581
8901
|
operationId: searchSiteContent
|
|
@@ -8672,11 +8992,32 @@ paths:
|
|
|
8672
8992
|
- $ref: "#/components/schemas/SearchRecordResult"
|
|
8673
8993
|
discriminator:
|
|
8674
8994
|
propertyName: type
|
|
8995
|
+
/orgs/{organizationId}/sites/{siteId}/search/prewarm:
|
|
8996
|
+
post:
|
|
8997
|
+
operationId: prewarmSiteSearch
|
|
8998
|
+
summary: Prewarm a site's search cache
|
|
8999
|
+
description: Hints the search backend that latency-sensitive site search requests are likely to arrive soon. Call this when a visitor opens the site's search interface.
|
|
9000
|
+
tags:
|
|
9001
|
+
- sites
|
|
9002
|
+
security:
|
|
9003
|
+
- user: []
|
|
9004
|
+
- oauth:
|
|
9005
|
+
- site:search
|
|
9006
|
+
parameters:
|
|
9007
|
+
- $ref: "#/components/parameters/organizationId"
|
|
9008
|
+
- $ref: "#/components/parameters/siteId"
|
|
9009
|
+
responses:
|
|
9010
|
+
"204":
|
|
9011
|
+
description: Search cache warmup accepted
|
|
8675
9012
|
/orgs/{organizationId}/sites/{siteId}/agent-feedback:
|
|
8676
9013
|
post:
|
|
8677
9014
|
operationId: submitSiteAgentFeedback
|
|
8678
|
-
|
|
8679
|
-
|
|
9015
|
+
deprecated: true
|
|
9016
|
+
summary: Submit agent feedback for a site. (Deprecated) use submitAgentFeedbackToSite instead.
|
|
9017
|
+
description: |-
|
|
9018
|
+
Submit feedback from an AI agent about the content of the site, such as outdated, incorrect or missing content encountered while helping a user.
|
|
9019
|
+
|
|
9020
|
+
Deprecated in favour of `submitAgentFeedbackToSite`, which collects feedback about every surface a site exposes to agents. Send the same payload there as a `site-content` subject.
|
|
8680
9021
|
x-internal: true
|
|
8681
9022
|
tags:
|
|
8682
9023
|
- site-insights
|
|
@@ -8722,6 +9063,49 @@ paths:
|
|
|
8722
9063
|
responses:
|
|
8723
9064
|
"204":
|
|
8724
9065
|
description: Feedback submitted
|
|
9066
|
+
/orgs/{organizationId}/sites/{siteId}/agents/feedback:
|
|
9067
|
+
post:
|
|
9068
|
+
operationId: submitAgentFeedbackToSite
|
|
9069
|
+
summary: Submit agent feedback
|
|
9070
|
+
description: Submit structured feedback from an AI agent about an MCP tool or operation, a CLI command, an API endpoint, a site page/mcp, or the product overall. The site collects and owns the feedback rather than being its subject.
|
|
9071
|
+
x-internal: true
|
|
9072
|
+
tags:
|
|
9073
|
+
- site-agent-feedback
|
|
9074
|
+
security:
|
|
9075
|
+
- user: []
|
|
9076
|
+
- oauth:
|
|
9077
|
+
- site:write
|
|
9078
|
+
parameters:
|
|
9079
|
+
- $ref: "#/components/parameters/organizationId"
|
|
9080
|
+
- $ref: "#/components/parameters/siteId"
|
|
9081
|
+
requestBody:
|
|
9082
|
+
required: true
|
|
9083
|
+
content:
|
|
9084
|
+
application/json:
|
|
9085
|
+
schema:
|
|
9086
|
+
$ref: "#/components/schemas/AgentFeedbackInput"
|
|
9087
|
+
responses:
|
|
9088
|
+
"201":
|
|
9089
|
+
description: The feedback was recorded successfully.
|
|
9090
|
+
content:
|
|
9091
|
+
application/json:
|
|
9092
|
+
schema:
|
|
9093
|
+
type: object
|
|
9094
|
+
additionalProperties: false
|
|
9095
|
+
properties:
|
|
9096
|
+
id:
|
|
9097
|
+
type: string
|
|
9098
|
+
description: Unique identifier of the submission.
|
|
9099
|
+
result:
|
|
9100
|
+
type: string
|
|
9101
|
+
description: Message relayed back to the agent, acknowledging the feedback and telling it what happens next.
|
|
9102
|
+
required:
|
|
9103
|
+
- id
|
|
9104
|
+
- result
|
|
9105
|
+
"400":
|
|
9106
|
+
$ref: "#/components/responses/BadRequestError"
|
|
9107
|
+
"403":
|
|
9108
|
+
$ref: "#/components/responses/ForbiddenError"
|
|
8725
9109
|
/orgs/{organizationId}/sites/{siteId}/ask:
|
|
8726
9110
|
post:
|
|
8727
9111
|
operationId: streamAskInSite
|
|
@@ -9523,6 +9907,8 @@ paths:
|
|
|
9523
9907
|
get:
|
|
9524
9908
|
operationId: getSiteTopicById
|
|
9525
9909
|
summary: Get a topic
|
|
9910
|
+
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.
|
|
9911
|
+
x-gitbook-mcp: true
|
|
9526
9912
|
tags:
|
|
9527
9913
|
- site-context
|
|
9528
9914
|
security:
|
|
@@ -11088,7 +11474,7 @@ paths:
|
|
|
11088
11474
|
post:
|
|
11089
11475
|
operationId: createSiteRedirect
|
|
11090
11476
|
summary: Create a URL redirect rule for a site
|
|
11091
|
-
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.
|
|
11477
|
+
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.
|
|
11092
11478
|
x-gitbook-mcp: true
|
|
11093
11479
|
tags:
|
|
11094
11480
|
- site-redirects
|
|
@@ -11333,6 +11719,11 @@ paths:
|
|
|
11333
11719
|
schema:
|
|
11334
11720
|
type: boolean
|
|
11335
11721
|
default: false
|
|
11722
|
+
- name: orderBy
|
|
11723
|
+
in: query
|
|
11724
|
+
description: Sort redirects by the given field.
|
|
11725
|
+
schema:
|
|
11726
|
+
$ref: "#/components/schemas/SiteRedirectOrderBy"
|
|
11336
11727
|
responses:
|
|
11337
11728
|
"200":
|
|
11338
11729
|
description: The list of redirects for the site.
|
|
@@ -12175,7 +12566,7 @@ paths:
|
|
|
12175
12566
|
Updates the installation configuration, then queues a sync operation using the new settings.
|
|
12176
12567
|
A `git` priority queues an import from the selected repository and branch into GitBook; a
|
|
12177
12568
|
`gitbook` priority queues an export from GitBook to the repository. Site imports require a
|
|
12178
|
-
`docs.yaml` file at the configured project directory and return a conflict without saving or
|
|
12569
|
+
`gitbook-docs.yaml` file at the configured project directory and return a conflict without saving or
|
|
12179
12570
|
queuing the sync when the file is missing.
|
|
12180
12571
|
tags:
|
|
12181
12572
|
- git
|
|
@@ -12238,10 +12629,10 @@ paths:
|
|
|
12238
12629
|
properties:
|
|
12239
12630
|
path:
|
|
12240
12631
|
type: string
|
|
12241
|
-
description: Repository-relative path where `docs.yaml` is required.
|
|
12632
|
+
description: Repository-relative path where `gitbook-docs.yaml` is required.
|
|
12242
12633
|
branch:
|
|
12243
12634
|
type: string
|
|
12244
|
-
description: Repository branch where `docs.yaml` is required.
|
|
12635
|
+
description: Repository branch where `gitbook-docs.yaml` is required.
|
|
12245
12636
|
prompt:
|
|
12246
12637
|
type: string
|
|
12247
12638
|
description: Prompt for a coding agent to create and commit the missing file.
|
|
@@ -12509,6 +12900,11 @@ components:
|
|
|
12509
12900
|
site:insights:read: Read site analytics and insights.
|
|
12510
12901
|
site:ask: Ask AI questions across a site's content.
|
|
12511
12902
|
site:search: Search across a site's content.
|
|
12903
|
+
integration:read: Read integrations and where they are installed.
|
|
12904
|
+
integration:installations:read: Read integration installations and their configuration, which can include credentials for third-party services.
|
|
12905
|
+
integration:installations:write: Install and configure integrations on an organization, its spaces and its sites.
|
|
12906
|
+
integration:publish: Publish integrations, which can request their own permissions on your content, and route their events to a development tunnel.
|
|
12907
|
+
integration:delete: Unpublish integrations, permanently deleting them and every installation of them.
|
|
12512
12908
|
openapi:read: Read OpenAPI specifications.
|
|
12513
12909
|
openapi:write: Create, update and delete OpenAPI specifications.
|
|
12514
12910
|
parameters:
|
|
@@ -12977,6 +13373,13 @@ components:
|
|
|
12977
13373
|
description: The unique id of the section within a site
|
|
12978
13374
|
schema:
|
|
12979
13375
|
type: string
|
|
13376
|
+
siteExternalLinkId:
|
|
13377
|
+
name: siteExternalLinkId
|
|
13378
|
+
in: path
|
|
13379
|
+
required: true
|
|
13380
|
+
description: The unique ID of the site external link
|
|
13381
|
+
schema:
|
|
13382
|
+
type: string
|
|
12980
13383
|
siteContextRecordId:
|
|
12981
13384
|
name: siteContextRecordId
|
|
12982
13385
|
in: path
|
|
@@ -13531,6 +13934,9 @@ components:
|
|
|
13531
13934
|
- state
|
|
13532
13935
|
- direction
|
|
13533
13936
|
- startedAt
|
|
13937
|
+
operationTimeout:
|
|
13938
|
+
type: integer
|
|
13939
|
+
description: How long an operation is allowed to run before it is terminated (in milliseconds).
|
|
13534
13940
|
updatedAt:
|
|
13535
13941
|
description: When the Git provider details were last updated
|
|
13536
13942
|
$ref: "#/components/schemas/Timestamp"
|
|
@@ -18830,7 +19236,7 @@ components:
|
|
|
18830
19236
|
type: string
|
|
18831
19237
|
description: Adaptive-content condition controlling whether the page is shown to a visitor. Set to an empty string to remove the condition.
|
|
18832
19238
|
ChangeRequestContentChangeUpdatePage:
|
|
18833
|
-
description: Update an existing page. Its document and/or its metadata (title, icon, description, visibility, adaptive-content condition) can be changed
|
|
19239
|
+
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`.
|
|
18834
19240
|
allOf:
|
|
18835
19241
|
- $ref: "#/components/schemas/RevisionPageUpdate"
|
|
18836
19242
|
- type: object
|
|
@@ -18848,6 +19254,15 @@ components:
|
|
|
18848
19254
|
document:
|
|
18849
19255
|
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.
|
|
18850
19256
|
$ref: "#/components/schemas/Document"
|
|
19257
|
+
into:
|
|
19258
|
+
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.
|
|
19259
|
+
oneOf:
|
|
19260
|
+
- type: string
|
|
19261
|
+
- type: "null"
|
|
19262
|
+
at:
|
|
19263
|
+
type: integer
|
|
19264
|
+
minimum: 0
|
|
19265
|
+
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.
|
|
18851
19266
|
example:
|
|
18852
19267
|
operation: update_page
|
|
18853
19268
|
page: page_id
|
|
@@ -21751,13 +22166,13 @@ components:
|
|
|
21751
22166
|
description: Can the user access the site in the application.
|
|
21752
22167
|
edit:
|
|
21753
22168
|
type: boolean
|
|
21754
|
-
description: Can the user edit content
|
|
22169
|
+
description: Can the user edit content and create draft content in the site.
|
|
21755
22170
|
create:
|
|
21756
22171
|
type: boolean
|
|
21757
|
-
description: Can the user create content
|
|
22172
|
+
description: Can the user create draft content, publish content, and manage the site's content structure.
|
|
21758
22173
|
admin:
|
|
21759
22174
|
type: boolean
|
|
21760
|
-
description: Can the user
|
|
22175
|
+
description: Can the user manage the site content, settings and publish the site.
|
|
21761
22176
|
installIntegration:
|
|
21762
22177
|
type: boolean
|
|
21763
22178
|
description: Can the user install integrations on the site.
|
|
@@ -22740,6 +23155,48 @@ components:
|
|
|
22740
23155
|
$ref: "#/components/schemas/IntegrationInstallationExternalIds"
|
|
22741
23156
|
configuration:
|
|
22742
23157
|
$ref: "#/components/schemas/IntegrationInstallationConfiguration"
|
|
23158
|
+
SiteOnboardingSource:
|
|
23159
|
+
type: string
|
|
23160
|
+
description: Where the user's docs are coming from today.
|
|
23161
|
+
enum:
|
|
23162
|
+
- markdown-in-git
|
|
23163
|
+
- import
|
|
23164
|
+
- template
|
|
23165
|
+
SiteOnboardingAudience:
|
|
23166
|
+
type: string
|
|
23167
|
+
description: Who the user wants to be able to access their site.
|
|
23168
|
+
enum:
|
|
23169
|
+
- public
|
|
23170
|
+
- mixed
|
|
23171
|
+
- protected
|
|
23172
|
+
- internal
|
|
23173
|
+
SiteOnboardingInterest:
|
|
23174
|
+
type: string
|
|
23175
|
+
description: Something the user is interested in doing with the site.
|
|
23176
|
+
enum:
|
|
23177
|
+
- adaptive-content
|
|
23178
|
+
- api-docs
|
|
23179
|
+
- proactive-agent
|
|
23180
|
+
SiteOnboardingPreferences:
|
|
23181
|
+
type: object
|
|
23182
|
+
description: Preferences collected from the user during site onboarding, used to tailor recommendations and to apply their initial setup choices.
|
|
23183
|
+
properties:
|
|
23184
|
+
source:
|
|
23185
|
+
oneOf:
|
|
23186
|
+
- $ref: "#/components/schemas/SiteOnboardingSource"
|
|
23187
|
+
- type: "null"
|
|
23188
|
+
audience:
|
|
23189
|
+
oneOf:
|
|
23190
|
+
- $ref: "#/components/schemas/SiteOnboardingAudience"
|
|
23191
|
+
- type: "null"
|
|
23192
|
+
interests:
|
|
23193
|
+
type: array
|
|
23194
|
+
items:
|
|
23195
|
+
$ref: "#/components/schemas/SiteOnboardingInterest"
|
|
23196
|
+
required:
|
|
23197
|
+
- source
|
|
23198
|
+
- audience
|
|
23199
|
+
- interests
|
|
22743
23200
|
CreateOrganization:
|
|
22744
23201
|
type: object
|
|
22745
23202
|
properties:
|
|
@@ -22747,10 +23204,9 @@ components:
|
|
|
22747
23204
|
$ref: "#/components/schemas/OrganizationTitle"
|
|
22748
23205
|
emailDomains:
|
|
22749
23206
|
$ref: "#/components/schemas/OrganizationEmailDomains"
|
|
22750
|
-
|
|
22751
|
-
|
|
22752
|
-
|
|
22753
|
-
$ref: "#/components/schemas/OrganizationUseCase"
|
|
23207
|
+
onboardingPreferences:
|
|
23208
|
+
description: Preferences collected from the user during onboarding, to apply to the organization's default site. Only used when `withDefaultSite` is true.
|
|
23209
|
+
$ref: "#/components/schemas/SiteOnboardingPreferences"
|
|
22754
23210
|
required:
|
|
22755
23211
|
- title
|
|
22756
23212
|
SiteSectionTitle:
|
|
@@ -22936,11 +23392,12 @@ components:
|
|
|
22936
23392
|
description: Whether the site section group is draft and not live.
|
|
22937
23393
|
children:
|
|
22938
23394
|
type: array
|
|
22939
|
-
description: List of all child sections and
|
|
23395
|
+
description: List of all child sections, groups, and external links nested under this group
|
|
22940
23396
|
items:
|
|
22941
23397
|
oneOf:
|
|
22942
23398
|
- $ref: "#/components/schemas/SiteSection"
|
|
22943
23399
|
- $ref: "#/components/schemas/SiteSectionGroup"
|
|
23400
|
+
- $ref: "#/components/schemas/SiteExternalLink"
|
|
22944
23401
|
icon:
|
|
22945
23402
|
$ref: "#/components/schemas/Icon"
|
|
22946
23403
|
required:
|
|
@@ -22950,6 +23407,45 @@ components:
|
|
|
22950
23407
|
- draft
|
|
22951
23408
|
- sections
|
|
22952
23409
|
- children
|
|
23410
|
+
SiteExternalLink:
|
|
23411
|
+
type: object
|
|
23412
|
+
properties:
|
|
23413
|
+
object:
|
|
23414
|
+
type: string
|
|
23415
|
+
description: The object type, which is always "site-external-link"
|
|
23416
|
+
enum:
|
|
23417
|
+
- site-external-link
|
|
23418
|
+
id:
|
|
23419
|
+
type: string
|
|
23420
|
+
description: Unique identifier of the external link
|
|
23421
|
+
title:
|
|
23422
|
+
$ref: "#/components/schemas/SiteSectionTitle"
|
|
23423
|
+
localizedTitle:
|
|
23424
|
+
$ref: "#/components/schemas/LocalizedString128"
|
|
23425
|
+
description:
|
|
23426
|
+
$ref: "#/components/schemas/SiteSectionDescription"
|
|
23427
|
+
localizedDescription:
|
|
23428
|
+
$ref: "#/components/schemas/LocalizedString256"
|
|
23429
|
+
icon:
|
|
23430
|
+
$ref: "#/components/schemas/Icon"
|
|
23431
|
+
url:
|
|
23432
|
+
$ref: "#/components/schemas/URL"
|
|
23433
|
+
description: Absolute HTTP or HTTPS URL opened by the external link
|
|
23434
|
+
sectionGroup:
|
|
23435
|
+
type: string
|
|
23436
|
+
description: ID of the section group the external link belongs to. Omitted for a root link.
|
|
23437
|
+
draft:
|
|
23438
|
+
type: boolean
|
|
23439
|
+
description: Whether the external link is draft and not live
|
|
23440
|
+
condition:
|
|
23441
|
+
description: Conditional expression used to evaluate whether the external link should be shown to the site's visitor
|
|
23442
|
+
$ref: "#/components/schemas/Expression"
|
|
23443
|
+
required:
|
|
23444
|
+
- object
|
|
23445
|
+
- id
|
|
23446
|
+
- title
|
|
23447
|
+
- url
|
|
23448
|
+
- draft
|
|
22953
23449
|
SiteStructure:
|
|
22954
23450
|
oneOf:
|
|
22955
23451
|
- type: object
|
|
@@ -22964,6 +23460,7 @@ components:
|
|
|
22964
23460
|
oneOf:
|
|
22965
23461
|
- $ref: "#/components/schemas/SiteSection"
|
|
22966
23462
|
- $ref: "#/components/schemas/SiteSectionGroup"
|
|
23463
|
+
- $ref: "#/components/schemas/SiteExternalLink"
|
|
22967
23464
|
required:
|
|
22968
23465
|
- type
|
|
22969
23466
|
- structure
|
|
@@ -26371,15 +26868,16 @@ components:
|
|
|
26371
26868
|
- site-space
|
|
26372
26869
|
- site-section
|
|
26373
26870
|
- site-section-group
|
|
26871
|
+
- site-external-link
|
|
26374
26872
|
id:
|
|
26375
26873
|
type: string
|
|
26376
|
-
description: Unique identifier for the site structure item (site space, site section
|
|
26874
|
+
description: Unique identifier for the site structure item (site space, site section, site section group, or external link).
|
|
26377
26875
|
required:
|
|
26378
26876
|
- type
|
|
26379
26877
|
- id
|
|
26380
26878
|
SiteStructureItemMovePosition:
|
|
26381
26879
|
type: object
|
|
26382
|
-
description: Position at which to move the site structure item
|
|
26880
|
+
description: Position at which to move the site structure item relative to any sibling of the same structure level.
|
|
26383
26881
|
properties:
|
|
26384
26882
|
before:
|
|
26385
26883
|
$ref: "#/components/schemas/SiteStructureItemPointer"
|
|
@@ -26389,12 +26887,13 @@ components:
|
|
|
26389
26887
|
title: Site Structure Item
|
|
26390
26888
|
type: object
|
|
26391
26889
|
description: |
|
|
26392
|
-
A site structure item can be a site space, a site section
|
|
26890
|
+
A site structure item can be a site space, a site section, a site section group, or an external link.
|
|
26393
26891
|
It is used to represent the structure of a site.
|
|
26394
26892
|
oneOf:
|
|
26395
26893
|
- $ref: "#/components/schemas/SiteSpace"
|
|
26396
26894
|
- $ref: "#/components/schemas/SiteSection"
|
|
26397
26895
|
- $ref: "#/components/schemas/SiteSectionGroup"
|
|
26896
|
+
- $ref: "#/components/schemas/SiteExternalLink"
|
|
26398
26897
|
BillingOperationPreviewResponse:
|
|
26399
26898
|
description: |
|
|
26400
26899
|
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.
|
|
@@ -26601,6 +27100,209 @@ components:
|
|
|
26601
27100
|
enum:
|
|
26602
27101
|
- mcp
|
|
26603
27102
|
- assistant
|
|
27103
|
+
AgentFeedbackReportedBy:
|
|
27104
|
+
type: object
|
|
27105
|
+
additionalProperties: false
|
|
27106
|
+
description: The agent that reported the feedback. It must never identify the end user the agent is acting on behalf of.
|
|
27107
|
+
properties:
|
|
27108
|
+
model:
|
|
27109
|
+
type: string
|
|
27110
|
+
maxLength: 100
|
|
27111
|
+
description: Self-reported model powering the agent.
|
|
27112
|
+
userAgent:
|
|
27113
|
+
type: string
|
|
27114
|
+
maxLength: 512
|
|
27115
|
+
description: User-Agent the agent itself presented, for example `claude-code/1.2.3`. It is what identifies the harness the agent ran in.
|
|
27116
|
+
onDemand:
|
|
27117
|
+
type: boolean
|
|
27118
|
+
default: false
|
|
27119
|
+
description: Whether the user explicitly asked the agent to submit this feedback.
|
|
27120
|
+
AgentFeedbackSubjectMCPTool:
|
|
27121
|
+
type: object
|
|
27122
|
+
additionalProperties: false
|
|
27123
|
+
description: Feedback about a tool exposed by an MCP server.
|
|
27124
|
+
properties:
|
|
27125
|
+
kind:
|
|
27126
|
+
type: string
|
|
27127
|
+
enum:
|
|
27128
|
+
- mcp-tool
|
|
27129
|
+
toolName:
|
|
27130
|
+
type: string
|
|
27131
|
+
maxLength: 200
|
|
27132
|
+
description: Name of the tool the agent called, as it was exposed to the agent.
|
|
27133
|
+
target:
|
|
27134
|
+
type: string
|
|
27135
|
+
maxLength: 200
|
|
27136
|
+
description: What the tool was pointed at, for a tool that dispatches to something else rather than doing one fixed thing. For a tool that invokes an API operation, the identifier of that operation.
|
|
27137
|
+
required:
|
|
27138
|
+
- kind
|
|
27139
|
+
- toolName
|
|
27140
|
+
AgentFeedbackSubjectCliCommand:
|
|
27141
|
+
type: object
|
|
27142
|
+
additionalProperties: false
|
|
27143
|
+
description: Feedback about a command exposed by a command line interface.
|
|
27144
|
+
properties:
|
|
27145
|
+
kind:
|
|
27146
|
+
type: string
|
|
27147
|
+
enum:
|
|
27148
|
+
- cli-command
|
|
27149
|
+
command:
|
|
27150
|
+
type: string
|
|
27151
|
+
maxLength: 200
|
|
27152
|
+
description: The command the agent ran, without its arguments. Do not include any auth or other sensitive information.
|
|
27153
|
+
flags:
|
|
27154
|
+
type: array
|
|
27155
|
+
maxItems: 50
|
|
27156
|
+
description: Names of the flags passed to the command. It must never contain their values.
|
|
27157
|
+
items:
|
|
27158
|
+
type: string
|
|
27159
|
+
maxLength: 100
|
|
27160
|
+
required:
|
|
27161
|
+
- kind
|
|
27162
|
+
- command
|
|
27163
|
+
AgentFeedbackSubjectApiEndpoint:
|
|
27164
|
+
type: object
|
|
27165
|
+
additionalProperties: false
|
|
27166
|
+
description: Feedback about an API endpoint the agent called directly, without an MCP server or a command line interface in between.
|
|
27167
|
+
properties:
|
|
27168
|
+
kind:
|
|
27169
|
+
type: string
|
|
27170
|
+
enum:
|
|
27171
|
+
- api-endpoint
|
|
27172
|
+
method:
|
|
27173
|
+
type: string
|
|
27174
|
+
description: HTTP method of the endpoint.
|
|
27175
|
+
enum:
|
|
27176
|
+
- GET
|
|
27177
|
+
- POST
|
|
27178
|
+
- PUT
|
|
27179
|
+
- PATCH
|
|
27180
|
+
- DELETE
|
|
27181
|
+
- HEAD
|
|
27182
|
+
- OPTIONS
|
|
27183
|
+
path:
|
|
27184
|
+
type: string
|
|
27185
|
+
maxLength: 500
|
|
27186
|
+
description: Templated path of the endpoint, for example `/v1/orders/{orderId}/fulfill`. It must never contain resolved identifiers or query string values.
|
|
27187
|
+
required:
|
|
27188
|
+
- kind
|
|
27189
|
+
- method
|
|
27190
|
+
- path
|
|
27191
|
+
AgentFeedbackSubjectDocumentation:
|
|
27192
|
+
type: object
|
|
27193
|
+
additionalProperties: false
|
|
27194
|
+
description: Feedback about published documentation, such as a page that is outdated, incorrect, or missing information the agent needed to help its user.
|
|
27195
|
+
properties:
|
|
27196
|
+
kind:
|
|
27197
|
+
type: string
|
|
27198
|
+
enum:
|
|
27199
|
+
- documentation
|
|
27200
|
+
url:
|
|
27201
|
+
description: URL of the content the feedback is about.
|
|
27202
|
+
$ref: "#/components/schemas/URL"
|
|
27203
|
+
required:
|
|
27204
|
+
- kind
|
|
27205
|
+
- url
|
|
27206
|
+
AgentFeedbackSubjectGeneric:
|
|
27207
|
+
type: object
|
|
27208
|
+
additionalProperties: false
|
|
27209
|
+
description: Feedback with no single tool, command, endpoint, or page behind it, such as product friction or a capability the agent expected to find and could not.
|
|
27210
|
+
properties:
|
|
27211
|
+
kind:
|
|
27212
|
+
type: string
|
|
27213
|
+
enum:
|
|
27214
|
+
- generic
|
|
27215
|
+
required:
|
|
27216
|
+
- kind
|
|
27217
|
+
AgentFeedbackSubject:
|
|
27218
|
+
description: What the feedback is about. `kind` determines both the shape of the subject and the surface the agent was working through.
|
|
27219
|
+
oneOf:
|
|
27220
|
+
- $ref: "#/components/schemas/AgentFeedbackSubjectMCPTool"
|
|
27221
|
+
- $ref: "#/components/schemas/AgentFeedbackSubjectCliCommand"
|
|
27222
|
+
- $ref: "#/components/schemas/AgentFeedbackSubjectApiEndpoint"
|
|
27223
|
+
- $ref: "#/components/schemas/AgentFeedbackSubjectDocumentation"
|
|
27224
|
+
- $ref: "#/components/schemas/AgentFeedbackSubjectGeneric"
|
|
27225
|
+
discriminator:
|
|
27226
|
+
propertyName: kind
|
|
27227
|
+
AgentFeedbackContent:
|
|
27228
|
+
type: object
|
|
27229
|
+
additionalProperties: false
|
|
27230
|
+
description: The content of the feedback. It must never contain parameter values, request or response bodies, credentials, or anything identifying the end user the agent acted for.
|
|
27231
|
+
properties:
|
|
27232
|
+
category:
|
|
27233
|
+
type: string
|
|
27234
|
+
description: |-
|
|
27235
|
+
Classification of the feedback:
|
|
27236
|
+
- Usability: The subject was hard to understand or use correctly, such as a confusing name or unclear parameters.
|
|
27237
|
+
- Reliability: The subject behaved inconsistently, failed unexpectedly, or returned unusable results.
|
|
27238
|
+
- Documentation: The description, schema, or guidance about the subject was missing, unclear, or misleading.
|
|
27239
|
+
- Efficiency: Reaching the outcome took more calls, steps, or tokens than it should have.
|
|
27240
|
+
- Interoperability: The subject did not compose well with other tools, operations, or formats.
|
|
27241
|
+
- Could not accomplish: Nothing exposed to the agent could accomplish what it needed to do.
|
|
27242
|
+
enum:
|
|
27243
|
+
- usability
|
|
27244
|
+
- reliability
|
|
27245
|
+
- documentation
|
|
27246
|
+
- efficiency
|
|
27247
|
+
- interoperability
|
|
27248
|
+
- could-not-accomplish
|
|
27249
|
+
severity:
|
|
27250
|
+
type: string
|
|
27251
|
+
description: How much the issue impeded the agent.
|
|
27252
|
+
enum:
|
|
27253
|
+
- low
|
|
27254
|
+
- medium
|
|
27255
|
+
- high
|
|
27256
|
+
goal:
|
|
27257
|
+
description: What the agent was working towards when it ran into the issue.
|
|
27258
|
+
$ref: "#/components/schemas/AgentGoal"
|
|
27259
|
+
summary:
|
|
27260
|
+
type: string
|
|
27261
|
+
minLength: 1
|
|
27262
|
+
maxLength: 256
|
|
27263
|
+
description: A short summary of what went wrong, in the agent's own words.
|
|
27264
|
+
detail:
|
|
27265
|
+
type: string
|
|
27266
|
+
maxLength: 4096
|
|
27267
|
+
description: Additional explanation of the issue and how the agent ran into it.
|
|
27268
|
+
workaround:
|
|
27269
|
+
type: string
|
|
27270
|
+
maxLength: 2048
|
|
27271
|
+
description: How the agent worked around the issue, when it managed to.
|
|
27272
|
+
metrics:
|
|
27273
|
+
type: object
|
|
27274
|
+
additionalProperties: false
|
|
27275
|
+
description: How the agent interacted with the subject before reporting.
|
|
27276
|
+
properties:
|
|
27277
|
+
callCount:
|
|
27278
|
+
type: integer
|
|
27279
|
+
minimum: 0
|
|
27280
|
+
description: Number of times the agent used the subject.
|
|
27281
|
+
successCount:
|
|
27282
|
+
type: integer
|
|
27283
|
+
minimum: 0
|
|
27284
|
+
description: Number of those uses that produced a usable result.
|
|
27285
|
+
retryCount:
|
|
27286
|
+
type: integer
|
|
27287
|
+
minimum: 0
|
|
27288
|
+
description: Number of those uses that were retries after a failure.
|
|
27289
|
+
required:
|
|
27290
|
+
- category
|
|
27291
|
+
- summary
|
|
27292
|
+
AgentFeedbackInput:
|
|
27293
|
+
type: object
|
|
27294
|
+
additionalProperties: false
|
|
27295
|
+
description: Feedback submitted by an AI agent about a tool, command, endpoint or page it worked with. `reportedBy` and `feedback` have the same shape whatever the feedback is about; only `subject` varies.
|
|
27296
|
+
properties:
|
|
27297
|
+
reportedBy:
|
|
27298
|
+
$ref: "#/components/schemas/AgentFeedbackReportedBy"
|
|
27299
|
+
subject:
|
|
27300
|
+
$ref: "#/components/schemas/AgentFeedbackSubject"
|
|
27301
|
+
feedback:
|
|
27302
|
+
$ref: "#/components/schemas/AgentFeedbackContent"
|
|
27303
|
+
required:
|
|
27304
|
+
- subject
|
|
27305
|
+
- feedback
|
|
26604
27306
|
SiteInsightsSession:
|
|
26605
27307
|
type: object
|
|
26606
27308
|
description: Identifiers for a GitBook site session, used for analytics and adaptive content.
|
|
@@ -26829,12 +27531,14 @@ components:
|
|
|
26829
27531
|
- Incorrect content: The content is factually wrong or misleading, leading users astray regardless of whether it was ever correct.
|
|
26830
27532
|
- Content gap: The content is missing important information that should be present to answer user questions effectively.
|
|
26831
27533
|
- Broken link: A URL on the site returns a 404, and can be resolved by creating a redirect or a new page.
|
|
27534
|
+
- 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.
|
|
26832
27535
|
- Other: Any other type of finding not covered by the above categories.
|
|
26833
27536
|
enum:
|
|
26834
27537
|
- content-outdated
|
|
26835
27538
|
- content-incorrect
|
|
26836
27539
|
- content-gap
|
|
26837
27540
|
- broken-link
|
|
27541
|
+
- outbound-link-error
|
|
26838
27542
|
- other
|
|
26839
27543
|
SiteFindingSeverity:
|
|
26840
27544
|
type: string
|
|
@@ -26872,67 +27576,6 @@ components:
|
|
|
26872
27576
|
description: The source path to redirect from.
|
|
26873
27577
|
maxLength: 512
|
|
26874
27578
|
pattern: ^\/(?!\*)(?!.*\*.+)(?:[A-Za-z0-9\-._~+]|%[0-9A-Fa-f]{2})+(?:\/(?:[A-Za-z0-9\-._~+]|%[0-9A-Fa-f]{2})+)*(?:\/\*|\*)?$
|
|
26875
|
-
SiteRedirectDestinationSiteSection:
|
|
26876
|
-
type: object
|
|
26877
|
-
properties:
|
|
26878
|
-
kind:
|
|
26879
|
-
type: string
|
|
26880
|
-
enum:
|
|
26881
|
-
- site-section
|
|
26882
|
-
siteSectionId:
|
|
26883
|
-
type: string
|
|
26884
|
-
description: Unique identifier for the site section to redirect to
|
|
26885
|
-
required:
|
|
26886
|
-
- kind
|
|
26887
|
-
- siteSectionId
|
|
26888
|
-
SiteRedirectDestinationSiteSpace:
|
|
26889
|
-
type: object
|
|
26890
|
-
properties:
|
|
26891
|
-
kind:
|
|
26892
|
-
type: string
|
|
26893
|
-
enum:
|
|
26894
|
-
- site-space
|
|
26895
|
-
siteSpaceId:
|
|
26896
|
-
type: string
|
|
26897
|
-
description: Unique identifier for the site space to redirect to
|
|
26898
|
-
required:
|
|
26899
|
-
- kind
|
|
26900
|
-
- siteSpaceId
|
|
26901
|
-
SiteRedirectDestinationPage:
|
|
26902
|
-
type: object
|
|
26903
|
-
properties:
|
|
26904
|
-
kind:
|
|
26905
|
-
type: string
|
|
26906
|
-
enum:
|
|
26907
|
-
- site-page
|
|
26908
|
-
siteSpaceId:
|
|
26909
|
-
type: string
|
|
26910
|
-
description: Unique identifier for the site space of the page
|
|
26911
|
-
pageId:
|
|
26912
|
-
type: string
|
|
26913
|
-
description: Unique identifier for the page within the site space to redirect to
|
|
26914
|
-
required:
|
|
26915
|
-
- kind
|
|
26916
|
-
- siteSpaceId
|
|
26917
|
-
- pageId
|
|
26918
|
-
SiteRedirectDestinationExternal:
|
|
26919
|
-
type: object
|
|
26920
|
-
properties:
|
|
26921
|
-
kind:
|
|
26922
|
-
type: string
|
|
26923
|
-
enum:
|
|
26924
|
-
- external
|
|
26925
|
-
url:
|
|
26926
|
-
$ref: "#/components/schemas/URL"
|
|
26927
|
-
required:
|
|
26928
|
-
- kind
|
|
26929
|
-
- url
|
|
26930
|
-
SiteRedirectDestination:
|
|
26931
|
-
oneOf:
|
|
26932
|
-
- $ref: "#/components/schemas/SiteRedirectDestinationSiteSection"
|
|
26933
|
-
- $ref: "#/components/schemas/SiteRedirectDestinationSiteSpace"
|
|
26934
|
-
- $ref: "#/components/schemas/SiteRedirectDestinationPage"
|
|
26935
|
-
- $ref: "#/components/schemas/SiteRedirectDestinationExternal"
|
|
26936
27579
|
SiteRedirectInputDestinationPath:
|
|
26937
27580
|
type: object
|
|
26938
27581
|
properties:
|
|
@@ -26950,10 +27593,6 @@ components:
|
|
|
26950
27593
|
- kind
|
|
26951
27594
|
- spaceId
|
|
26952
27595
|
- path
|
|
26953
|
-
SiteRedirectInputDestination:
|
|
26954
|
-
oneOf:
|
|
26955
|
-
- $ref: "#/components/schemas/SiteRedirectDestination"
|
|
26956
|
-
- $ref: "#/components/schemas/SiteRedirectInputDestinationPath"
|
|
26957
27596
|
SiteFindingBrokenLinkAction:
|
|
26958
27597
|
type: object
|
|
26959
27598
|
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).
|
|
@@ -26964,10 +27603,48 @@ components:
|
|
|
26964
27603
|
type: boolean
|
|
26965
27604
|
description: Whether the redirect appends the wildcard-matched suffix of the source path to the destination.
|
|
26966
27605
|
destination:
|
|
26967
|
-
$ref: "#/components/schemas/
|
|
27606
|
+
$ref: "#/components/schemas/SiteRedirectInputDestinationPath"
|
|
26968
27607
|
required:
|
|
26969
27608
|
- source
|
|
26970
27609
|
- destination
|
|
27610
|
+
SiteFindingOutboundLink:
|
|
27611
|
+
type: object
|
|
27612
|
+
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."
|
|
27613
|
+
properties:
|
|
27614
|
+
url:
|
|
27615
|
+
type: string
|
|
27616
|
+
format: uri
|
|
27617
|
+
description: The external URL that fails to resolve.
|
|
27618
|
+
status:
|
|
27619
|
+
type: string
|
|
27620
|
+
description: Current health status of the URL for this site.
|
|
27621
|
+
enum:
|
|
27622
|
+
- pending
|
|
27623
|
+
- healthy
|
|
27624
|
+
- suspect
|
|
27625
|
+
- failed
|
|
27626
|
+
- recovering
|
|
27627
|
+
- canceled
|
|
27628
|
+
failureKind:
|
|
27629
|
+
type: string
|
|
27630
|
+
description: Classification of the confirmed failure.
|
|
27631
|
+
enum:
|
|
27632
|
+
- client-error
|
|
27633
|
+
- server-error
|
|
27634
|
+
- redirect
|
|
27635
|
+
- dns
|
|
27636
|
+
- tls
|
|
27637
|
+
- connection
|
|
27638
|
+
- timeout
|
|
27639
|
+
httpStatus:
|
|
27640
|
+
type: number
|
|
27641
|
+
description: HTTP status code of the last observation, when one was received.
|
|
27642
|
+
checkedAt:
|
|
27643
|
+
$ref: "#/components/schemas/Timestamp"
|
|
27644
|
+
description: When the URL was last observed over HTTP.
|
|
27645
|
+
required:
|
|
27646
|
+
- url
|
|
27647
|
+
- status
|
|
26971
27648
|
SiteFinding:
|
|
26972
27649
|
type: object
|
|
26973
27650
|
properties:
|
|
@@ -27013,6 +27690,8 @@ components:
|
|
|
27013
27690
|
description: Whether an AI agent should be able to fix this finding directly
|
|
27014
27691
|
brokenLinkAction:
|
|
27015
27692
|
$ref: "#/components/schemas/SiteFindingBrokenLinkAction"
|
|
27693
|
+
outboundLink:
|
|
27694
|
+
$ref: "#/components/schemas/SiteFindingOutboundLink"
|
|
27016
27695
|
createdAt:
|
|
27017
27696
|
$ref: "#/components/schemas/Timestamp"
|
|
27018
27697
|
updatedAt:
|
|
@@ -30718,6 +31397,16 @@ components:
|
|
|
30718
31397
|
- claude-code
|
|
30719
31398
|
- codex
|
|
30720
31399
|
- opencode
|
|
31400
|
+
- gptbot
|
|
31401
|
+
- claudebot
|
|
31402
|
+
- meta-fetcher
|
|
31403
|
+
- grok
|
|
31404
|
+
- github-copilot
|
|
31405
|
+
- meta-webindexer
|
|
31406
|
+
- meta-ads
|
|
31407
|
+
- duckassist
|
|
31408
|
+
- amzn-searchbot
|
|
31409
|
+
- amzn-user
|
|
30721
31410
|
SiteInsightsPageNotFoundType:
|
|
30722
31411
|
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.
|
|
30723
31412
|
type: string
|
|
@@ -31571,6 +32260,75 @@ components:
|
|
|
31571
32260
|
type: number
|
|
31572
32261
|
revenue:
|
|
31573
32262
|
type: string
|
|
32263
|
+
SiteRedirectOrderBy:
|
|
32264
|
+
type: string
|
|
32265
|
+
enum:
|
|
32266
|
+
- createdAt
|
|
32267
|
+
- updatedAt
|
|
32268
|
+
- source
|
|
32269
|
+
default: createdAt
|
|
32270
|
+
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'.
|
|
32271
|
+
SiteRedirectDestinationSiteSection:
|
|
32272
|
+
type: object
|
|
32273
|
+
properties:
|
|
32274
|
+
kind:
|
|
32275
|
+
type: string
|
|
32276
|
+
enum:
|
|
32277
|
+
- site-section
|
|
32278
|
+
siteSectionId:
|
|
32279
|
+
type: string
|
|
32280
|
+
description: Unique identifier for the site section to redirect to
|
|
32281
|
+
required:
|
|
32282
|
+
- kind
|
|
32283
|
+
- siteSectionId
|
|
32284
|
+
SiteRedirectDestinationSiteSpace:
|
|
32285
|
+
type: object
|
|
32286
|
+
properties:
|
|
32287
|
+
kind:
|
|
32288
|
+
type: string
|
|
32289
|
+
enum:
|
|
32290
|
+
- site-space
|
|
32291
|
+
siteSpaceId:
|
|
32292
|
+
type: string
|
|
32293
|
+
description: Unique identifier for the site space to redirect to
|
|
32294
|
+
required:
|
|
32295
|
+
- kind
|
|
32296
|
+
- siteSpaceId
|
|
32297
|
+
SiteRedirectDestinationPage:
|
|
32298
|
+
type: object
|
|
32299
|
+
properties:
|
|
32300
|
+
kind:
|
|
32301
|
+
type: string
|
|
32302
|
+
enum:
|
|
32303
|
+
- site-page
|
|
32304
|
+
siteSpaceId:
|
|
32305
|
+
type: string
|
|
32306
|
+
description: Unique identifier for the site space of the page
|
|
32307
|
+
pageId:
|
|
32308
|
+
type: string
|
|
32309
|
+
description: Unique identifier for the page within the site space to redirect to
|
|
32310
|
+
required:
|
|
32311
|
+
- kind
|
|
32312
|
+
- siteSpaceId
|
|
32313
|
+
- pageId
|
|
32314
|
+
SiteRedirectDestinationExternal:
|
|
32315
|
+
type: object
|
|
32316
|
+
properties:
|
|
32317
|
+
kind:
|
|
32318
|
+
type: string
|
|
32319
|
+
enum:
|
|
32320
|
+
- external
|
|
32321
|
+
url:
|
|
32322
|
+
$ref: "#/components/schemas/URL"
|
|
32323
|
+
required:
|
|
32324
|
+
- kind
|
|
32325
|
+
- url
|
|
32326
|
+
SiteRedirectDestination:
|
|
32327
|
+
oneOf:
|
|
32328
|
+
- $ref: "#/components/schemas/SiteRedirectDestinationSiteSection"
|
|
32329
|
+
- $ref: "#/components/schemas/SiteRedirectDestinationSiteSpace"
|
|
32330
|
+
- $ref: "#/components/schemas/SiteRedirectDestinationPage"
|
|
32331
|
+
- $ref: "#/components/schemas/SiteRedirectDestinationExternal"
|
|
31574
32332
|
SiteRedirect:
|
|
31575
32333
|
type: object
|
|
31576
32334
|
properties:
|
|
@@ -31591,6 +32349,14 @@ components:
|
|
|
31591
32349
|
description: Capture and append the wildcard-matched suffix to the destination URL.
|
|
31592
32350
|
destination:
|
|
31593
32351
|
$ref: "#/components/schemas/SiteRedirectDestination"
|
|
32352
|
+
createdAt:
|
|
32353
|
+
type: string
|
|
32354
|
+
format: date-time
|
|
32355
|
+
description: When the redirect was created.
|
|
32356
|
+
updatedAt:
|
|
32357
|
+
type: string
|
|
32358
|
+
format: date-time
|
|
32359
|
+
description: When the redirect was last updated. Absent if never updated since creation.
|
|
31594
32360
|
required:
|
|
31595
32361
|
- object
|
|
31596
32362
|
- id
|
|
@@ -31598,6 +32364,11 @@ components:
|
|
|
31598
32364
|
- draft
|
|
31599
32365
|
- captureWildcard
|
|
31600
32366
|
- destination
|
|
32367
|
+
- createdAt
|
|
32368
|
+
SiteRedirectInputDestination:
|
|
32369
|
+
oneOf:
|
|
32370
|
+
- $ref: "#/components/schemas/SiteRedirectDestination"
|
|
32371
|
+
- $ref: "#/components/schemas/SiteRedirectInputDestinationPath"
|
|
31601
32372
|
SiteMcpServerName:
|
|
31602
32373
|
type: string
|
|
31603
32374
|
description: Name of the MCP server
|
|
@@ -33351,7 +34122,7 @@ components:
|
|
|
33351
34122
|
GitSyncSiteConfig:
|
|
33352
34123
|
type: object
|
|
33353
34124
|
description: |
|
|
33354
|
-
Schema for a site `docs.yaml` file — the canonical contract for what
|
|
34125
|
+
Schema for a site `gitbook-docs.yaml` file — the canonical contract for what
|
|
33355
34126
|
can be authored in Git Sync to drive a site's structure.
|
|
33356
34127
|
|
|
33357
34128
|
The file lives at the root of the site's project directory in the synced
|