@gitbook/api 0.206.0 → 0.208.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 +791 -84
- package/dist/constants.d.ts +19 -6
- package/dist/index.cjs +191 -13
- package/dist/index.js +170 -13
- package/package.json +1 -1
- package/spec/openapi.json +2139 -378
- package/spec/openapi.yaml +1386 -184
package/spec/openapi.yaml
CHANGED
|
@@ -505,6 +505,12 @@ tags:
|
|
|
505
505
|
{% openapi-schemas spec="gitbook" schemas="Subdomain" grouped="false" %}
|
|
506
506
|
The Subdomain object
|
|
507
507
|
{% endopenapi-schemas %}
|
|
508
|
+
- name: scim
|
|
509
|
+
x-page-icon: users
|
|
510
|
+
x-page-title: SCIM
|
|
511
|
+
x-page-description: Provision organization members automatically from an identity provider.
|
|
512
|
+
description: |
|
|
513
|
+
Connect an identity provider such as Okta or Microsoft Entra ID to provision your organization's members with SCIM.
|
|
508
514
|
- name: storage
|
|
509
515
|
x-page-icon: database
|
|
510
516
|
x-page-title: Storage
|
|
@@ -796,7 +802,8 @@ paths:
|
|
|
796
802
|
operationId: moveSpace
|
|
797
803
|
summary: Move a space to a different collection or position
|
|
798
804
|
description: Moves a space to a new parent collection and/or a new position within the hierarchy.
|
|
799
|
-
x-gitbook-mcp:
|
|
805
|
+
x-gitbook-mcp:
|
|
806
|
+
destructive: true
|
|
800
807
|
tags:
|
|
801
808
|
- spaces
|
|
802
809
|
security:
|
|
@@ -907,7 +914,8 @@ paths:
|
|
|
907
914
|
operationId: importGitRepository
|
|
908
915
|
summary: Pull content into a space from a connected Git repository
|
|
909
916
|
description: Triggers an import from provided Git repository into the space, updating the space's content to match the repository (if not standalone). This is an async operation — it runs in the background after the request returns 204.
|
|
910
|
-
x-gitbook-mcp:
|
|
917
|
+
x-gitbook-mcp:
|
|
918
|
+
destructive: true
|
|
911
919
|
tags:
|
|
912
920
|
- space-git
|
|
913
921
|
security:
|
|
@@ -932,7 +940,8 @@ paths:
|
|
|
932
940
|
operationId: exportToGitRepository
|
|
933
941
|
summary: Push space content to a connected Git repository
|
|
934
942
|
description: Triggers an export of the space's current content to the provided Git repository. This is an async operation — the export runs in the background after the request returns 204.
|
|
935
|
-
x-gitbook-mcp:
|
|
943
|
+
x-gitbook-mcp:
|
|
944
|
+
destructive: true
|
|
936
945
|
tags:
|
|
937
946
|
- space-git
|
|
938
947
|
security:
|
|
@@ -1198,7 +1207,8 @@ paths:
|
|
|
1198
1207
|
operationId: applyTemplateToSpace
|
|
1199
1208
|
summary: Apply a content template to populate a space with initial pages
|
|
1200
1209
|
description: Populates a space with pages and structure from a specified template, bootstrapping it with a standard documentation layout. Use this to initialise a new space rather than creating pages manually. Optionally apply the template to a specific change request instead of main content by providing the changeRequestId field.
|
|
1201
|
-
x-gitbook-mcp:
|
|
1210
|
+
x-gitbook-mcp:
|
|
1211
|
+
destructive: true
|
|
1202
1212
|
tags:
|
|
1203
1213
|
- space-content
|
|
1204
1214
|
security:
|
|
@@ -1315,7 +1325,8 @@ paths:
|
|
|
1315
1325
|
operationId: getPageById
|
|
1316
1326
|
summary: Get a single page from a space by its ID
|
|
1317
1327
|
description: Retrieves a page's metadata, content, and document structure from a space's current revision by its page ID. Use this when you know the exact page ID and need its content or path. For lookup by URL path, use the content/path endpoint instead.
|
|
1318
|
-
x-gitbook-mcp:
|
|
1328
|
+
x-gitbook-mcp:
|
|
1329
|
+
curatedBy: get_page
|
|
1319
1330
|
tags:
|
|
1320
1331
|
- space-content
|
|
1321
1332
|
security:
|
|
@@ -1365,7 +1376,8 @@ paths:
|
|
|
1365
1376
|
operationId: getPageByPath
|
|
1366
1377
|
summary: Get a page from a space by its URL path
|
|
1367
1378
|
description: Retrieves a page by its URL path (e.g. /guides/getting-started) from the space's current revision. Use this when you have a page's path rather than its ID. Returns either a document page or a group/section page depending on the path.
|
|
1368
|
-
x-gitbook-mcp:
|
|
1379
|
+
x-gitbook-mcp:
|
|
1380
|
+
curatedBy: get_page
|
|
1369
1381
|
tags:
|
|
1370
1382
|
- space-content
|
|
1371
1383
|
security:
|
|
@@ -1420,7 +1432,8 @@ paths:
|
|
|
1420
1432
|
operationId: getComputedDocument
|
|
1421
1433
|
summary: Compute and render a document from a structured content source
|
|
1422
1434
|
description: Server-renders a document from a provided content source definition, evaluating template expressions and resolving variables to produce a fully computed document. Use this to preview how dynamic content will look without publishing a full revision.
|
|
1423
|
-
x-gitbook-mcp:
|
|
1435
|
+
x-gitbook-mcp:
|
|
1436
|
+
readOnly: true
|
|
1424
1437
|
tags:
|
|
1425
1438
|
- space-content
|
|
1426
1439
|
security:
|
|
@@ -1457,7 +1470,8 @@ paths:
|
|
|
1457
1470
|
operationId: getComputedRevision
|
|
1458
1471
|
summary: Compute and render a full revision from a structured content source
|
|
1459
1472
|
description: Server-renders an entire revision — pages, files, and reusable contents — from a provided content source definition, resolving all template expressions and variables. Use this to evaluate and preview computed content before publishing. Returns the full set of pages and files with all dynamic content fully resolved.
|
|
1460
|
-
x-gitbook-mcp:
|
|
1473
|
+
x-gitbook-mcp:
|
|
1474
|
+
readOnly: true
|
|
1461
1475
|
tags:
|
|
1462
1476
|
- space-content
|
|
1463
1477
|
security:
|
|
@@ -1538,7 +1552,8 @@ paths:
|
|
|
1538
1552
|
operationId: createChangeRequest
|
|
1539
1553
|
summary: Create a new change request in a space
|
|
1540
1554
|
description: Creates a new change request, which is a draft working copy of the space's content — similar to a Git branch or pull request. Use this before making content edits to avoid modifying the live published content directly. Optionally supply a subject and a template to pre-populate the change request with content. Once created, use the change-request content endpoints to read and modify pages within the draft, then merge it when ready. Pass `siteFindingIds` to link the documentation findings this change request fixes. Outbound broken links are resolved by the outbound checker, rather than by merging.
|
|
1541
|
-
x-gitbook-mcp:
|
|
1555
|
+
x-gitbook-mcp:
|
|
1556
|
+
curatedBy: create_change_request
|
|
1542
1557
|
tags:
|
|
1543
1558
|
- change-requests
|
|
1544
1559
|
security:
|
|
@@ -1748,7 +1763,9 @@ paths:
|
|
|
1748
1763
|
operationId: mergeChangeRequest
|
|
1749
1764
|
summary: Merge a change request into the space's live content
|
|
1750
1765
|
description: Merges the change request's draft content into the space's primary (published) content, making all changes live. If the result is "conflicts", the merge was still applied but the space may need manual conflict resolution. Consider running updateChangeRequest first to sync with the latest live content and reduce conflicts.
|
|
1751
|
-
x-gitbook-mcp:
|
|
1766
|
+
x-gitbook-mcp:
|
|
1767
|
+
destructive: true
|
|
1768
|
+
curatedBy: submit_or_merge_change_request
|
|
1752
1769
|
tags:
|
|
1753
1770
|
- change-requests
|
|
1754
1771
|
security:
|
|
@@ -1782,7 +1799,8 @@ paths:
|
|
|
1782
1799
|
operationId: updateChangeRequest
|
|
1783
1800
|
summary: Sync a change request with the latest live space content
|
|
1784
1801
|
description: Rebases the change request onto the latest primary revision of the space, pulling in any changes that were merged to the live space since this change request was created. Run this before merging to minimise conflicts, especially if the change request has been open for a while.
|
|
1785
|
-
x-gitbook-mcp:
|
|
1802
|
+
x-gitbook-mcp:
|
|
1803
|
+
destructive: true
|
|
1786
1804
|
tags:
|
|
1787
1805
|
- change-requests
|
|
1788
1806
|
security:
|
|
@@ -2470,6 +2488,8 @@ paths:
|
|
|
2470
2488
|
**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`.
|
|
2471
2489
|
**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.
|
|
2472
2490
|
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.
|
|
2491
|
+
**Reusable content** (snippets shared by several pages, Git Sync's `.gitbook/includes/`) is created with `insert_reusable_contents`, changed with `update_reusable_content` and removed with `delete_reusable_content`. A page includes one in markdown as `{% include "/reusable-content/<reusableContentId>" %}`; give a new one a `ref` and a page in the same batch can include it as `{% include "./<ref>" %}`, regardless of operation order. Created reusable contents are listed as `insertedReusableContents` when `compat=false`. An update keeps the ID, so every page including it shows the change. Deleting one leaves the includes in pages unresolved, as in the editor: remove them from those pages too. Reusable content cannot include other reusable content, so an include in its document is dropped. Unlike a link, an include that matches no reusable content of the change request (or of the batch) rejects the batch, since dropping it would remove it from the page silently.
|
|
2492
|
+
**Variables** (space variables, Git Sync's `.gitbook/vars.yaml`) are created with `insert_variables` and changed with `update_variable`. A variable is identified by its name, which content references as an expression: `<code class="expression">space.vars.<name></code>` in markdown. Inserting a name the change request already uses, or updating one it does not, rejects the batch.
|
|
2473
2493
|
**Publishing an OpenAPI spec** — an OpenAPI spec belongs to the organization (see `createOpenAPISpec`) and appears in a space only through a page that renders it. Insert that page with an `insert_computed_page` change: `{ "operation": "insert_computed_page", "title": "API reference", "computed": { "type": "builtin:openapi", "props": { "models": true }, "dependencies": { "spec": { "ref": { "kind": "openapi", "spec": "<spec slug>" } } } } }`. GitBook replaces that page, at its position, with the API reference: one page per tag (or per operation with `"grouping": "by-operation"` in `props`), plus a models page when `models` is true, regenerated whenever the spec changes. Use `into` to nest the reference under an existing page. Do not recreate a spec with `insert_page`: `openapi-operation` blocks in a document only render the operations they name.
|
|
2474
2494
|
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:
|
|
2475
2495
|
- Page ID — `/pages/<pageId>` (also `/pages/<pageId>#anchor`).
|
|
@@ -2486,7 +2506,7 @@ paths:
|
|
|
2486
2506
|
|
|
2487
2507
|
External URLs (`https://…`) are kept as-is. A link that does not match any page in the change request is left as plain text rather than causing the request to fail.
|
|
2488
2508
|
GitBook normalizes submitted content, so the stored page may differ from what was sent. To help callers reconcile local state with the stored result, the response can list each created and modified page with its resolved ID and a `urls.location` to fetch the page's persisted content.
|
|
2489
|
-
|
|
2509
|
+
For change requests with frequent concurrent edits, consider `expectedRevision` to protect against overwriting changes made since your read. If the branch has changed since the supplied revision, the batch is rejected with HTTP 409 and none of the submitted changes are applied.
|
|
2490
2510
|
**Response shape (`compat`)** — this endpoint is changing what it returns:
|
|
2491
2511
|
- `compat=true` (current default) returns the updated change request, matching the endpoint's
|
|
2492
2512
|
original behavior.
|
|
@@ -2495,7 +2515,8 @@ paths:
|
|
|
2495
2515
|
the response schema).
|
|
2496
2516
|
|
|
2497
2517
|
The default is `true` for now to preserve backwards compatibility, but **will switch to `false` in a future release**, at which point the affected-page list is always included. You should pass `compat=false` if you want the new behavior today and avoid unexpected errors when the default flips in the future.
|
|
2498
|
-
x-gitbook-mcp:
|
|
2518
|
+
x-gitbook-mcp:
|
|
2519
|
+
destructive: true
|
|
2499
2520
|
tags:
|
|
2500
2521
|
- change-request-content
|
|
2501
2522
|
security:
|
|
@@ -2520,6 +2541,10 @@ paths:
|
|
|
2520
2541
|
required:
|
|
2521
2542
|
- changes
|
|
2522
2543
|
properties:
|
|
2544
|
+
expectedRevision:
|
|
2545
|
+
type: string
|
|
2546
|
+
minLength: 1
|
|
2547
|
+
description: The saved branch revision on which these changes are based, available in getChangeRequestById's revision field. If the branch has changed, including pending realtime edits, the batch is rejected with 409 and none of the submitted changes are applied. This field is optional and most changes can omit it.
|
|
2523
2548
|
changes:
|
|
2524
2549
|
type: array
|
|
2525
2550
|
minItems: 1
|
|
@@ -2539,6 +2564,9 @@ paths:
|
|
|
2539
2564
|
"404":
|
|
2540
2565
|
description: The change request could not be found.
|
|
2541
2566
|
$ref: "#/components/responses/NotFoundError"
|
|
2567
|
+
"409":
|
|
2568
|
+
description: The branch changed since the expected revision; read the latest content before retrying.
|
|
2569
|
+
$ref: "#/components/responses/ConflictError"
|
|
2542
2570
|
/spaces/{spaceId}/change-requests/{changeRequestId}/content/pages:
|
|
2543
2571
|
get:
|
|
2544
2572
|
operationId: listPagesInChangeRequest
|
|
@@ -5069,6 +5097,27 @@ paths:
|
|
|
5069
5097
|
description: Filter by an exact stable target identifier.
|
|
5070
5098
|
schema:
|
|
5071
5099
|
type: string
|
|
5100
|
+
- name: includeFacets
|
|
5101
|
+
in: query
|
|
5102
|
+
description: Include matching counts for action and actor options, excluding the option's own filter.
|
|
5103
|
+
schema:
|
|
5104
|
+
type: boolean
|
|
5105
|
+
- name: actions
|
|
5106
|
+
in: query
|
|
5107
|
+
description: Include any of these action names. Combined with other filters using AND.
|
|
5108
|
+
schema:
|
|
5109
|
+
type: array
|
|
5110
|
+
maxItems: 100
|
|
5111
|
+
items:
|
|
5112
|
+
type: string
|
|
5113
|
+
- name: actors
|
|
5114
|
+
in: query
|
|
5115
|
+
description: Include any of these stable actor identifiers, including system actors. Combined with other filters using AND.
|
|
5116
|
+
schema:
|
|
5117
|
+
type: array
|
|
5118
|
+
maxItems: 100
|
|
5119
|
+
items:
|
|
5120
|
+
type: string
|
|
5072
5121
|
responses:
|
|
5073
5122
|
"200":
|
|
5074
5123
|
description: Paginated audit events.
|
|
@@ -5079,6 +5128,20 @@ paths:
|
|
|
5079
5128
|
- $ref: "#/components/schemas/List"
|
|
5080
5129
|
- type: object
|
|
5081
5130
|
properties:
|
|
5131
|
+
facets:
|
|
5132
|
+
type: object
|
|
5133
|
+
required:
|
|
5134
|
+
- actions
|
|
5135
|
+
- actors
|
|
5136
|
+
properties:
|
|
5137
|
+
actions:
|
|
5138
|
+
type: object
|
|
5139
|
+
additionalProperties:
|
|
5140
|
+
type: integer
|
|
5141
|
+
actors:
|
|
5142
|
+
type: object
|
|
5143
|
+
additionalProperties:
|
|
5144
|
+
type: integer
|
|
5082
5145
|
items:
|
|
5083
5146
|
type: array
|
|
5084
5147
|
items:
|
|
@@ -5175,6 +5238,7 @@ paths:
|
|
|
5175
5238
|
operationId: listMembersInOrganizationById
|
|
5176
5239
|
x-gitbook-mcp: true
|
|
5177
5240
|
summary: List all organization members
|
|
5241
|
+
description: Lists the members of the organization. Guests can list members too, but the list they get leaves out every guest, themselves included, and filtering by the `guest` role returns no one.
|
|
5178
5242
|
tags:
|
|
5179
5243
|
- organization-members
|
|
5180
5244
|
security:
|
|
@@ -5210,6 +5274,7 @@ paths:
|
|
|
5210
5274
|
operationId: getMemberInOrganizationById
|
|
5211
5275
|
x-gitbook-mcp: true
|
|
5212
5276
|
summary: Get an organization member by its ID
|
|
5277
|
+
description: Returns a member of the organization. Guests can get any member who isn't a guest, and themselves. Another guest is reported as not found.
|
|
5213
5278
|
tags:
|
|
5214
5279
|
- organization-members
|
|
5215
5280
|
- critical
|
|
@@ -5255,9 +5320,13 @@ paths:
|
|
|
5255
5320
|
properties:
|
|
5256
5321
|
role:
|
|
5257
5322
|
$ref: "#/components/schemas/MemberRoleOrGuest"
|
|
5323
|
+
disabled:
|
|
5324
|
+
type: boolean
|
|
5325
|
+
description: Disable or re-enable the member. Only members disabled by an admin can be re-enabled.
|
|
5258
5326
|
delete:
|
|
5259
5327
|
operationId: removeMemberFromOrganizationById
|
|
5260
5328
|
summary: Remove an organization member or request an organization admin to do it
|
|
5329
|
+
description: Users cannot remove their own membership. Ask another organization admin to remove it.
|
|
5261
5330
|
tags:
|
|
5262
5331
|
- organization-members
|
|
5263
5332
|
security:
|
|
@@ -6489,6 +6558,166 @@ paths:
|
|
|
6489
6558
|
description: SAML provider did not exist
|
|
6490
6559
|
"205":
|
|
6491
6560
|
description: SAML provider has been deleted
|
|
6561
|
+
/orgs/{organizationId}/scim/connections:
|
|
6562
|
+
get:
|
|
6563
|
+
operationId: listOrganizationSCIMConnections
|
|
6564
|
+
summary: List SCIM connections
|
|
6565
|
+
tags:
|
|
6566
|
+
- scim
|
|
6567
|
+
security:
|
|
6568
|
+
- user-internal: []
|
|
6569
|
+
parameters:
|
|
6570
|
+
- $ref: "#/components/parameters/organizationId"
|
|
6571
|
+
responses:
|
|
6572
|
+
"200":
|
|
6573
|
+
description: OK
|
|
6574
|
+
content:
|
|
6575
|
+
application/json:
|
|
6576
|
+
schema:
|
|
6577
|
+
allOf:
|
|
6578
|
+
- $ref: "#/components/schemas/List"
|
|
6579
|
+
- type: object
|
|
6580
|
+
required:
|
|
6581
|
+
- items
|
|
6582
|
+
properties:
|
|
6583
|
+
items:
|
|
6584
|
+
type: array
|
|
6585
|
+
items:
|
|
6586
|
+
$ref: "#/components/schemas/OrganizationSCIMConnection"
|
|
6587
|
+
"404":
|
|
6588
|
+
$ref: "#/components/responses/NotFoundError"
|
|
6589
|
+
post:
|
|
6590
|
+
operationId: createOrganizationSCIMConnection
|
|
6591
|
+
summary: Create a SCIM connection
|
|
6592
|
+
description: |
|
|
6593
|
+
Creates a SCIM connection and its token. The token is only returned in this response.
|
|
6594
|
+
tags:
|
|
6595
|
+
- scim
|
|
6596
|
+
security:
|
|
6597
|
+
- user-internal: []
|
|
6598
|
+
parameters:
|
|
6599
|
+
- $ref: "#/components/parameters/organizationId"
|
|
6600
|
+
requestBody:
|
|
6601
|
+
required: true
|
|
6602
|
+
content:
|
|
6603
|
+
application/json:
|
|
6604
|
+
schema:
|
|
6605
|
+
type: object
|
|
6606
|
+
properties:
|
|
6607
|
+
label:
|
|
6608
|
+
$ref: "#/components/schemas/SCIMConnectionLabel"
|
|
6609
|
+
provider:
|
|
6610
|
+
$ref: "#/components/schemas/SCIMConnectionProvider"
|
|
6611
|
+
required:
|
|
6612
|
+
- label
|
|
6613
|
+
- provider
|
|
6614
|
+
responses:
|
|
6615
|
+
"201":
|
|
6616
|
+
description: SCIM connection created
|
|
6617
|
+
content:
|
|
6618
|
+
application/json:
|
|
6619
|
+
schema:
|
|
6620
|
+
$ref: "#/components/schemas/OrganizationSCIMConnectionWithToken"
|
|
6621
|
+
"400":
|
|
6622
|
+
$ref: "#/components/responses/BadRequestError"
|
|
6623
|
+
"404":
|
|
6624
|
+
$ref: "#/components/responses/NotFoundError"
|
|
6625
|
+
"412":
|
|
6626
|
+
description: The organization has SAML providers configured.
|
|
6627
|
+
$ref: "#/components/responses/PreconditionFailedError"
|
|
6628
|
+
/orgs/{organizationId}/scim/connections/{scimConnectionId}:
|
|
6629
|
+
get:
|
|
6630
|
+
operationId: getOrganizationSCIMConnection
|
|
6631
|
+
summary: Get a SCIM connection by its ID
|
|
6632
|
+
tags:
|
|
6633
|
+
- scim
|
|
6634
|
+
security:
|
|
6635
|
+
- user-internal: []
|
|
6636
|
+
parameters:
|
|
6637
|
+
- $ref: "#/components/parameters/organizationId"
|
|
6638
|
+
- $ref: "#/components/parameters/scimConnectionId"
|
|
6639
|
+
responses:
|
|
6640
|
+
"200":
|
|
6641
|
+
description: OK
|
|
6642
|
+
content:
|
|
6643
|
+
application/json:
|
|
6644
|
+
schema:
|
|
6645
|
+
$ref: "#/components/schemas/OrganizationSCIMConnection"
|
|
6646
|
+
"404":
|
|
6647
|
+
$ref: "#/components/responses/NotFoundError"
|
|
6648
|
+
patch:
|
|
6649
|
+
operationId: updateOrganizationSCIMConnection
|
|
6650
|
+
summary: Update a SCIM connection
|
|
6651
|
+
tags:
|
|
6652
|
+
- scim
|
|
6653
|
+
security:
|
|
6654
|
+
- user-internal: []
|
|
6655
|
+
parameters:
|
|
6656
|
+
- $ref: "#/components/parameters/organizationId"
|
|
6657
|
+
- $ref: "#/components/parameters/scimConnectionId"
|
|
6658
|
+
requestBody:
|
|
6659
|
+
required: true
|
|
6660
|
+
content:
|
|
6661
|
+
application/json:
|
|
6662
|
+
schema:
|
|
6663
|
+
type: object
|
|
6664
|
+
properties:
|
|
6665
|
+
label:
|
|
6666
|
+
$ref: "#/components/schemas/SCIMConnectionLabel"
|
|
6667
|
+
required:
|
|
6668
|
+
- label
|
|
6669
|
+
responses:
|
|
6670
|
+
"200":
|
|
6671
|
+
description: SCIM connection updated
|
|
6672
|
+
content:
|
|
6673
|
+
application/json:
|
|
6674
|
+
schema:
|
|
6675
|
+
$ref: "#/components/schemas/OrganizationSCIMConnection"
|
|
6676
|
+
"400":
|
|
6677
|
+
$ref: "#/components/responses/BadRequestError"
|
|
6678
|
+
"404":
|
|
6679
|
+
$ref: "#/components/responses/NotFoundError"
|
|
6680
|
+
delete:
|
|
6681
|
+
operationId: deleteOrganizationSCIMConnection
|
|
6682
|
+
summary: Delete a SCIM connection
|
|
6683
|
+
description: |
|
|
6684
|
+
Deletes a SCIM connection. Its token stops working immediately.
|
|
6685
|
+
tags:
|
|
6686
|
+
- scim
|
|
6687
|
+
security:
|
|
6688
|
+
- user-internal: []
|
|
6689
|
+
parameters:
|
|
6690
|
+
- $ref: "#/components/parameters/organizationId"
|
|
6691
|
+
- $ref: "#/components/parameters/scimConnectionId"
|
|
6692
|
+
responses:
|
|
6693
|
+
"204":
|
|
6694
|
+
description: SCIM connection not found
|
|
6695
|
+
"205":
|
|
6696
|
+
description: SCIM connection deleted
|
|
6697
|
+
"404":
|
|
6698
|
+
$ref: "#/components/responses/NotFoundError"
|
|
6699
|
+
/orgs/{organizationId}/scim/connections/{scimConnectionId}/token:
|
|
6700
|
+
post:
|
|
6701
|
+
operationId: rotateOrganizationSCIMConnectionToken
|
|
6702
|
+
summary: Rotate the token of a SCIM connection
|
|
6703
|
+
description: |
|
|
6704
|
+
Replaces the token of a SCIM connection. The previous token stops working immediately, and the new token is only returned in this response.
|
|
6705
|
+
tags:
|
|
6706
|
+
- scim
|
|
6707
|
+
security:
|
|
6708
|
+
- user-internal: []
|
|
6709
|
+
parameters:
|
|
6710
|
+
- $ref: "#/components/parameters/organizationId"
|
|
6711
|
+
- $ref: "#/components/parameters/scimConnectionId"
|
|
6712
|
+
responses:
|
|
6713
|
+
"200":
|
|
6714
|
+
description: Token rotated
|
|
6715
|
+
content:
|
|
6716
|
+
application/json:
|
|
6717
|
+
schema:
|
|
6718
|
+
$ref: "#/components/schemas/OrganizationSCIMConnectionWithToken"
|
|
6719
|
+
"404":
|
|
6720
|
+
$ref: "#/components/responses/NotFoundError"
|
|
6492
6721
|
/orgs/{organizationId}/sso:
|
|
6493
6722
|
get:
|
|
6494
6723
|
operationId: listSSOProviderLoginsInOrganization
|
|
@@ -7682,7 +7911,8 @@ paths:
|
|
|
7682
7911
|
operationId: listSites
|
|
7683
7912
|
summary: List all documentation sites in an organization
|
|
7684
7913
|
description: Returns a paginated list of all documentation sites belonging to the organization. Use this to discover available sites before fetching their content, settings, or structure. Members with access only to individual spaces receive the sites that use those spaces as site items, with site administration fields omitted.
|
|
7685
|
-
x-gitbook-mcp:
|
|
7914
|
+
x-gitbook-mcp:
|
|
7915
|
+
curatedBy: list_sites
|
|
7686
7916
|
tags:
|
|
7687
7917
|
- sites
|
|
7688
7918
|
- critical
|
|
@@ -8032,7 +8262,9 @@ paths:
|
|
|
8032
8262
|
operationId: publishSite
|
|
8033
8263
|
summary: Publish a site to make it publicly accessible
|
|
8034
8264
|
description: Makes the site publicly accessible at its configured URL by publishing it. If the organization's plan requires an upgrade, the response includes a Stripe checkout session ID instead of the site object. Use unpublish to take the site offline again.
|
|
8035
|
-
x-gitbook-mcp:
|
|
8265
|
+
x-gitbook-mcp:
|
|
8266
|
+
destructive: true
|
|
8267
|
+
idempotent: true
|
|
8036
8268
|
tags:
|
|
8037
8269
|
- sites
|
|
8038
8270
|
security:
|
|
@@ -8070,12 +8302,38 @@ paths:
|
|
|
8070
8302
|
required:
|
|
8071
8303
|
- type
|
|
8072
8304
|
- sessionId
|
|
8305
|
+
/orgs/{organizationId}/sites/{siteId}/setup:
|
|
8306
|
+
get:
|
|
8307
|
+
operationId: getSiteSetup
|
|
8308
|
+
summary: Get the setup steps of a site
|
|
8309
|
+
description: Lists the steps to set up a site, from a first edit to publishing, and whether each one is completed. Use it to know what is left to do on a site. Returns no steps once the site has been published.
|
|
8310
|
+
x-gitbook-mcp: true
|
|
8311
|
+
tags:
|
|
8312
|
+
- sites
|
|
8313
|
+
security:
|
|
8314
|
+
- user: []
|
|
8315
|
+
- oauth:
|
|
8316
|
+
- site:read
|
|
8317
|
+
parameters:
|
|
8318
|
+
- $ref: "#/components/parameters/organizationId"
|
|
8319
|
+
- $ref: "#/components/parameters/siteId"
|
|
8320
|
+
responses:
|
|
8321
|
+
"200":
|
|
8322
|
+
description: OK
|
|
8323
|
+
content:
|
|
8324
|
+
application/json:
|
|
8325
|
+
schema:
|
|
8326
|
+
$ref: "#/components/schemas/SiteSetup"
|
|
8327
|
+
"400":
|
|
8328
|
+
$ref: "#/components/responses/BadRequestError"
|
|
8073
8329
|
/orgs/{organizationId}/sites/{siteId}/unpublish:
|
|
8074
8330
|
post:
|
|
8075
8331
|
operationId: unpublishSite
|
|
8076
8332
|
summary: Take a site offline by unpublishing it
|
|
8077
8333
|
description: Removes the site from public access by unpublishing it. The site's configuration and content are preserved; use the publish endpoint to make it accessible again. Use this when you need to temporarily hide a site or take it down for maintenance.
|
|
8078
|
-
x-gitbook-mcp:
|
|
8334
|
+
x-gitbook-mcp:
|
|
8335
|
+
destructive: true
|
|
8336
|
+
idempotent: true
|
|
8079
8337
|
tags:
|
|
8080
8338
|
- sites
|
|
8081
8339
|
security:
|
|
@@ -8439,7 +8697,8 @@ paths:
|
|
|
8439
8697
|
operationId: getSiteStructure
|
|
8440
8698
|
summary: Get the full navigation structure of a site
|
|
8441
8699
|
description: Returns the complete hierarchical structure of a site, including all sections, section groups, and site spaces in their current order. Use this to understand how a site's navigation is organized before making structural changes, or to render the full navigation tree of a site. Members with access only to individual spaces receive only the site items backed by those spaces and their parent sections.
|
|
8442
|
-
x-gitbook-mcp:
|
|
8700
|
+
x-gitbook-mcp:
|
|
8701
|
+
curatedBy: get_site_structure
|
|
8443
8702
|
tags:
|
|
8444
8703
|
- site-structure
|
|
8445
8704
|
security:
|
|
@@ -8571,7 +8830,8 @@ paths:
|
|
|
8571
8830
|
operationId: regenerateSitePublishingAuthById
|
|
8572
8831
|
summary: Regenerate the private key for a site's published content authentication
|
|
8573
8832
|
description: Re-generates the private key used for the site's publishing authentication (e.g., JWT signing key for SSO). Existing tokens signed with the old key will become invalid immediately. Use this to rotate credentials after a security incident or as part of a regular key rotation policy.
|
|
8574
|
-
x-gitbook-mcp:
|
|
8833
|
+
x-gitbook-mcp:
|
|
8834
|
+
destructive: true
|
|
8575
8835
|
tags:
|
|
8576
8836
|
- site-publishing-auth
|
|
8577
8837
|
security:
|
|
@@ -8774,7 +9034,8 @@ paths:
|
|
|
8774
9034
|
operationId: addSpaceToSite
|
|
8775
9035
|
summary: Add a space to a site as a content source
|
|
8776
9036
|
description: Pass an existing space ID to link it, or pass `null` to create and link a new space. New spaces start with a blank page unless a template is provided or `empty` is `true`, which creates the space with no page at all (use it when you are about to add the pages yourself).
|
|
8777
|
-
x-gitbook-mcp:
|
|
9037
|
+
x-gitbook-mcp:
|
|
9038
|
+
destructive: true
|
|
8778
9039
|
x-gitbook-return-preference: true
|
|
8779
9040
|
tags:
|
|
8780
9041
|
- site-spaces
|
|
@@ -8915,7 +9176,8 @@ paths:
|
|
|
8915
9176
|
operationId: addSectionGroupToSite
|
|
8916
9177
|
summary: Add a section group to a site's navigation structure
|
|
8917
9178
|
description: Creates a new section group to organize multiple sections under a shared navigation label. Section groups can be nested by providing a parent group ID. Existing sections can be assigned to the group at creation time via their IDs. Create the group in draft mode to stage it before publishing.
|
|
8918
|
-
x-gitbook-mcp:
|
|
9179
|
+
x-gitbook-mcp:
|
|
9180
|
+
destructive: true
|
|
8919
9181
|
tags:
|
|
8920
9182
|
- site-section-groups
|
|
8921
9183
|
security:
|
|
@@ -8934,6 +9196,9 @@ paths:
|
|
|
8934
9196
|
properties:
|
|
8935
9197
|
title:
|
|
8936
9198
|
$ref: "#/components/schemas/SiteSectionGroupTitle"
|
|
9199
|
+
condition:
|
|
9200
|
+
description: Conditional expression used to evaluate whether the site section group should be shown to the site's visitor (should evaluate to a boolean).
|
|
9201
|
+
$ref: "#/components/schemas/Expression"
|
|
8937
9202
|
icon:
|
|
8938
9203
|
oneOf:
|
|
8939
9204
|
- $ref: "#/components/schemas/Icon"
|
|
@@ -8997,6 +9262,11 @@ paths:
|
|
|
8997
9262
|
$ref: "#/components/schemas/SiteSectionGroupTitle"
|
|
8998
9263
|
localizedTitle:
|
|
8999
9264
|
$ref: "#/components/schemas/LocalizedString128"
|
|
9265
|
+
condition:
|
|
9266
|
+
description: Conditional expression used to evaluate whether the site section group should be shown to the site's visitor (should evaluate to a boolean). If not set, the condition will remain unchanged. If set to null, the condition will be removed.
|
|
9267
|
+
oneOf:
|
|
9268
|
+
- $ref: "#/components/schemas/Expression"
|
|
9269
|
+
- type: "null"
|
|
9000
9270
|
icon:
|
|
9001
9271
|
oneOf:
|
|
9002
9272
|
- $ref: "#/components/schemas/Icon"
|
|
@@ -9044,7 +9314,8 @@ paths:
|
|
|
9044
9314
|
operationId: addSectionToSite
|
|
9045
9315
|
summary: Add a new navigation section to a site backed by a space
|
|
9046
9316
|
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 start with a blank page unless a template is provided or `empty` is `true`, which creates the space with no page at all (use it when you are about to add the pages yourself).
|
|
9047
|
-
x-gitbook-mcp:
|
|
9317
|
+
x-gitbook-mcp:
|
|
9318
|
+
destructive: true
|
|
9048
9319
|
tags:
|
|
9049
9320
|
- site-sections
|
|
9050
9321
|
security:
|
|
@@ -9178,6 +9449,9 @@ paths:
|
|
|
9178
9449
|
defaultSiteSpace:
|
|
9179
9450
|
type: string
|
|
9180
9451
|
description: ID of the site-space to be used as the default in this section.
|
|
9452
|
+
hidden:
|
|
9453
|
+
type: boolean
|
|
9454
|
+
description: Whether to hide the site section from the site's navigation. Setting it updates all the site spaces of the section, and site spaces added to a hidden section are hidden too. The default site section cannot be hidden.
|
|
9181
9455
|
condition:
|
|
9182
9456
|
description: Conditional expression used to evaluate whether the site section should be shown to the site's visitor (should evaluate to a boolean). If not set, the condition will remain unchanged. If set to null, the condition will be removed.
|
|
9183
9457
|
oneOf:
|
|
@@ -9236,7 +9510,8 @@ paths:
|
|
|
9236
9510
|
operationId: addExternalLinkToSite
|
|
9237
9511
|
summary: Add an external link to a site's navigation
|
|
9238
9512
|
description: Creates an external navigation link at the site root or in a section group. On a site with root variants and no sections, creating the first external link enables sections and moves those variants into a default section. Links 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.
|
|
9239
|
-
x-gitbook-mcp:
|
|
9513
|
+
x-gitbook-mcp:
|
|
9514
|
+
destructive: true
|
|
9240
9515
|
tags:
|
|
9241
9516
|
- site-external-links
|
|
9242
9517
|
security:
|
|
@@ -9411,7 +9686,8 @@ paths:
|
|
|
9411
9686
|
operationId: searchSiteContent
|
|
9412
9687
|
summary: Full-text search across all content in a site
|
|
9413
9688
|
description: Performs a full-text search across all published spaces in the site and returns matching pages with relevant excerpts. Use the scope parameter to restrict the search to specific site spaces or sections. Prefer this over the space-level search when you need to search across a multi-section site in one call.
|
|
9414
|
-
x-gitbook-mcp:
|
|
9689
|
+
x-gitbook-mcp:
|
|
9690
|
+
readOnly: true
|
|
9415
9691
|
tags:
|
|
9416
9692
|
- sites
|
|
9417
9693
|
security:
|
|
@@ -9630,6 +9906,8 @@ paths:
|
|
|
9630
9906
|
parameters:
|
|
9631
9907
|
- $ref: "#/components/parameters/organizationId"
|
|
9632
9908
|
- $ref: "#/components/parameters/siteId"
|
|
9909
|
+
- $ref: "#/components/parameters/xOriginalUserAgent"
|
|
9910
|
+
- $ref: "#/components/parameters/xOriginalSignatureAgent"
|
|
9633
9911
|
- $ref: "#/components/parameters/documentFormat"
|
|
9634
9912
|
requestBody:
|
|
9635
9913
|
required: true
|
|
@@ -9904,11 +10182,27 @@ paths:
|
|
|
9904
10182
|
description: Filter findings by estimated severity.
|
|
9905
10183
|
schema:
|
|
9906
10184
|
$ref: "#/components/schemas/SiteFindingSeverity"
|
|
10185
|
+
- name: autoResolution
|
|
10186
|
+
in: query
|
|
10187
|
+
description: "Filter findings by what GitBook did on its own to resolve them: `drafted` fixes wait for approval, `applied` ones were made live, `undone` ones were reversed by a person."
|
|
10188
|
+
schema:
|
|
10189
|
+
$ref: "#/components/schemas/SiteFindingAutoResolution"
|
|
10190
|
+
- name: autoResolvedAfter
|
|
10191
|
+
in: query
|
|
10192
|
+
description: Only return findings GitBook drafted or applied a fix for at or after this date. Combine with `autoResolution` and `status` to count recent automatic fixes.
|
|
10193
|
+
schema:
|
|
10194
|
+
type: string
|
|
10195
|
+
format: date-time
|
|
9907
10196
|
- name: hasChangeRequests
|
|
9908
10197
|
in: query
|
|
9909
10198
|
description: Filter findings that have at least one associated change request.
|
|
9910
10199
|
schema:
|
|
9911
10200
|
type: boolean
|
|
10201
|
+
- name: state
|
|
10202
|
+
in: query
|
|
10203
|
+
description: Filter link findings by where they stand, for example `awaiting-approval` for broken links with a redirect GitBook drafted.
|
|
10204
|
+
schema:
|
|
10205
|
+
$ref: "#/components/schemas/SiteFindingState"
|
|
9912
10206
|
- name: source
|
|
9913
10207
|
in: query
|
|
9914
10208
|
description: Filter findings by the source of their evidence. Each entry is either `connection:<connectionId>` (findings with at least one piece of evidence coming from the given connection) or `questions` (findings with at least one piece of evidence coming from a site question). When multiple entries are given, findings matching any of them are returned.
|
|
@@ -9976,8 +10270,12 @@ paths:
|
|
|
9976
10270
|
$ref: "#/components/schemas/SiteFinding"
|
|
9977
10271
|
patch:
|
|
9978
10272
|
operationId: updateSiteFindingById
|
|
9979
|
-
|
|
9980
|
-
|
|
10273
|
+
deprecated: true
|
|
10274
|
+
summary: Resolve, dismiss, or reopen a documentation issue. (Deprecated) use applySiteFindingAction instead.
|
|
10275
|
+
description: |-
|
|
10276
|
+
Changes the status of a documentation issue found by GitBook's AI. Refuses `broken-link` findings, whose status follows the redirects at their path.
|
|
10277
|
+
|
|
10278
|
+
Deprecated in favour of `applySiteFindingAction`, which applies one of the `actions` a finding lists: `mark-resolved`, `ignore`, `reopen` or `restore`.
|
|
9981
10279
|
x-gitbook-mcp: true
|
|
9982
10280
|
tags:
|
|
9983
10281
|
- site-context
|
|
@@ -10161,6 +10459,41 @@ paths:
|
|
|
10161
10459
|
type: array
|
|
10162
10460
|
items:
|
|
10163
10461
|
$ref: "#/components/schemas/ContextRecord"
|
|
10462
|
+
/orgs/{organizationId}/sites/{siteId}/findings/{siteFindingId}/actions:
|
|
10463
|
+
post:
|
|
10464
|
+
operationId: applySiteFindingAction
|
|
10465
|
+
summary: Apply an action to a finding
|
|
10466
|
+
description: "Applies one of the `actions` a finding lists, with the site permission it gives: resolve, dismiss or reopen it, act on a broken link's redirect, or reject the change request GitBook drafted for an outbound link. Returns 409 when the finding doesn't allow the action now."
|
|
10467
|
+
x-gitbook-mcp:
|
|
10468
|
+
destructive: true
|
|
10469
|
+
tags:
|
|
10470
|
+
- site-context
|
|
10471
|
+
security:
|
|
10472
|
+
- user: []
|
|
10473
|
+
- oauth:
|
|
10474
|
+
- site:write
|
|
10475
|
+
parameters:
|
|
10476
|
+
- $ref: "#/components/parameters/organizationId"
|
|
10477
|
+
- $ref: "#/components/parameters/siteId"
|
|
10478
|
+
- $ref: "#/components/parameters/siteFindingId"
|
|
10479
|
+
requestBody:
|
|
10480
|
+
required: true
|
|
10481
|
+
content:
|
|
10482
|
+
application/json:
|
|
10483
|
+
schema:
|
|
10484
|
+
type: object
|
|
10485
|
+
properties:
|
|
10486
|
+
action:
|
|
10487
|
+
$ref: "#/components/schemas/SiteFindingAction"
|
|
10488
|
+
required:
|
|
10489
|
+
- action
|
|
10490
|
+
responses:
|
|
10491
|
+
"200":
|
|
10492
|
+
description: Action applied
|
|
10493
|
+
content:
|
|
10494
|
+
application/json:
|
|
10495
|
+
schema:
|
|
10496
|
+
$ref: "#/components/schemas/SiteFinding"
|
|
10164
10497
|
/orgs/{organizationId}/sites/{siteId}/stats/findings:
|
|
10165
10498
|
get:
|
|
10166
10499
|
operationId: getSiteFindingStats
|
|
@@ -10198,6 +10531,17 @@ paths:
|
|
|
10198
10531
|
description: Filter findings by estimated severity.
|
|
10199
10532
|
schema:
|
|
10200
10533
|
$ref: "#/components/schemas/SiteFindingSeverity"
|
|
10534
|
+
- name: autoResolution
|
|
10535
|
+
in: query
|
|
10536
|
+
description: "Filter findings by what GitBook did on its own to resolve them: `drafted` fixes wait for approval, `applied` ones were made live, `undone` ones were reversed by a person."
|
|
10537
|
+
schema:
|
|
10538
|
+
$ref: "#/components/schemas/SiteFindingAutoResolution"
|
|
10539
|
+
- name: autoResolvedAfter
|
|
10540
|
+
in: query
|
|
10541
|
+
description: Only return findings GitBook drafted or applied a fix for at or after this date. Combine with `autoResolution` and `status` to count recent automatic fixes.
|
|
10542
|
+
schema:
|
|
10543
|
+
type: string
|
|
10544
|
+
format: date-time
|
|
10201
10545
|
- name: hasChangeRequests
|
|
10202
10546
|
in: query
|
|
10203
10547
|
description: Filter findings that have at least one associated change request.
|
|
@@ -10463,6 +10807,7 @@ paths:
|
|
|
10463
10807
|
type: array
|
|
10464
10808
|
items:
|
|
10465
10809
|
$ref: "#/components/schemas/SiteChannelType"
|
|
10810
|
+
- $ref: "#/components/parameters/siteQuestionVisitorType"
|
|
10466
10811
|
- name: answered
|
|
10467
10812
|
in: query
|
|
10468
10813
|
description: Filter stats by answer resolution.
|
|
@@ -10542,7 +10887,7 @@ paths:
|
|
|
10542
10887
|
delete:
|
|
10543
10888
|
operationId: deleteSiteTopicFindings
|
|
10544
10889
|
summary: Delete all documentation issues found under a topic
|
|
10545
|
-
description: Permanently deletes every finding associated with a site topic, regardless of status. This is a bulk, irreversible cleanup operation — use `
|
|
10890
|
+
description: Permanently deletes every finding associated with a site topic, regardless of status. This is a bulk, irreversible cleanup operation — use `applySiteFindingAction` to resolve or dismiss individual issues instead unless the intent is to wipe every issue under a topic, for example when the topic itself is being removed.
|
|
10546
10891
|
x-gitbook-mcp: true
|
|
10547
10892
|
tags:
|
|
10548
10893
|
- site-context
|
|
@@ -10603,6 +10948,7 @@ paths:
|
|
|
10603
10948
|
type: array
|
|
10604
10949
|
items:
|
|
10605
10950
|
$ref: "#/components/schemas/SiteChannelType"
|
|
10951
|
+
- $ref: "#/components/parameters/siteQuestionVisitorType"
|
|
10606
10952
|
- name: answered
|
|
10607
10953
|
in: query
|
|
10608
10954
|
description: Filter questions by answer resolution.
|
|
@@ -10686,6 +11032,7 @@ paths:
|
|
|
10686
11032
|
type: array
|
|
10687
11033
|
items:
|
|
10688
11034
|
$ref: "#/components/schemas/SiteChannelType"
|
|
11035
|
+
- $ref: "#/components/parameters/siteQuestionVisitorType"
|
|
10689
11036
|
- name: answered
|
|
10690
11037
|
in: query
|
|
10691
11038
|
description: Filter stats by answer resolution.
|
|
@@ -10742,6 +11089,7 @@ paths:
|
|
|
10742
11089
|
type: array
|
|
10743
11090
|
items:
|
|
10744
11091
|
$ref: "#/components/schemas/SiteChannelType"
|
|
11092
|
+
- $ref: "#/components/parameters/siteQuestionVisitorType"
|
|
10745
11093
|
- name: answered
|
|
10746
11094
|
in: query
|
|
10747
11095
|
description: Filter answer sources by answer resolution.
|
|
@@ -10811,6 +11159,7 @@ paths:
|
|
|
10811
11159
|
type: array
|
|
10812
11160
|
items:
|
|
10813
11161
|
$ref: "#/components/schemas/SiteChannelType"
|
|
11162
|
+
- $ref: "#/components/parameters/siteQuestionVisitorType"
|
|
10814
11163
|
- name: answered
|
|
10815
11164
|
in: query
|
|
10816
11165
|
description: Filter stats by answer resolution.
|
|
@@ -10825,6 +11174,75 @@ paths:
|
|
|
10825
11174
|
application/json:
|
|
10826
11175
|
schema:
|
|
10827
11176
|
$ref: "#/components/schemas/SiteQuestionStats"
|
|
11177
|
+
/orgs/{organizationId}/sites/{siteId}/question-timeline:
|
|
11178
|
+
get:
|
|
11179
|
+
operationId: getSiteQuestionTimeline
|
|
11180
|
+
summary: Get Ask AI answers over time for a site
|
|
11181
|
+
description: Returns how many answers the site's Ask AI assistant gave, and to how many visitors, in each UTC bucket of the interval between `from` and `to`, optionally filtered by topic, relevance, channel, visitor type or resolution. Buckets without answers are omitted.
|
|
11182
|
+
x-gitbook-mcp: true
|
|
11183
|
+
tags:
|
|
11184
|
+
- site-questions
|
|
11185
|
+
security:
|
|
11186
|
+
- user: []
|
|
11187
|
+
- oauth:
|
|
11188
|
+
- site:insights:read
|
|
11189
|
+
parameters:
|
|
11190
|
+
- $ref: "#/components/parameters/organizationId"
|
|
11191
|
+
- $ref: "#/components/parameters/siteId"
|
|
11192
|
+
- name: from
|
|
11193
|
+
in: query
|
|
11194
|
+
required: true
|
|
11195
|
+
description: Count answers created at or after this timestamp.
|
|
11196
|
+
schema:
|
|
11197
|
+
$ref: "#/components/schemas/Timestamp"
|
|
11198
|
+
- name: to
|
|
11199
|
+
in: query
|
|
11200
|
+
required: true
|
|
11201
|
+
description: Count answers created at or before this timestamp.
|
|
11202
|
+
schema:
|
|
11203
|
+
$ref: "#/components/schemas/Timestamp"
|
|
11204
|
+
- name: interval
|
|
11205
|
+
in: query
|
|
11206
|
+
required: true
|
|
11207
|
+
description: Size of each bucket. An hourly timeline covers at most 31 days.
|
|
11208
|
+
schema:
|
|
11209
|
+
$ref: "#/components/schemas/SiteQuestionTimelineInterval"
|
|
11210
|
+
- name: topic
|
|
11211
|
+
in: query
|
|
11212
|
+
description: Filter answers by associated site topic IDs.
|
|
11213
|
+
schema:
|
|
11214
|
+
type: array
|
|
11215
|
+
items:
|
|
11216
|
+
type: string
|
|
11217
|
+
- name: relevance
|
|
11218
|
+
in: query
|
|
11219
|
+
description: Filter answers by question relevance.
|
|
11220
|
+
schema:
|
|
11221
|
+
type: array
|
|
11222
|
+
items:
|
|
11223
|
+
$ref: "#/components/schemas/SiteQuestionAnswerRelevance"
|
|
11224
|
+
- name: channelType
|
|
11225
|
+
in: query
|
|
11226
|
+
description: Filter answers by channel type.
|
|
11227
|
+
schema:
|
|
11228
|
+
type: array
|
|
11229
|
+
items:
|
|
11230
|
+
$ref: "#/components/schemas/SiteChannelType"
|
|
11231
|
+
- $ref: "#/components/parameters/siteQuestionVisitorType"
|
|
11232
|
+
- name: answered
|
|
11233
|
+
in: query
|
|
11234
|
+
description: Filter answers by resolution.
|
|
11235
|
+
schema:
|
|
11236
|
+
type: array
|
|
11237
|
+
items:
|
|
11238
|
+
$ref: "#/components/schemas/SiteQuestionAnswerResolution"
|
|
11239
|
+
responses:
|
|
11240
|
+
"200":
|
|
11241
|
+
description: OK
|
|
11242
|
+
content:
|
|
11243
|
+
application/json:
|
|
11244
|
+
schema:
|
|
11245
|
+
$ref: "#/components/schemas/SiteQuestionTimeline"
|
|
10828
11246
|
/orgs/{organizationId}/sites/{siteId}/answers:
|
|
10829
11247
|
get:
|
|
10830
11248
|
operationId: listSiteQuestionAnswers
|
|
@@ -10886,6 +11304,7 @@ paths:
|
|
|
10886
11304
|
type: array
|
|
10887
11305
|
items:
|
|
10888
11306
|
$ref: "#/components/schemas/SiteChannelType"
|
|
11307
|
+
- $ref: "#/components/parameters/siteQuestionVisitorType"
|
|
10889
11308
|
- name: question.type
|
|
10890
11309
|
in: query
|
|
10891
11310
|
description: Filter answers by question type.
|
|
@@ -11082,7 +11501,8 @@ paths:
|
|
|
11082
11501
|
operationId: duplicateSiteSpace
|
|
11083
11502
|
summary: Duplicate a space in a site
|
|
11084
11503
|
description: Creates a full copy of the space linked by the specified site space. When the site space is the only variant in a section, the copy is placed in a new sibling section. Otherwise, it is added as a variant under the same parent. Prefer this operation over duplicateSpace whenever the request originates from a site or needs to preserve site placement.
|
|
11085
|
-
x-gitbook-mcp:
|
|
11504
|
+
x-gitbook-mcp:
|
|
11505
|
+
destructive: true
|
|
11086
11506
|
tags:
|
|
11087
11507
|
- site-spaces
|
|
11088
11508
|
- spaces
|
|
@@ -11189,6 +11609,11 @@ paths:
|
|
|
11189
11609
|
oneOf:
|
|
11190
11610
|
- $ref: "#/components/schemas/CustomizationThemedColor"
|
|
11191
11611
|
- type: "null"
|
|
11612
|
+
secondaryColor:
|
|
11613
|
+
description: The secondary brand color used for secondary buttons and content colored with `$secondary`. Set to null to reset the override.
|
|
11614
|
+
oneOf:
|
|
11615
|
+
- $ref: "#/components/schemas/CustomizationThemedColor"
|
|
11616
|
+
- type: "null"
|
|
11192
11617
|
infoColor:
|
|
11193
11618
|
description: Used for informational messages and neutral alerts. Set to null to reset the override.
|
|
11194
11619
|
oneOf:
|
|
@@ -11798,6 +12223,8 @@ paths:
|
|
|
11798
12223
|
parameters:
|
|
11799
12224
|
- $ref: "#/components/parameters/organizationId"
|
|
11800
12225
|
- $ref: "#/components/parameters/siteId"
|
|
12226
|
+
- $ref: "#/components/parameters/xOriginalUserAgent"
|
|
12227
|
+
- $ref: "#/components/parameters/xOriginalSignatureAgent"
|
|
11801
12228
|
requestBody:
|
|
11802
12229
|
required: true
|
|
11803
12230
|
content:
|
|
@@ -11846,7 +12273,8 @@ paths:
|
|
|
11846
12273
|
operationId: applyTemplateToSite
|
|
11847
12274
|
summary: Apply the default documentation template to a site
|
|
11848
12275
|
description: Populates an empty site with GitBook's default documentation structure, content, and customization. Use this after creating a site without spaces to give it a ready-to-edit starting point.
|
|
11849
|
-
x-gitbook-mcp:
|
|
12276
|
+
x-gitbook-mcp:
|
|
12277
|
+
destructive: true
|
|
11850
12278
|
tags:
|
|
11851
12279
|
- sites
|
|
11852
12280
|
security:
|
|
@@ -11918,7 +12346,8 @@ paths:
|
|
|
11918
12346
|
operationId: createSiteStyleguideById
|
|
11919
12347
|
summary: Create or retrieve the style guide space for a site
|
|
11920
12348
|
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.
|
|
11921
|
-
x-gitbook-mcp:
|
|
12349
|
+
x-gitbook-mcp:
|
|
12350
|
+
idempotent: true
|
|
11922
12351
|
tags:
|
|
11923
12352
|
- sites
|
|
11924
12353
|
security:
|
|
@@ -12061,7 +12490,8 @@ paths:
|
|
|
12061
12490
|
operationId: aggregateSiteEvents
|
|
12062
12491
|
summary: Query a site's analytics events
|
|
12063
12492
|
description: "Runs an aggregation query over a published site's Insights events, grouped and filtered over a time range. Use it to answer analytics questions about how visitors engage with a site's documentation: page views, visitors, searches, referrers, and broken URLs (404s). A 404 is a `page_view` or `search_open_result` event whose `page` is `null`, in the `site` display context; filter `eventPageNotFoundType` not in `conditional` to leave out 404s that adaptive content explains. Group by `datetime` for a trend over time and by `urlPath` for the top broken URLs."
|
|
12064
|
-
x-gitbook-mcp:
|
|
12493
|
+
x-gitbook-mcp:
|
|
12494
|
+
readOnly: true
|
|
12065
12495
|
security:
|
|
12066
12496
|
- user: []
|
|
12067
12497
|
- oauth:
|
|
@@ -12114,7 +12544,9 @@ paths:
|
|
|
12114
12544
|
operationId: updateSiteAdsById
|
|
12115
12545
|
summary: Update the advertising settings for a site
|
|
12116
12546
|
description: Updates the advertising configuration for a site, including the review status and topic category used to select relevant ads. This controls GitBook's monetization feature for sites opted into the ads program.
|
|
12117
|
-
x-gitbook-mcp:
|
|
12547
|
+
x-gitbook-mcp:
|
|
12548
|
+
destructive: true
|
|
12549
|
+
idempotent: true
|
|
12118
12550
|
tags:
|
|
12119
12551
|
- site-ads
|
|
12120
12552
|
security:
|
|
@@ -12146,7 +12578,8 @@ paths:
|
|
|
12146
12578
|
operationId: createSiteRedirect
|
|
12147
12579
|
summary: Create a URL redirect rule for a site
|
|
12148
12580
|
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.
|
|
12149
|
-
x-gitbook-mcp:
|
|
12581
|
+
x-gitbook-mcp:
|
|
12582
|
+
destructive: true
|
|
12150
12583
|
tags:
|
|
12151
12584
|
- site-redirects
|
|
12152
12585
|
security:
|
|
@@ -12755,7 +13188,8 @@ paths:
|
|
|
12755
13188
|
operationId: listSiteChannelScopes
|
|
12756
13189
|
summary: List available site channel scopes
|
|
12757
13190
|
description: Lists accessible Linear teams, GitHub repositories, Slack channels or Jira projects. Requires site admin permission. Linear, GitHub and Slack require an already-connected channel belonging to this site and matching the provider. Jira uses either the credentials supplied, verified without saving a connection, or those stored on an existing Jira context connection of this site. Slack includes public channels and accessible private channels, excluding archived channels. To fetch another page, pass the opaque token from `next.page` as the `page` query parameter with the same request body. An absent `next` means there are no more pages; an empty `items` array alone does not indicate the end of the list.
|
|
12758
|
-
x-gitbook-mcp:
|
|
13191
|
+
x-gitbook-mcp:
|
|
13192
|
+
readOnly: true
|
|
12759
13193
|
tags:
|
|
12760
13194
|
- site-channels
|
|
12761
13195
|
security:
|
|
@@ -14142,6 +14576,13 @@ components:
|
|
|
14142
14576
|
description: The unique id of the SAML provider
|
|
14143
14577
|
schema:
|
|
14144
14578
|
type: string
|
|
14579
|
+
scimConnectionId:
|
|
14580
|
+
name: scimConnectionId
|
|
14581
|
+
in: path
|
|
14582
|
+
required: true
|
|
14583
|
+
description: The unique id of the SCIM connection
|
|
14584
|
+
schema:
|
|
14585
|
+
type: string
|
|
14145
14586
|
openapiSpecSlug:
|
|
14146
14587
|
name: specSlug
|
|
14147
14588
|
in: path
|
|
@@ -14227,6 +14668,25 @@ components:
|
|
|
14227
14668
|
description: The unique ID of the site external link
|
|
14228
14669
|
schema:
|
|
14229
14670
|
type: string
|
|
14671
|
+
xOriginalUserAgent:
|
|
14672
|
+
in: header
|
|
14673
|
+
name: X-Original-User-Agent
|
|
14674
|
+
description: |
|
|
14675
|
+
User agent of the visitor, when calling on behalf of one, such as from a server rendering a
|
|
14676
|
+
docs site. When omitted, the request's own `User-Agent` is used.
|
|
14677
|
+
required: false
|
|
14678
|
+
schema:
|
|
14679
|
+
type: string
|
|
14680
|
+
xOriginalSignatureAgent:
|
|
14681
|
+
in: header
|
|
14682
|
+
name: X-Original-Signature-Agent
|
|
14683
|
+
description: |
|
|
14684
|
+
`Signature-Agent` header sent by the visitor, when calling on behalf of one, for agents that
|
|
14685
|
+
sign their requests. When omitted, the request's own `Signature-Agent` is used.
|
|
14686
|
+
https://datatracker.ietf.org/doc/draft-meunier-web-bot-auth-architecture/
|
|
14687
|
+
required: false
|
|
14688
|
+
schema:
|
|
14689
|
+
type: string
|
|
14230
14690
|
siteContextRecordId:
|
|
14231
14691
|
name: siteContextRecordId
|
|
14232
14692
|
in: path
|
|
@@ -14255,6 +14715,14 @@ components:
|
|
|
14255
14715
|
description: The unique id of the context connection
|
|
14256
14716
|
schema:
|
|
14257
14717
|
type: string
|
|
14718
|
+
siteQuestionVisitorType:
|
|
14719
|
+
name: visitorType
|
|
14720
|
+
in: query
|
|
14721
|
+
description: Filter by whether a person or an AI agent asked the question.
|
|
14722
|
+
schema:
|
|
14723
|
+
type: array
|
|
14724
|
+
items:
|
|
14725
|
+
$ref: "#/components/schemas/SiteQuestionVisitorType"
|
|
14258
14726
|
siteTopicId:
|
|
14259
14727
|
name: siteTopicId
|
|
14260
14728
|
in: path
|
|
@@ -15716,6 +16184,7 @@ components:
|
|
|
15716
16184
|
- violet
|
|
15717
16185
|
- cyan
|
|
15718
16186
|
- $primary
|
|
16187
|
+
- $secondary
|
|
15719
16188
|
- $info
|
|
15720
16189
|
- $success
|
|
15721
16190
|
- $warning
|
|
@@ -17616,6 +18085,7 @@ components:
|
|
|
17616
18085
|
- $ref: "#/components/schemas/DocumentBlockReusableContent"
|
|
17617
18086
|
- $ref: "#/components/schemas/DocumentBlockIntegration"
|
|
17618
18087
|
- $ref: "#/components/schemas/DocumentBlockStepper"
|
|
18088
|
+
- $ref: "#/components/schemas/DocumentBlockTabs"
|
|
17619
18089
|
minItems: 1
|
|
17620
18090
|
required:
|
|
17621
18091
|
- nodes
|
|
@@ -19057,7 +19527,7 @@ components:
|
|
|
19057
19527
|
required:
|
|
19058
19528
|
- yPos
|
|
19059
19529
|
VariableValue:
|
|
19060
|
-
|
|
19530
|
+
anyOf:
|
|
19061
19531
|
- type: string
|
|
19062
19532
|
maxLength: 256
|
|
19063
19533
|
- type: number
|
|
@@ -20436,6 +20906,11 @@ components:
|
|
|
20436
20906
|
ref:
|
|
20437
20907
|
type: string
|
|
20438
20908
|
description: Temporary local reference for the page, used only for the lifetime of this request and never persisted. Other pages inserted in the same batch can link to this page by its ref (e.g. `[Page](./<ref>.md)`), which resolves to the page's ID at apply time — regardless of operation order or the page's eventual slug. A ref must be unique within the batch and must not collide with an existing page's path.
|
|
20909
|
+
stableKey:
|
|
20910
|
+
type: string
|
|
20911
|
+
minLength: 1
|
|
20912
|
+
maxLength: 255
|
|
20913
|
+
description: "Stable identifier for the page's content, such as the ID of the record it is generated from. The page's ID is derived from it, so re-inserting a deleted page with the same key restores its ID and links to it keep working. The same key gives the same page ID in every space, including duplicated spaces. To change a page that exists, use `update_page`: an insert whose key matches an existing page, or another insert in the batch, is rejected, so deleting a page and re-inserting its key must be done in separate requests. A re-created page takes over the old page's comments, redirects, insights and history. When two change requests insert the same key, merging both keeps only one of the pages, without a conflict."
|
|
20439
20914
|
document:
|
|
20440
20915
|
description: Document for the new page. When provided as markdown, its frontmatter is read to set the page metadata.
|
|
20441
20916
|
$ref: "#/components/schemas/Document"
|
|
@@ -20580,6 +21055,152 @@ components:
|
|
|
20580
21055
|
ref:
|
|
20581
21056
|
kind: openapi
|
|
20582
21057
|
spec: my-api
|
|
21058
|
+
ChangeRequestContentChangeInsertReusableContents:
|
|
21059
|
+
type: object
|
|
21060
|
+
description: Create reusable content (snippets shared by several pages) in the change request. A markdown document includes one as `{% include "/reusable-content/<reusableContentId>" %}` — use a `ref` to include it from a page in the same batch, or read the generated IDs from `insertedReusableContents`.
|
|
21061
|
+
required:
|
|
21062
|
+
- operation
|
|
21063
|
+
- reusableContents
|
|
21064
|
+
properties:
|
|
21065
|
+
operation:
|
|
21066
|
+
type: string
|
|
21067
|
+
enum:
|
|
21068
|
+
- insert_reusable_contents
|
|
21069
|
+
reusableContents:
|
|
21070
|
+
type: array
|
|
21071
|
+
minItems: 1
|
|
21072
|
+
maxItems: 20
|
|
21073
|
+
items:
|
|
21074
|
+
type: object
|
|
21075
|
+
description: A reusable content to create.
|
|
21076
|
+
required:
|
|
21077
|
+
- title
|
|
21078
|
+
- document
|
|
21079
|
+
properties:
|
|
21080
|
+
ref:
|
|
21081
|
+
type: string
|
|
21082
|
+
description: Temporary local reference for the reusable content, used only for the lifetime of this request and never persisted. Pages in the same batch can include it by its ref (e.g. `{% include "./<ref>" %}`), which resolves to the reusable content's ID at apply time — regardless of operation order. A ref must be unique among the reusable content refs of the batch.
|
|
21083
|
+
title:
|
|
21084
|
+
type: string
|
|
21085
|
+
minLength: 1
|
|
21086
|
+
maxLength: 100
|
|
21087
|
+
description: Title of the reusable content, shown when picking it in the editor.
|
|
21088
|
+
document:
|
|
21089
|
+
description: Body of the reusable content.
|
|
21090
|
+
$ref: "#/components/schemas/Document"
|
|
21091
|
+
example:
|
|
21092
|
+
operation: insert_reusable_contents
|
|
21093
|
+
reusableContents:
|
|
21094
|
+
- ref: disclaimer
|
|
21095
|
+
title: Disclaimer
|
|
21096
|
+
document:
|
|
21097
|
+
markdown: |
|
|
21098
|
+
{% hint style="warning" %}
|
|
21099
|
+
This feature is in beta.
|
|
21100
|
+
{% endhint %}
|
|
21101
|
+
ChangeRequestContentChangeUpdateReusableContent:
|
|
21102
|
+
type: object
|
|
21103
|
+
description: Update an existing reusable content's title and/or document. Its ID is unchanged, so every page including it shows the update.
|
|
21104
|
+
required:
|
|
21105
|
+
- operation
|
|
21106
|
+
- reusableContent
|
|
21107
|
+
properties:
|
|
21108
|
+
operation:
|
|
21109
|
+
type: string
|
|
21110
|
+
enum:
|
|
21111
|
+
- update_reusable_content
|
|
21112
|
+
reusableContent:
|
|
21113
|
+
type: string
|
|
21114
|
+
description: ID of the reusable content to update.
|
|
21115
|
+
title:
|
|
21116
|
+
type: string
|
|
21117
|
+
minLength: 1
|
|
21118
|
+
maxLength: 100
|
|
21119
|
+
description: New title of the reusable content. Omit to keep the current title.
|
|
21120
|
+
document:
|
|
21121
|
+
description: New body of the reusable content. Omit to keep the current body.
|
|
21122
|
+
$ref: "#/components/schemas/Document"
|
|
21123
|
+
example:
|
|
21124
|
+
operation: update_reusable_content
|
|
21125
|
+
reusableContent: reusable_content_id
|
|
21126
|
+
title: Beta disclaimer
|
|
21127
|
+
ChangeRequestContentChangeDeleteReusableContent:
|
|
21128
|
+
type: object
|
|
21129
|
+
description: Delete an existing reusable content from the change request.
|
|
21130
|
+
required:
|
|
21131
|
+
- operation
|
|
21132
|
+
- reusableContent
|
|
21133
|
+
properties:
|
|
21134
|
+
operation:
|
|
21135
|
+
type: string
|
|
21136
|
+
enum:
|
|
21137
|
+
- delete_reusable_content
|
|
21138
|
+
reusableContent:
|
|
21139
|
+
type: string
|
|
21140
|
+
description: ID of the reusable content to delete.
|
|
21141
|
+
example:
|
|
21142
|
+
operation: delete_reusable_content
|
|
21143
|
+
reusableContent: reusable_content_id
|
|
21144
|
+
VariableName:
|
|
21145
|
+
type: string
|
|
21146
|
+
description: Name of a variable, referenced in content as `space.vars.<name>`. It starts with a letter, `_` or `$` and contains only letters, digits, `_` and `$`.
|
|
21147
|
+
minLength: 1
|
|
21148
|
+
maxLength: 64
|
|
21149
|
+
pattern: ^[a-zA-Z_$][a-zA-Z0-9_$]*$
|
|
21150
|
+
ChangeRequestContentChangeInsertVariables:
|
|
21151
|
+
type: object
|
|
21152
|
+
description: Create space variables in the change request (Git Sync's `.gitbook/vars.yaml`). Content references one as an expression, `<code class="expression">space.vars.<name></code>` in markdown, which renders the variable's value.
|
|
21153
|
+
required:
|
|
21154
|
+
- operation
|
|
21155
|
+
- variables
|
|
21156
|
+
properties:
|
|
21157
|
+
operation:
|
|
21158
|
+
type: string
|
|
21159
|
+
enum:
|
|
21160
|
+
- insert_variables
|
|
21161
|
+
variables:
|
|
21162
|
+
type: array
|
|
21163
|
+
minItems: 1
|
|
21164
|
+
maxItems: 50
|
|
21165
|
+
items:
|
|
21166
|
+
type: object
|
|
21167
|
+
description: A variable to create. Its name must not already be used by a space variable of the change request.
|
|
21168
|
+
required:
|
|
21169
|
+
- name
|
|
21170
|
+
- value
|
|
21171
|
+
properties:
|
|
21172
|
+
name:
|
|
21173
|
+
$ref: "#/components/schemas/VariableName"
|
|
21174
|
+
value:
|
|
21175
|
+
description: Value of the variable.
|
|
21176
|
+
$ref: "#/components/schemas/VariableValue"
|
|
21177
|
+
example:
|
|
21178
|
+
operation: insert_variables
|
|
21179
|
+
variables:
|
|
21180
|
+
- name: version
|
|
21181
|
+
value: "2.0"
|
|
21182
|
+
ChangeRequestContentChangeUpdateVariable:
|
|
21183
|
+
type: object
|
|
21184
|
+
description: Change the value of an existing space variable. Every expression referencing it shows the new value.
|
|
21185
|
+
required:
|
|
21186
|
+
- operation
|
|
21187
|
+
- variable
|
|
21188
|
+
- value
|
|
21189
|
+
properties:
|
|
21190
|
+
operation:
|
|
21191
|
+
type: string
|
|
21192
|
+
enum:
|
|
21193
|
+
- update_variable
|
|
21194
|
+
variable:
|
|
21195
|
+
description: Name of the variable to update.
|
|
21196
|
+
$ref: "#/components/schemas/VariableName"
|
|
21197
|
+
value:
|
|
21198
|
+
description: New value of the variable.
|
|
21199
|
+
$ref: "#/components/schemas/VariableValue"
|
|
21200
|
+
example:
|
|
21201
|
+
operation: update_variable
|
|
21202
|
+
variable: version
|
|
21203
|
+
value: "2.1"
|
|
20583
21204
|
ChangeRequestContentChange:
|
|
20584
21205
|
oneOf:
|
|
20585
21206
|
- $ref: "#/components/schemas/ChangeRequestContentChangeUpdatePage"
|
|
@@ -20588,6 +21209,11 @@ components:
|
|
|
20588
21209
|
- $ref: "#/components/schemas/ChangeRequestContentChangeRevertPage"
|
|
20589
21210
|
- $ref: "#/components/schemas/ChangeRequestContentChangeInsertFiles"
|
|
20590
21211
|
- $ref: "#/components/schemas/ChangeRequestContentChangeInsertComputedPage"
|
|
21212
|
+
- $ref: "#/components/schemas/ChangeRequestContentChangeInsertReusableContents"
|
|
21213
|
+
- $ref: "#/components/schemas/ChangeRequestContentChangeUpdateReusableContent"
|
|
21214
|
+
- $ref: "#/components/schemas/ChangeRequestContentChangeDeleteReusableContent"
|
|
21215
|
+
- $ref: "#/components/schemas/ChangeRequestContentChangeInsertVariables"
|
|
21216
|
+
- $ref: "#/components/schemas/ChangeRequestContentChangeUpdateVariable"
|
|
20591
21217
|
discriminator:
|
|
20592
21218
|
propertyName: operation
|
|
20593
21219
|
mapping:
|
|
@@ -20597,6 +21223,11 @@ components:
|
|
|
20597
21223
|
revert_page: "#/components/schemas/ChangeRequestContentChangeRevertPage"
|
|
20598
21224
|
insert_files: "#/components/schemas/ChangeRequestContentChangeInsertFiles"
|
|
20599
21225
|
insert_computed_page: "#/components/schemas/ChangeRequestContentChangeInsertComputedPage"
|
|
21226
|
+
insert_reusable_contents: "#/components/schemas/ChangeRequestContentChangeInsertReusableContents"
|
|
21227
|
+
update_reusable_content: "#/components/schemas/ChangeRequestContentChangeUpdateReusableContent"
|
|
21228
|
+
delete_reusable_content: "#/components/schemas/ChangeRequestContentChangeDeleteReusableContent"
|
|
21229
|
+
insert_variables: "#/components/schemas/ChangeRequestContentChangeInsertVariables"
|
|
21230
|
+
update_variable: "#/components/schemas/ChangeRequestContentChangeUpdateVariable"
|
|
20600
21231
|
ChangeRequestContentUpdatePageRef:
|
|
20601
21232
|
type: object
|
|
20602
21233
|
required:
|
|
@@ -20700,6 +21331,11 @@ components:
|
|
|
20700
21331
|
description: Files created by the `insert_files` changes in this batch, in the order they were inserted. Use their IDs to reference them from a document.
|
|
20701
21332
|
items:
|
|
20702
21333
|
$ref: "#/components/schemas/RevisionFile"
|
|
21334
|
+
insertedReusableContents:
|
|
21335
|
+
type: array
|
|
21336
|
+
description: Reusable contents created by the `insert_reusable_contents` changes in this batch, in the order they were inserted. Use their IDs to include them from a document.
|
|
21337
|
+
items:
|
|
21338
|
+
$ref: "#/components/schemas/RevisionReusableContent"
|
|
20703
21339
|
RevisionPageType:
|
|
20704
21340
|
type: string
|
|
20705
21341
|
enum:
|
|
@@ -21083,6 +21719,10 @@ components:
|
|
|
21083
21719
|
properties:
|
|
21084
21720
|
label:
|
|
21085
21721
|
$ref: "#/components/schemas/ChangeAttributeString"
|
|
21722
|
+
group:
|
|
21723
|
+
$ref: "#/components/schemas/ChangeAttributeString"
|
|
21724
|
+
parent:
|
|
21725
|
+
$ref: "#/components/schemas/ChangeAttributeString"
|
|
21086
21726
|
RevisionSemanticChangeTagEdited:
|
|
21087
21727
|
type: object
|
|
21088
21728
|
properties:
|
|
@@ -21098,6 +21738,72 @@ components:
|
|
|
21098
21738
|
- type
|
|
21099
21739
|
- tag
|
|
21100
21740
|
- attributes
|
|
21741
|
+
RevisionTagGroup:
|
|
21742
|
+
type: object
|
|
21743
|
+
description: A space-scoped group of tags in this revision. Groups may contain other groups.
|
|
21744
|
+
required:
|
|
21745
|
+
- slug
|
|
21746
|
+
- label
|
|
21747
|
+
- orderIndex
|
|
21748
|
+
properties:
|
|
21749
|
+
slug:
|
|
21750
|
+
type: string
|
|
21751
|
+
description: Immutable group identifier, unique within the revision.
|
|
21752
|
+
label:
|
|
21753
|
+
type: string
|
|
21754
|
+
description: Display name of the group.
|
|
21755
|
+
parent:
|
|
21756
|
+
type: string
|
|
21757
|
+
description: Parent group slug. Omitted for root groups.
|
|
21758
|
+
orderIndex:
|
|
21759
|
+
type: string
|
|
21760
|
+
description: Lexicographic sibling sort key. Break ties using the slug.
|
|
21761
|
+
RevisionSemanticChangeTagGroupCreated:
|
|
21762
|
+
type: object
|
|
21763
|
+
required:
|
|
21764
|
+
- type
|
|
21765
|
+
- tagGroup
|
|
21766
|
+
properties:
|
|
21767
|
+
type:
|
|
21768
|
+
type: string
|
|
21769
|
+
enum:
|
|
21770
|
+
- tag_group_created
|
|
21771
|
+
tagGroup:
|
|
21772
|
+
$ref: "#/components/schemas/RevisionTagGroup"
|
|
21773
|
+
RevisionSemanticChangeTagGroupEdited:
|
|
21774
|
+
type: object
|
|
21775
|
+
required:
|
|
21776
|
+
- type
|
|
21777
|
+
- tagGroup
|
|
21778
|
+
- attributes
|
|
21779
|
+
properties:
|
|
21780
|
+
type:
|
|
21781
|
+
type: string
|
|
21782
|
+
enum:
|
|
21783
|
+
- tag_group_edited
|
|
21784
|
+
tagGroup:
|
|
21785
|
+
$ref: "#/components/schemas/RevisionTagGroup"
|
|
21786
|
+
attributes:
|
|
21787
|
+
type: object
|
|
21788
|
+
properties:
|
|
21789
|
+
label:
|
|
21790
|
+
$ref: "#/components/schemas/ChangeAttributeString"
|
|
21791
|
+
parent:
|
|
21792
|
+
$ref: "#/components/schemas/ChangeAttributeString"
|
|
21793
|
+
orderIndex:
|
|
21794
|
+
$ref: "#/components/schemas/ChangeAttributeString"
|
|
21795
|
+
RevisionSemanticChangeTagGroupDeleted:
|
|
21796
|
+
type: object
|
|
21797
|
+
required:
|
|
21798
|
+
- type
|
|
21799
|
+
- tagGroup
|
|
21800
|
+
properties:
|
|
21801
|
+
type:
|
|
21802
|
+
type: string
|
|
21803
|
+
enum:
|
|
21804
|
+
- tag_group_deleted
|
|
21805
|
+
tagGroup:
|
|
21806
|
+
$ref: "#/components/schemas/RevisionTagGroup"
|
|
21101
21807
|
RevisionSemanticChange:
|
|
21102
21808
|
oneOf:
|
|
21103
21809
|
- $ref: "#/components/schemas/RevisionSemanticChangePageCreated"
|
|
@@ -21114,6 +21820,9 @@ components:
|
|
|
21114
21820
|
- $ref: "#/components/schemas/RevisionSemanticChangeTagCreated"
|
|
21115
21821
|
- $ref: "#/components/schemas/RevisionSemanticChangeTagDeleted"
|
|
21116
21822
|
- $ref: "#/components/schemas/RevisionSemanticChangeTagEdited"
|
|
21823
|
+
- $ref: "#/components/schemas/RevisionSemanticChangeTagGroupCreated"
|
|
21824
|
+
- $ref: "#/components/schemas/RevisionSemanticChangeTagGroupEdited"
|
|
21825
|
+
- $ref: "#/components/schemas/RevisionSemanticChangeTagGroupDeleted"
|
|
21117
21826
|
RevisionSemanticChanges:
|
|
21118
21827
|
type: object
|
|
21119
21828
|
properties:
|
|
@@ -21145,6 +21854,24 @@ components:
|
|
|
21145
21854
|
description: Reactions to remove from the comment.
|
|
21146
21855
|
items:
|
|
21147
21856
|
type: string
|
|
21857
|
+
MemberDisabledReason:
|
|
21858
|
+
type: string
|
|
21859
|
+
description: |
|
|
21860
|
+
Why a member is disabled in an organization.
|
|
21861
|
+
"billing": The organization's plan has reached its maximum number of members.
|
|
21862
|
+
"scim": The member was deactivated by the organization's identity provider.
|
|
21863
|
+
"admin": An organization admin disabled the member.
|
|
21864
|
+
enum:
|
|
21865
|
+
- billing
|
|
21866
|
+
- scim
|
|
21867
|
+
- admin
|
|
21868
|
+
MemberDisabled:
|
|
21869
|
+
description: Why the member is disabled, or false when the member is active. A disabled member cannot access the organization or its content.
|
|
21870
|
+
oneOf:
|
|
21871
|
+
- type: boolean
|
|
21872
|
+
enum:
|
|
21873
|
+
- false
|
|
21874
|
+
- $ref: "#/components/schemas/MemberDisabledReason"
|
|
21148
21875
|
OrganizationMember:
|
|
21149
21876
|
type: object
|
|
21150
21877
|
properties:
|
|
@@ -21161,8 +21888,7 @@ components:
|
|
|
21161
21888
|
user:
|
|
21162
21889
|
$ref: "#/components/schemas/User"
|
|
21163
21890
|
disabled:
|
|
21164
|
-
|
|
21165
|
-
description: Whatever the membership of this user is disabled and prevent them from accessing content.
|
|
21891
|
+
$ref: "#/components/schemas/MemberDisabled"
|
|
21166
21892
|
joinedAt:
|
|
21167
21893
|
description: Date at which the user joined the organization.
|
|
21168
21894
|
$ref: "#/components/schemas/Timestamp"
|
|
@@ -21525,9 +22251,6 @@ components:
|
|
|
21525
22251
|
- pro_2024
|
|
21526
22252
|
- enterprise_2024
|
|
21527
22253
|
- community_2024
|
|
21528
|
-
- free
|
|
21529
|
-
- plus
|
|
21530
|
-
- pro
|
|
21531
22254
|
- internal
|
|
21532
22255
|
BillingInterval:
|
|
21533
22256
|
type: string
|
|
@@ -21778,6 +22501,9 @@ components:
|
|
|
21778
22501
|
ai:
|
|
21779
22502
|
description: If true, the organization is configured to use all our AI features.
|
|
21780
22503
|
type: boolean
|
|
22504
|
+
aiPreference:
|
|
22505
|
+
description: Whether the master AI setting is turned on, regardless of plan availability. Contract overrides forcing AI off take precedence.
|
|
22506
|
+
type: boolean
|
|
21781
22507
|
aiSettings:
|
|
21782
22508
|
$ref: "#/components/schemas/OrganizationAISettings"
|
|
21783
22509
|
aiPaused:
|
|
@@ -21849,18 +22575,6 @@ components:
|
|
|
21849
22575
|
$ref: "#/components/schemas/BlockReason"
|
|
21850
22576
|
required:
|
|
21851
22577
|
- reason
|
|
21852
|
-
internal_billingMigration:
|
|
21853
|
-
type: object
|
|
21854
|
-
properties:
|
|
21855
|
-
deadline:
|
|
21856
|
-
description: When we will upgrade the organization onto new pricing, if they haven't already.
|
|
21857
|
-
$ref: "#/components/schemas/Timestamp"
|
|
21858
|
-
discountPercent:
|
|
21859
|
-
description: A discount the organization may have received thanks to migrating early.
|
|
21860
|
-
type: number
|
|
21861
|
-
discountEndDate:
|
|
21862
|
-
description: The expiration date of the discount, after wich regular pricing resumes.
|
|
21863
|
-
$ref: "#/components/schemas/Timestamp"
|
|
21864
22578
|
permissions:
|
|
21865
22579
|
type: object
|
|
21866
22580
|
description: The set of permissions for the organization
|
|
@@ -23203,8 +23917,6 @@ components:
|
|
|
23203
23917
|
- premium
|
|
23204
23918
|
- ultimate
|
|
23205
23919
|
- sponsored
|
|
23206
|
-
- legacy-basic
|
|
23207
|
-
- legacy-premium
|
|
23208
23920
|
SiteTitle:
|
|
23209
23921
|
type: string
|
|
23210
23922
|
description: Title of the site
|
|
@@ -23362,7 +24074,6 @@ components:
|
|
|
23362
24074
|
- sites-basic-customization
|
|
23363
24075
|
- sites-broken-links
|
|
23364
24076
|
- sites-custom-domain
|
|
23365
|
-
- sites-custom-fonts
|
|
23366
24077
|
- sites-custom-subdirectory
|
|
23367
24078
|
- sites-full-text-search
|
|
23368
24079
|
- sites-multivariant-site
|
|
@@ -23430,6 +24141,12 @@ components:
|
|
|
23430
24141
|
appliedType:
|
|
23431
24142
|
$ref: "#/components/schemas/SiteType"
|
|
23432
24143
|
description: The currently applied type of the site. For example, frozen sites will have this set to Basic.
|
|
24144
|
+
unpublishedBy:
|
|
24145
|
+
type: string
|
|
24146
|
+
enum:
|
|
24147
|
+
- user
|
|
24148
|
+
- system
|
|
24149
|
+
description: Who unpublished this site last. Cleared when the site is published again.
|
|
23433
24150
|
title:
|
|
23434
24151
|
$ref: "#/components/schemas/SiteTitle"
|
|
23435
24152
|
icon:
|
|
@@ -24715,6 +25432,9 @@ components:
|
|
|
24715
25432
|
draft:
|
|
24716
25433
|
type: boolean
|
|
24717
25434
|
description: Whether the site section is draft and not live.
|
|
25435
|
+
hidden:
|
|
25436
|
+
type: boolean
|
|
25437
|
+
description: Whether the site section is hidden. It is hidden when all of its site spaces are hidden, in which case it is not shown in the site's navigation.
|
|
24718
25438
|
path:
|
|
24719
25439
|
$ref: "#/components/schemas/SiteSectionPath"
|
|
24720
25440
|
condition:
|
|
@@ -24771,6 +25491,9 @@ components:
|
|
|
24771
25491
|
description: List of site section ids that are members of the group. Use `children` instead.
|
|
24772
25492
|
items:
|
|
24773
25493
|
$ref: "#/components/schemas/SiteSection"
|
|
25494
|
+
condition:
|
|
25495
|
+
description: Conditional expression used to evaluate whether the site section group should be shown to the site's visitor.
|
|
25496
|
+
$ref: "#/components/schemas/Expression"
|
|
24774
25497
|
sectionGroup:
|
|
24775
25498
|
type: string
|
|
24776
25499
|
description: ID of the parent section group this group belongs to
|
|
@@ -26037,70 +26760,6 @@ components:
|
|
|
26037
26760
|
- interval_changed
|
|
26038
26761
|
required:
|
|
26039
26762
|
- result
|
|
26040
|
-
MigrateOrganizationParameters:
|
|
26041
|
-
type: object
|
|
26042
|
-
properties:
|
|
26043
|
-
interval:
|
|
26044
|
-
description: The desired billing interval
|
|
26045
|
-
$ref: "#/components/schemas/BillingInterval"
|
|
26046
|
-
product:
|
|
26047
|
-
type: string
|
|
26048
|
-
description: The new product to upgrade to
|
|
26049
|
-
enum:
|
|
26050
|
-
- free_2024
|
|
26051
|
-
- plus_2024
|
|
26052
|
-
- pro_2024
|
|
26053
|
-
changes:
|
|
26054
|
-
$ref: "#/components/schemas/SubscriptionChanges"
|
|
26055
|
-
required:
|
|
26056
|
-
- product
|
|
26057
|
-
- interval
|
|
26058
|
-
- changes
|
|
26059
|
-
Error:
|
|
26060
|
-
type: object
|
|
26061
|
-
required:
|
|
26062
|
-
- error
|
|
26063
|
-
properties:
|
|
26064
|
-
error:
|
|
26065
|
-
type: object
|
|
26066
|
-
properties:
|
|
26067
|
-
code:
|
|
26068
|
-
type: integer
|
|
26069
|
-
format: int32
|
|
26070
|
-
message:
|
|
26071
|
-
type: string
|
|
26072
|
-
required:
|
|
26073
|
-
- code
|
|
26074
|
-
- message
|
|
26075
|
-
BillingDiscount:
|
|
26076
|
-
type: object
|
|
26077
|
-
properties:
|
|
26078
|
-
duration:
|
|
26079
|
-
description: How many months the discount will last
|
|
26080
|
-
type: number
|
|
26081
|
-
percentOff:
|
|
26082
|
-
description: Percent that will be deducted from the subtotal of the invoice
|
|
26083
|
-
type: number
|
|
26084
|
-
required:
|
|
26085
|
-
- duration
|
|
26086
|
-
- percentOff
|
|
26087
|
-
SitePageviews:
|
|
26088
|
-
type: object
|
|
26089
|
-
properties:
|
|
26090
|
-
object:
|
|
26091
|
-
type: string
|
|
26092
|
-
enum:
|
|
26093
|
-
- site-pageviews
|
|
26094
|
-
siteId:
|
|
26095
|
-
type: string
|
|
26096
|
-
description: The identifier of the site
|
|
26097
|
-
pageviews:
|
|
26098
|
-
description: Number of pageviews in the past 30 days
|
|
26099
|
-
type: number
|
|
26100
|
-
required:
|
|
26101
|
-
- object
|
|
26102
|
-
- siteId
|
|
26103
|
-
- pageviews
|
|
26104
26763
|
BillingPortal:
|
|
26105
26764
|
type: object
|
|
26106
26765
|
properties:
|
|
@@ -26214,6 +26873,7 @@ components:
|
|
|
26214
26873
|
- members-teams
|
|
26215
26874
|
- members-team-owners
|
|
26216
26875
|
- security-saml
|
|
26876
|
+
- scim
|
|
26217
26877
|
- change-requests-merge-rules
|
|
26218
26878
|
SearchSpaceResult:
|
|
26219
26879
|
type: object
|
|
@@ -26420,6 +27080,84 @@ components:
|
|
|
26420
27080
|
- status
|
|
26421
27081
|
- service
|
|
26422
27082
|
- urls
|
|
27083
|
+
SCIMConnectionLabel:
|
|
27084
|
+
type: string
|
|
27085
|
+
description: Name of the SCIM connection, shown to organization admins.
|
|
27086
|
+
minLength: 1
|
|
27087
|
+
maxLength: 100
|
|
27088
|
+
SCIMConnectionProvider:
|
|
27089
|
+
type: string
|
|
27090
|
+
description: Identity provider that provisions members through the SCIM connection.
|
|
27091
|
+
enum:
|
|
27092
|
+
- okta
|
|
27093
|
+
- entra
|
|
27094
|
+
- generic
|
|
27095
|
+
OrganizationSCIMConnection:
|
|
27096
|
+
type: object
|
|
27097
|
+
description: A SCIM connection through which an identity provider provisions organization members.
|
|
27098
|
+
properties:
|
|
27099
|
+
object:
|
|
27100
|
+
type: string
|
|
27101
|
+
description: The object type, which is always "scim-connection"
|
|
27102
|
+
enum:
|
|
27103
|
+
- scim-connection
|
|
27104
|
+
id:
|
|
27105
|
+
type: string
|
|
27106
|
+
description: Unique identifier of the SCIM connection
|
|
27107
|
+
label:
|
|
27108
|
+
$ref: "#/components/schemas/SCIMConnectionLabel"
|
|
27109
|
+
provider:
|
|
27110
|
+
$ref: "#/components/schemas/SCIMConnectionProvider"
|
|
27111
|
+
baseURL:
|
|
27112
|
+
description: SCIM base URL to configure in the identity provider
|
|
27113
|
+
$ref: "#/components/schemas/URL"
|
|
27114
|
+
tokenHint:
|
|
27115
|
+
type: string
|
|
27116
|
+
description: Last characters of the current token, to identify it
|
|
27117
|
+
tokenCreatedAt:
|
|
27118
|
+
description: Date the current token was created
|
|
27119
|
+
$ref: "#/components/schemas/Timestamp"
|
|
27120
|
+
lastUsedAt:
|
|
27121
|
+
description: Date of the last request authenticated with the token
|
|
27122
|
+
$ref: "#/components/schemas/Timestamp"
|
|
27123
|
+
createdAt:
|
|
27124
|
+
description: Date of creation
|
|
27125
|
+
$ref: "#/components/schemas/Timestamp"
|
|
27126
|
+
updatedAt:
|
|
27127
|
+
description: Date of the last update
|
|
27128
|
+
$ref: "#/components/schemas/Timestamp"
|
|
27129
|
+
urls:
|
|
27130
|
+
type: object
|
|
27131
|
+
description: URLs associated with the object
|
|
27132
|
+
properties:
|
|
27133
|
+
location:
|
|
27134
|
+
description: URL of the SCIM connection in the API
|
|
27135
|
+
$ref: "#/components/schemas/URL"
|
|
27136
|
+
required:
|
|
27137
|
+
- location
|
|
27138
|
+
required:
|
|
27139
|
+
- object
|
|
27140
|
+
- id
|
|
27141
|
+
- label
|
|
27142
|
+
- provider
|
|
27143
|
+
- baseURL
|
|
27144
|
+
- tokenHint
|
|
27145
|
+
- tokenCreatedAt
|
|
27146
|
+
- createdAt
|
|
27147
|
+
- updatedAt
|
|
27148
|
+
- urls
|
|
27149
|
+
OrganizationSCIMConnectionWithToken:
|
|
27150
|
+
description: A SCIM connection with its token, returned only when the token is created.
|
|
27151
|
+
type: object
|
|
27152
|
+
properties:
|
|
27153
|
+
connection:
|
|
27154
|
+
$ref: "#/components/schemas/OrganizationSCIMConnection"
|
|
27155
|
+
token:
|
|
27156
|
+
type: string
|
|
27157
|
+
description: Bearer token to configure in the identity provider. It can't be retrieved again.
|
|
27158
|
+
required:
|
|
27159
|
+
- connection
|
|
27160
|
+
- token
|
|
26423
27161
|
OrganizationSSOProviderLogin:
|
|
26424
27162
|
type: object
|
|
26425
27163
|
properties:
|
|
@@ -26457,43 +27195,28 @@ components:
|
|
|
26457
27195
|
OrganizationUsageSites:
|
|
26458
27196
|
type: object
|
|
26459
27197
|
description: Sites usage metrics of an organization
|
|
26460
|
-
|
|
26461
|
-
|
|
26462
|
-
|
|
26463
|
-
|
|
26464
|
-
|
|
26465
|
-
|
|
26466
|
-
|
|
26467
|
-
|
|
26468
|
-
|
|
26469
|
-
|
|
26470
|
-
|
|
26471
|
-
|
|
26472
|
-
|
|
26473
|
-
|
|
26474
|
-
|
|
26475
|
-
|
|
26476
|
-
|
|
26477
|
-
|
|
26478
|
-
|
|
26479
|
-
|
|
26480
|
-
|
|
26481
|
-
|
|
26482
|
-
premium:
|
|
26483
|
-
description: Count of all premium sites
|
|
26484
|
-
type: number
|
|
26485
|
-
ultimate:
|
|
26486
|
-
description: Count of all ultimate sites
|
|
26487
|
-
type: number
|
|
26488
|
-
sponsored:
|
|
26489
|
-
description: Count of all sponsored sites
|
|
26490
|
-
type: number
|
|
26491
|
-
required:
|
|
26492
|
-
- total
|
|
26493
|
-
- basic
|
|
26494
|
-
- premium
|
|
26495
|
-
- ultimate
|
|
26496
|
-
- sponsored
|
|
27198
|
+
properties:
|
|
27199
|
+
total:
|
|
27200
|
+
description: Count of all sites
|
|
27201
|
+
type: number
|
|
27202
|
+
basic:
|
|
27203
|
+
description: Count of all basic sites
|
|
27204
|
+
type: number
|
|
27205
|
+
premium:
|
|
27206
|
+
description: Count of all premium sites
|
|
27207
|
+
type: number
|
|
27208
|
+
ultimate:
|
|
27209
|
+
description: Count of all ultimate sites
|
|
27210
|
+
type: number
|
|
27211
|
+
sponsored:
|
|
27212
|
+
description: Count of all sponsored sites
|
|
27213
|
+
type: number
|
|
27214
|
+
required:
|
|
27215
|
+
- total
|
|
27216
|
+
- basic
|
|
27217
|
+
- premium
|
|
27218
|
+
- ultimate
|
|
27219
|
+
- sponsored
|
|
26497
27220
|
OrganizationUsageTeams:
|
|
26498
27221
|
type: object
|
|
26499
27222
|
description: Team members usage metrics of an organization
|
|
@@ -26508,10 +27231,29 @@ components:
|
|
|
26508
27231
|
description: Members usage metrics of an organization
|
|
26509
27232
|
properties:
|
|
26510
27233
|
total:
|
|
26511
|
-
description: Count of all members
|
|
27234
|
+
description: Count of all members, including disabled ones
|
|
26512
27235
|
type: number
|
|
27236
|
+
active:
|
|
27237
|
+
description: Count of members that are not disabled
|
|
27238
|
+
type: number
|
|
27239
|
+
disabled:
|
|
27240
|
+
description: Count of disabled members, by the reason they are disabled
|
|
27241
|
+
type: object
|
|
27242
|
+
properties:
|
|
27243
|
+
billing:
|
|
27244
|
+
type: number
|
|
27245
|
+
scim:
|
|
27246
|
+
type: number
|
|
27247
|
+
admin:
|
|
27248
|
+
type: number
|
|
27249
|
+
required:
|
|
27250
|
+
- billing
|
|
27251
|
+
- scim
|
|
27252
|
+
- admin
|
|
26513
27253
|
seats:
|
|
26514
|
-
description:
|
|
27254
|
+
description: |
|
|
27255
|
+
Count of paid seats. On the Free plan, it includes members disabled for billing, since
|
|
27256
|
+
upgrading re-enables them. On paid plans, it only includes active members.
|
|
26515
27257
|
type: number
|
|
26516
27258
|
admin:
|
|
26517
27259
|
description: Count of all admins
|
|
@@ -26536,6 +27278,8 @@ components:
|
|
|
26536
27278
|
type: number
|
|
26537
27279
|
required:
|
|
26538
27280
|
- total
|
|
27281
|
+
- active
|
|
27282
|
+
- disabled
|
|
26539
27283
|
- seats
|
|
26540
27284
|
- admin
|
|
26541
27285
|
- create
|
|
@@ -26963,6 +27707,7 @@ components:
|
|
|
26963
27707
|
- pending
|
|
26964
27708
|
- running
|
|
26965
27709
|
- completed
|
|
27710
|
+
- failed
|
|
26966
27711
|
TranslationSource:
|
|
26967
27712
|
type: object
|
|
26968
27713
|
required:
|
|
@@ -27624,6 +28369,22 @@ components:
|
|
|
27624
28369
|
- createdBy
|
|
27625
28370
|
- updatedAt
|
|
27626
28371
|
- urls
|
|
28372
|
+
Error:
|
|
28373
|
+
type: object
|
|
28374
|
+
required:
|
|
28375
|
+
- error
|
|
28376
|
+
properties:
|
|
28377
|
+
error:
|
|
28378
|
+
type: object
|
|
28379
|
+
properties:
|
|
28380
|
+
code:
|
|
28381
|
+
type: integer
|
|
28382
|
+
format: int32
|
|
28383
|
+
message:
|
|
28384
|
+
type: string
|
|
28385
|
+
required:
|
|
28386
|
+
- code
|
|
28387
|
+
- message
|
|
27627
28388
|
SiteAdaptiveRegions:
|
|
27628
28389
|
type: object
|
|
27629
28390
|
description: Groups of countries exposed to adaptive content as `visitor.region`. The key of each entry is the region name; `visitor.region` is undefined for a visitor whose country is in none of the regions. A site can declare at most 10 regions.
|
|
@@ -28539,6 +29300,9 @@ components:
|
|
|
28539
29300
|
$ref: "#/components/schemas/CustomizationTheme"
|
|
28540
29301
|
primaryColor:
|
|
28541
29302
|
$ref: "#/components/schemas/CustomizationThemedColor"
|
|
29303
|
+
secondaryColor:
|
|
29304
|
+
description: Secondary brand color, used for secondary buttons and for content colored with `$secondary`. When not set, these elements use the neutral colors of the site.
|
|
29305
|
+
$ref: "#/components/schemas/CustomizationThemedColor"
|
|
28542
29306
|
tint:
|
|
28543
29307
|
$ref: "#/components/schemas/CustomizationTint"
|
|
28544
29308
|
infoColor:
|
|
@@ -28836,6 +29600,37 @@ components:
|
|
|
28836
29600
|
- structure
|
|
28837
29601
|
- customizations
|
|
28838
29602
|
- scripts
|
|
29603
|
+
SiteSetupStepId:
|
|
29604
|
+
type: string
|
|
29605
|
+
description: A step of the setup of a site, in the order they are done.
|
|
29606
|
+
enum:
|
|
29607
|
+
- first-edit
|
|
29608
|
+
- customize
|
|
29609
|
+
- git-sync
|
|
29610
|
+
- domain
|
|
29611
|
+
- publish
|
|
29612
|
+
SiteSetup:
|
|
29613
|
+
type: object
|
|
29614
|
+
description: Steps to set up a site, each completed or not from the site's current data.
|
|
29615
|
+
properties:
|
|
29616
|
+
steps:
|
|
29617
|
+
type: array
|
|
29618
|
+
description: Every setup step, in order. Empty once the site has been published, which ends the setup even if other steps are not completed.
|
|
29619
|
+
items:
|
|
29620
|
+
type: object
|
|
29621
|
+
properties:
|
|
29622
|
+
id:
|
|
29623
|
+
$ref: "#/components/schemas/SiteSetupStepId"
|
|
29624
|
+
completed:
|
|
29625
|
+
type: boolean
|
|
29626
|
+
action:
|
|
29627
|
+
type: string
|
|
29628
|
+
description: How to complete the step. Only present when it is not completed.
|
|
29629
|
+
required:
|
|
29630
|
+
- id
|
|
29631
|
+
- completed
|
|
29632
|
+
required:
|
|
29633
|
+
- steps
|
|
28839
29634
|
SiteChangeRequestMemberStatus:
|
|
28840
29635
|
type: string
|
|
28841
29636
|
description: Whether the member is part of the change request, or a tombstone kept so that a member removed and later re-added keeps its identity, comments and history.
|
|
@@ -29725,6 +30520,30 @@ components:
|
|
|
29725
30520
|
- low
|
|
29726
30521
|
- medium
|
|
29727
30522
|
- high
|
|
30523
|
+
SiteFindingAutoResolution:
|
|
30524
|
+
type: string
|
|
30525
|
+
description: |
|
|
30526
|
+
What GitBook did on its own to resolve a finding.
|
|
30527
|
+
- `drafted` drafted a fix that waits for approval.
|
|
30528
|
+
- `applied` has its fix live, applied on its own or approved from a draft, resolving the finding.
|
|
30529
|
+
- `undone` had its fix undone or rejected, so GitBook won't try again.
|
|
30530
|
+
enum:
|
|
30531
|
+
- drafted
|
|
30532
|
+
- applied
|
|
30533
|
+
- undone
|
|
30534
|
+
SiteFindingState:
|
|
30535
|
+
type: string
|
|
30536
|
+
description: |
|
|
30537
|
+
Where a link finding stands, from its status and what GitBook did with it.
|
|
30538
|
+
- `open` needs a fix.
|
|
30539
|
+
- `awaiting-approval` has a fix GitBook drafted, waiting to be approved or rejected: a redirect at a `broken-link` finding's path, or an unmerged change request for an `outbound-link-error` finding (`awaitingChangeRequest`).
|
|
30540
|
+
- `resolved` was fixed or closed: `servingRedirect` says whether a live redirect serves its path.
|
|
30541
|
+
- `ignored` was dismissed.
|
|
30542
|
+
enum:
|
|
30543
|
+
- open
|
|
30544
|
+
- awaiting-approval
|
|
30545
|
+
- resolved
|
|
30546
|
+
- ignored
|
|
29728
30547
|
SiteTriageFilterQuestions:
|
|
29729
30548
|
type: string
|
|
29730
30549
|
description: |
|
|
@@ -29750,6 +30569,77 @@ components:
|
|
|
29750
30569
|
type: string
|
|
29751
30570
|
description: Short finding title
|
|
29752
30571
|
maxLength: 256
|
|
30572
|
+
SiteFindingServingRedirect:
|
|
30573
|
+
type: object
|
|
30574
|
+
title: Serving redirect
|
|
30575
|
+
description: The live redirect serving a `broken-link` finding's path.
|
|
30576
|
+
properties:
|
|
30577
|
+
redirect:
|
|
30578
|
+
type: string
|
|
30579
|
+
description: ID of the redirect.
|
|
30580
|
+
wildcard:
|
|
30581
|
+
type: boolean
|
|
30582
|
+
description: Whether a wildcard redirect covers the path rather than one at the path itself. Reopening the finding would delete it, so `reopen` isn't offered.
|
|
30583
|
+
createdByAgent:
|
|
30584
|
+
type: boolean
|
|
30585
|
+
description: Whether GitBook created the redirect on its own.
|
|
30586
|
+
required:
|
|
30587
|
+
- redirect
|
|
30588
|
+
- wildcard
|
|
30589
|
+
- createdByAgent
|
|
30590
|
+
SiteFindingAwaitingChangeRequest:
|
|
30591
|
+
type: object
|
|
30592
|
+
title: Awaiting change request
|
|
30593
|
+
description: The change request GitBook drafted to fix an `outbound-link-error` finding, waiting to be approved or rejected. Approving it means merging it. Reject it with `applySiteFindingAction`.
|
|
30594
|
+
properties:
|
|
30595
|
+
space:
|
|
30596
|
+
type: string
|
|
30597
|
+
description: ID of the space the change request is in.
|
|
30598
|
+
changeRequest:
|
|
30599
|
+
type: string
|
|
30600
|
+
description: ID of the change request.
|
|
30601
|
+
findings:
|
|
30602
|
+
type: number
|
|
30603
|
+
description: Number of open outbound links on the site the change request fixes.
|
|
30604
|
+
required:
|
|
30605
|
+
- space
|
|
30606
|
+
- changeRequest
|
|
30607
|
+
- findings
|
|
30608
|
+
SiteFindingAction:
|
|
30609
|
+
type: string
|
|
30610
|
+
description: |
|
|
30611
|
+
An action that moves a finding to another state. A finding's `actions` lists the ones it allows.
|
|
30612
|
+
- `approve` makes the redirect GitBook drafted for a broken link live, which resolves the finding. A change request GitBook drafted for an outbound link is approved by merging it.
|
|
30613
|
+
- `reject` deletes the redirect GitBook drafted for a broken link; the finding stays open and GitBook won't draft a fix for it again. For an outbound link, it archives the change request GitBook drafted (`awaitingChangeRequest`) and unlinks every link it fixes. They are open again, marked `undone`, and GitBook won't draft a fix for them again.
|
|
30614
|
+
- `create-redirect` creates a redirect for a broken link's path with `createSiteRedirect`, prefilled with the suggestion; it resolves the finding.
|
|
30615
|
+
- `mark-resolved` resolves it. A broken link resolved this way has no redirect: visitors still get a 404.
|
|
30616
|
+
- `reopen` reopens a resolved finding. For a broken link, it deletes the live redirect at its path; for a fix GitBook applied, this undoes the fix and GitBook won't fix the link again.
|
|
30617
|
+
- `ignore` dismisses it.
|
|
30618
|
+
- `restore` reopens a dismissed finding.
|
|
30619
|
+
enum:
|
|
30620
|
+
- approve
|
|
30621
|
+
- reject
|
|
30622
|
+
- create-redirect
|
|
30623
|
+
- mark-resolved
|
|
30624
|
+
- reopen
|
|
30625
|
+
- ignore
|
|
30626
|
+
- restore
|
|
30627
|
+
SiteFindingAvailableAction:
|
|
30628
|
+
type: object
|
|
30629
|
+
title: Available action
|
|
30630
|
+
description: An action a finding allows now, with the site permission it needs.
|
|
30631
|
+
properties:
|
|
30632
|
+
action:
|
|
30633
|
+
$ref: "#/components/schemas/SiteFindingAction"
|
|
30634
|
+
permission:
|
|
30635
|
+
type: string
|
|
30636
|
+
description: Site permission the action needs.
|
|
30637
|
+
enum:
|
|
30638
|
+
- edit
|
|
30639
|
+
- admin
|
|
30640
|
+
required:
|
|
30641
|
+
- action
|
|
30642
|
+
- permission
|
|
29753
30643
|
SiteRedirectSourcePath:
|
|
29754
30644
|
type: string
|
|
29755
30645
|
description: The source path to redirect from.
|
|
@@ -29787,15 +30677,18 @@ components:
|
|
|
29787
30677
|
- source
|
|
29788
30678
|
SiteFindingOutboundLink:
|
|
29789
30679
|
type: object
|
|
29790
|
-
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."
|
|
30680
|
+
description: "Details of an `outbound-link-error` finding: the failing external URL, or the domain when it doesn't resolve, and the observed failure, sourced from the site's outbound link checks. A resolved finding has either `url` or `host` and no other field. Absent on findings of any other type."
|
|
29791
30681
|
properties:
|
|
29792
30682
|
url:
|
|
29793
30683
|
type: string
|
|
29794
30684
|
format: uri
|
|
29795
|
-
description: The external URL that fails
|
|
30685
|
+
description: The external URL that fails. Absent when `host` is set.
|
|
30686
|
+
host:
|
|
30687
|
+
type: string
|
|
30688
|
+
description: The domain that doesn't resolve, set instead of `url` when the finding covers every link to that domain on the site.
|
|
29796
30689
|
status:
|
|
29797
30690
|
type: string
|
|
29798
|
-
description: Current health status of the URL for this site.
|
|
30691
|
+
description: Current health status of the URL or domain for this site.
|
|
29799
30692
|
enum:
|
|
29800
30693
|
- pending
|
|
29801
30694
|
- healthy
|
|
@@ -29819,10 +30712,7 @@ components:
|
|
|
29819
30712
|
description: HTTP status code of the last observation, when one was received.
|
|
29820
30713
|
checkedAt:
|
|
29821
30714
|
$ref: "#/components/schemas/Timestamp"
|
|
29822
|
-
description: When the URL was last observed
|
|
29823
|
-
required:
|
|
29824
|
-
- url
|
|
29825
|
-
- status
|
|
30715
|
+
description: When the URL or domain was last observed.
|
|
29826
30716
|
SiteFinding:
|
|
29827
30717
|
type: object
|
|
29828
30718
|
properties:
|
|
@@ -29866,6 +30756,22 @@ components:
|
|
|
29866
30756
|
autoFixable:
|
|
29867
30757
|
type: boolean
|
|
29868
30758
|
description: Whether an AI agent should be able to fix this finding directly
|
|
30759
|
+
autoResolution:
|
|
30760
|
+
description: What GitBook did on its own to resolve the finding. Null when it never acted on the finding.
|
|
30761
|
+
oneOf:
|
|
30762
|
+
- $ref: "#/components/schemas/SiteFindingAutoResolution"
|
|
30763
|
+
- type: "null"
|
|
30764
|
+
state:
|
|
30765
|
+
$ref: "#/components/schemas/SiteFindingState"
|
|
30766
|
+
servingRedirect:
|
|
30767
|
+
$ref: "#/components/schemas/SiteFindingServingRedirect"
|
|
30768
|
+
awaitingChangeRequest:
|
|
30769
|
+
$ref: "#/components/schemas/SiteFindingAwaitingChangeRequest"
|
|
30770
|
+
actions:
|
|
30771
|
+
type: array
|
|
30772
|
+
description: Actions the finding allows now, applied with `applySiteFindingAction`.
|
|
30773
|
+
items:
|
|
30774
|
+
$ref: "#/components/schemas/SiteFindingAvailableAction"
|
|
29869
30775
|
brokenLinkAction:
|
|
29870
30776
|
$ref: "#/components/schemas/SiteFindingBrokenLinkAction"
|
|
29871
30777
|
outboundLink:
|
|
@@ -29899,6 +30805,7 @@ components:
|
|
|
29899
30805
|
- severity
|
|
29900
30806
|
- description
|
|
29901
30807
|
- autoFixable
|
|
30808
|
+
- autoResolution
|
|
29902
30809
|
- createdAt
|
|
29903
30810
|
- updatedAt
|
|
29904
30811
|
- urls
|
|
@@ -30006,6 +30913,23 @@ components:
|
|
|
30006
30913
|
description: Count of answers by site channel ID.
|
|
30007
30914
|
additionalProperties:
|
|
30008
30915
|
type: number
|
|
30916
|
+
SiteQuestionStatsVisitorTypes:
|
|
30917
|
+
type: object
|
|
30918
|
+
description: Count of answers by visitor type.
|
|
30919
|
+
properties:
|
|
30920
|
+
human:
|
|
30921
|
+
type: number
|
|
30922
|
+
agent:
|
|
30923
|
+
type: number
|
|
30924
|
+
bot:
|
|
30925
|
+
type: number
|
|
30926
|
+
unknown:
|
|
30927
|
+
type: number
|
|
30928
|
+
required:
|
|
30929
|
+
- human
|
|
30930
|
+
- agent
|
|
30931
|
+
- bot
|
|
30932
|
+
- unknown
|
|
30009
30933
|
SiteQuestionStats:
|
|
30010
30934
|
type: object
|
|
30011
30935
|
description: Aggregated stats for questions and linked answers.
|
|
@@ -30028,6 +30952,8 @@ components:
|
|
|
30028
30952
|
$ref: "#/components/schemas/SiteQuestionStatsChannelTypes"
|
|
30029
30953
|
channels:
|
|
30030
30954
|
$ref: "#/components/schemas/SiteQuestionStatsChannels"
|
|
30955
|
+
visitorTypes:
|
|
30956
|
+
$ref: "#/components/schemas/SiteQuestionStatsVisitorTypes"
|
|
30031
30957
|
weeklyPulse:
|
|
30032
30958
|
type: array
|
|
30033
30959
|
minItems: 13
|
|
@@ -30044,6 +30970,7 @@ components:
|
|
|
30044
30970
|
- types
|
|
30045
30971
|
- channelTypes
|
|
30046
30972
|
- channels
|
|
30973
|
+
- visitorTypes
|
|
30047
30974
|
- weeklyPulse
|
|
30048
30975
|
SiteQuestion:
|
|
30049
30976
|
type: object
|
|
@@ -30708,6 +31635,14 @@ components:
|
|
|
30708
31635
|
oneOf:
|
|
30709
31636
|
- $ref: "#/components/schemas/SiteCoreChannelType"
|
|
30710
31637
|
- $ref: "#/components/schemas/SiteConfigurableChannelType"
|
|
31638
|
+
SiteQuestionVisitorType:
|
|
31639
|
+
type: string
|
|
31640
|
+
description: "Who asked the question: `human` for a person using a web browser, `agent` for an AI agent, `bot` for another automated client that names itself, such as a search engine crawler, and `unknown` when it can't be told, such as for a script calling the API."
|
|
31641
|
+
enum:
|
|
31642
|
+
- human
|
|
31643
|
+
- agent
|
|
31644
|
+
- bot
|
|
31645
|
+
- unknown
|
|
30711
31646
|
SiteQuestionAnswerResolution:
|
|
30712
31647
|
type: string
|
|
30713
31648
|
description: Whether the response answered the question.
|
|
@@ -30884,6 +31819,40 @@ components:
|
|
|
30884
31819
|
- $ref: "#/components/schemas/SiteQuestionAnswerSourceRecord"
|
|
30885
31820
|
discriminator:
|
|
30886
31821
|
propertyName: type
|
|
31822
|
+
SiteQuestionTimelineInterval:
|
|
31823
|
+
type: string
|
|
31824
|
+
description: Size of a timeline bucket. Weeks start on Sunday, and every bucket is in UTC.
|
|
31825
|
+
enum:
|
|
31826
|
+
- hour
|
|
31827
|
+
- day
|
|
31828
|
+
- week
|
|
31829
|
+
- month
|
|
31830
|
+
SiteQuestionTimelineBucket:
|
|
31831
|
+
type: object
|
|
31832
|
+
properties:
|
|
31833
|
+
time:
|
|
31834
|
+
description: Start of the bucket.
|
|
31835
|
+
$ref: "#/components/schemas/Timestamp"
|
|
31836
|
+
answers:
|
|
31837
|
+
type: number
|
|
31838
|
+
description: Count of answers given during the bucket.
|
|
31839
|
+
visitors:
|
|
31840
|
+
type: number
|
|
31841
|
+
description: Count of distinct visitors who received those answers.
|
|
31842
|
+
required:
|
|
31843
|
+
- time
|
|
31844
|
+
- answers
|
|
31845
|
+
- visitors
|
|
31846
|
+
SiteQuestionTimeline:
|
|
31847
|
+
type: object
|
|
31848
|
+
description: Ask AI answers counted per bucket, oldest first.
|
|
31849
|
+
properties:
|
|
31850
|
+
items:
|
|
31851
|
+
type: array
|
|
31852
|
+
items:
|
|
31853
|
+
$ref: "#/components/schemas/SiteQuestionTimelineBucket"
|
|
31854
|
+
required:
|
|
31855
|
+
- items
|
|
30887
31856
|
SiteQuestionAnswerHelpfulness:
|
|
30888
31857
|
type: string
|
|
30889
31858
|
description: Helpfulness of the response for the end user need.
|
|
@@ -30986,6 +31955,8 @@ components:
|
|
|
30986
31955
|
required:
|
|
30987
31956
|
- type
|
|
30988
31957
|
- id
|
|
31958
|
+
visitorType:
|
|
31959
|
+
$ref: "#/components/schemas/SiteQuestionVisitorType"
|
|
30989
31960
|
createdAt:
|
|
30990
31961
|
$ref: "#/components/schemas/Timestamp"
|
|
30991
31962
|
updatedAt:
|
|
@@ -31012,6 +31983,7 @@ components:
|
|
|
31012
31983
|
- helpfulness
|
|
31013
31984
|
- relevance
|
|
31014
31985
|
- channel
|
|
31986
|
+
- visitorType
|
|
31015
31987
|
- createdAt
|
|
31016
31988
|
- urls
|
|
31017
31989
|
AIMessageRole:
|
|
@@ -31586,6 +32558,23 @@ components:
|
|
|
31586
32558
|
- spaceId
|
|
31587
32559
|
- changeRequestId
|
|
31588
32560
|
- reason
|
|
32561
|
+
AIToolCallMergeChangeRequest:
|
|
32562
|
+
type: object
|
|
32563
|
+
properties:
|
|
32564
|
+
tool:
|
|
32565
|
+
type: string
|
|
32566
|
+
enum:
|
|
32567
|
+
- mergeChangeRequest
|
|
32568
|
+
spaceId:
|
|
32569
|
+
type: string
|
|
32570
|
+
description: The ID of the space the change request belongs to.
|
|
32571
|
+
changeRequestId:
|
|
32572
|
+
type: string
|
|
32573
|
+
description: The ID of the change request that was merged.
|
|
32574
|
+
required:
|
|
32575
|
+
- tool
|
|
32576
|
+
- spaceId
|
|
32577
|
+
- changeRequestId
|
|
31589
32578
|
AIToolCallComment:
|
|
31590
32579
|
type: object
|
|
31591
32580
|
properties:
|
|
@@ -31738,6 +32727,59 @@ components:
|
|
|
31738
32727
|
- status
|
|
31739
32728
|
- importedPages
|
|
31740
32729
|
- totalPages
|
|
32730
|
+
AIToolCallImportOpenAPISpec:
|
|
32731
|
+
type: object
|
|
32732
|
+
properties:
|
|
32733
|
+
tool:
|
|
32734
|
+
type: string
|
|
32735
|
+
enum:
|
|
32736
|
+
- importOpenAPISpec
|
|
32737
|
+
spaceId:
|
|
32738
|
+
type: string
|
|
32739
|
+
description: The ID of the space the API reference is added to.
|
|
32740
|
+
changeRequestId:
|
|
32741
|
+
type: string
|
|
32742
|
+
description: The ID of the change request the API reference is added to.
|
|
32743
|
+
specSlug:
|
|
32744
|
+
type: string
|
|
32745
|
+
description: The slug of the OpenAPI spec the reference is generated from.
|
|
32746
|
+
url:
|
|
32747
|
+
type: string
|
|
32748
|
+
description: The URL the spec is imported from, when importing from a URL.
|
|
32749
|
+
file:
|
|
32750
|
+
type: string
|
|
32751
|
+
description: Name of the attached file the spec is imported from, when importing a file.
|
|
32752
|
+
required:
|
|
32753
|
+
- tool
|
|
32754
|
+
- spaceId
|
|
32755
|
+
- changeRequestId
|
|
32756
|
+
- specSlug
|
|
32757
|
+
AIToolCallSiteSetupStep:
|
|
32758
|
+
type: object
|
|
32759
|
+
properties:
|
|
32760
|
+
tool:
|
|
32761
|
+
type: string
|
|
32762
|
+
enum:
|
|
32763
|
+
- siteSetupStep
|
|
32764
|
+
step:
|
|
32765
|
+
$ref: "#/components/schemas/SiteSetupStepId"
|
|
32766
|
+
status:
|
|
32767
|
+
type: string
|
|
32768
|
+
description: |
|
|
32769
|
+
Where the setup step stands in the conversation.
|
|
32770
|
+
* `current`: The step is being worked on.
|
|
32771
|
+
* `done`: The step is completed.
|
|
32772
|
+
* `skipped`: The user skipped the step.
|
|
32773
|
+
* `pending`: The step is not started: it waits again after the user went back to an earlier step.
|
|
32774
|
+
enum:
|
|
32775
|
+
- current
|
|
32776
|
+
- done
|
|
32777
|
+
- skipped
|
|
32778
|
+
- pending
|
|
32779
|
+
required:
|
|
32780
|
+
- tool
|
|
32781
|
+
- step
|
|
32782
|
+
- status
|
|
31741
32783
|
AIToolCallStartBackgroundAgent:
|
|
31742
32784
|
type: object
|
|
31743
32785
|
description: |
|
|
@@ -31844,12 +32886,15 @@ components:
|
|
|
31844
32886
|
- $ref: "#/components/schemas/AIToolCallGetChangeRequestDetails"
|
|
31845
32887
|
- $ref: "#/components/schemas/AIToolCallSetChangeRequestDetails"
|
|
31846
32888
|
- $ref: "#/components/schemas/AIToolCallArchiveChangeRequest"
|
|
32889
|
+
- $ref: "#/components/schemas/AIToolCallMergeChangeRequest"
|
|
31847
32890
|
- $ref: "#/components/schemas/AIToolCallComment"
|
|
31848
32891
|
- $ref: "#/components/schemas/AIToolCallReplyToComment"
|
|
31849
32892
|
- $ref: "#/components/schemas/AIToolCallGetComments"
|
|
31850
32893
|
- $ref: "#/components/schemas/AIToolCallSubmitChangeRequestReview"
|
|
31851
32894
|
- $ref: "#/components/schemas/AIToolCallStartContentImport"
|
|
31852
32895
|
- $ref: "#/components/schemas/AIToolCallCheckContentImport"
|
|
32896
|
+
- $ref: "#/components/schemas/AIToolCallImportOpenAPISpec"
|
|
32897
|
+
- $ref: "#/components/schemas/AIToolCallSiteSetupStep"
|
|
31853
32898
|
- $ref: "#/components/schemas/AIToolCallStartBackgroundAgent"
|
|
31854
32899
|
- $ref: "#/components/schemas/AIToolCallMCP"
|
|
31855
32900
|
- $ref: "#/components/schemas/AIToolCallOther"
|
|
@@ -32117,6 +33162,10 @@ components:
|
|
|
32117
33162
|
format: date-time
|
|
32118
33163
|
description: |
|
|
32119
33164
|
When the message was added to the conversation. Absent on messages recorded before this field existed.
|
|
33165
|
+
clientMessageId:
|
|
33166
|
+
type: string
|
|
33167
|
+
description: |
|
|
33168
|
+
The identifier the client gave the message when it sent it. Absent on messages the agent wrote, and on messages sent without one.
|
|
32120
33169
|
required:
|
|
32121
33170
|
- id
|
|
32122
33171
|
- role
|
|
@@ -32288,8 +33337,7 @@ components:
|
|
|
32288
33337
|
origin:
|
|
32289
33338
|
$ref: "#/components/schemas/UserSitePermissionOrigin"
|
|
32290
33339
|
disabled:
|
|
32291
|
-
|
|
32292
|
-
description: Whether the user is disabled
|
|
33340
|
+
$ref: "#/components/schemas/MemberDisabled"
|
|
32293
33341
|
lastSeenAt:
|
|
32294
33342
|
description: Date at which the user was last seen
|
|
32295
33343
|
$ref: "#/components/schemas/Timestamp"
|
|
@@ -32337,6 +33385,11 @@ components:
|
|
|
32337
33385
|
type: array
|
|
32338
33386
|
items:
|
|
32339
33387
|
$ref: "#/components/schemas/AIAttachment"
|
|
33388
|
+
clientMessageId:
|
|
33389
|
+
type: string
|
|
33390
|
+
maxLength: 64
|
|
33391
|
+
description: |
|
|
33392
|
+
Identifier the client gives the message it sends, echoed on the message the agent adds to the conversation, so the client can tell its own message apart from any other.
|
|
32340
33393
|
required:
|
|
32341
33394
|
- role
|
|
32342
33395
|
- content
|
|
@@ -32803,6 +33856,11 @@ components:
|
|
|
32803
33856
|
- spaces
|
|
32804
33857
|
- createdAt
|
|
32805
33858
|
- createdBy
|
|
33859
|
+
SiteInsightsUserAgent:
|
|
33860
|
+
type: string
|
|
33861
|
+
description: |
|
|
33862
|
+
User agent of the visitor.
|
|
33863
|
+
https://developer.mozilla.org/en-US/docs/Web/API/Navigator/userAgent
|
|
32806
33864
|
SiteInsightsEventSession:
|
|
32807
33865
|
allOf:
|
|
32808
33866
|
- $ref: "#/components/schemas/SiteInsightsSession"
|
|
@@ -32820,10 +33878,7 @@ components:
|
|
|
32820
33878
|
IP address of the visitor.
|
|
32821
33879
|
If not defined, it'll default to the IP executing the request.
|
|
32822
33880
|
userAgent:
|
|
32823
|
-
|
|
32824
|
-
description: |
|
|
32825
|
-
User-agent of the visitor.
|
|
32826
|
-
https://developer.mozilla.org/en-US/docs/Web/API/Navigator/userAgent
|
|
33881
|
+
$ref: "#/components/schemas/SiteInsightsUserAgent"
|
|
32827
33882
|
language:
|
|
32828
33883
|
type:
|
|
32829
33884
|
- string
|
|
@@ -33370,7 +34425,7 @@ components:
|
|
|
33370
34425
|
oneOf:
|
|
33371
34426
|
- $ref: "#/components/schemas/SiteInsightsQueryDateTimeColumn"
|
|
33372
34427
|
- type: object
|
|
33373
|
-
description: Day of the week the event happened
|
|
34428
|
+
description: Day of the week the event happened in `timezone`, from 1 (Monday) to 7 (Sunday). Group by it alongside `hourOfDay` to fold any range into a weekly activity profile.
|
|
33374
34429
|
required:
|
|
33375
34430
|
- column
|
|
33376
34431
|
properties:
|
|
@@ -33378,8 +34433,12 @@ components:
|
|
|
33378
34433
|
type: string
|
|
33379
34434
|
enum:
|
|
33380
34435
|
- dayOfWeek
|
|
34436
|
+
timezone:
|
|
34437
|
+
type: string
|
|
34438
|
+
description: IANA time zone the event is read in, UTC when omitted.
|
|
34439
|
+
example: Europe/Paris
|
|
33381
34440
|
- type: object
|
|
33382
|
-
description: Hour of the day the event happened
|
|
34441
|
+
description: Hour of the day the event happened in `timezone`, from 0 to 23.
|
|
33383
34442
|
required:
|
|
33384
34443
|
- column
|
|
33385
34444
|
properties:
|
|
@@ -33387,6 +34446,10 @@ components:
|
|
|
33387
34446
|
type: string
|
|
33388
34447
|
enum:
|
|
33389
34448
|
- hourOfDay
|
|
34449
|
+
timezone:
|
|
34450
|
+
type: string
|
|
34451
|
+
description: IANA time zone the event is read in, UTC when omitted.
|
|
34452
|
+
example: Europe/Paris
|
|
33390
34453
|
- type: object
|
|
33391
34454
|
required:
|
|
33392
34455
|
- column
|
|
@@ -35279,6 +36342,104 @@ components:
|
|
|
35279
36342
|
- object
|
|
35280
36343
|
- url
|
|
35281
36344
|
- expiresAt
|
|
36345
|
+
APIProfilingSession:
|
|
36346
|
+
type: object
|
|
36347
|
+
required:
|
|
36348
|
+
- object
|
|
36349
|
+
- id
|
|
36350
|
+
- status
|
|
36351
|
+
- releaseVersion
|
|
36352
|
+
- releaseBuild
|
|
36353
|
+
- createdAt
|
|
36354
|
+
- expiresAt
|
|
36355
|
+
- startedBy
|
|
36356
|
+
- urls
|
|
36357
|
+
properties:
|
|
36358
|
+
object:
|
|
36359
|
+
type: string
|
|
36360
|
+
enum:
|
|
36361
|
+
- api_cpu_profiling_session
|
|
36362
|
+
id:
|
|
36363
|
+
type: string
|
|
36364
|
+
format: uuid
|
|
36365
|
+
status:
|
|
36366
|
+
type: string
|
|
36367
|
+
enum:
|
|
36368
|
+
- active
|
|
36369
|
+
- stopped
|
|
36370
|
+
- expired
|
|
36371
|
+
mode:
|
|
36372
|
+
type: string
|
|
36373
|
+
enum:
|
|
36374
|
+
- cpu
|
|
36375
|
+
- allocations
|
|
36376
|
+
description: The profiler selected for this session. Earlier sessions without this field use CPU profiling.
|
|
36377
|
+
releaseVersion:
|
|
36378
|
+
type: string
|
|
36379
|
+
releaseBuild:
|
|
36380
|
+
type: string
|
|
36381
|
+
createdAt:
|
|
36382
|
+
type: string
|
|
36383
|
+
format: date-time
|
|
36384
|
+
expiresAt:
|
|
36385
|
+
type: string
|
|
36386
|
+
format: date-time
|
|
36387
|
+
stoppedAt:
|
|
36388
|
+
type: string
|
|
36389
|
+
format: date-time
|
|
36390
|
+
startedBy:
|
|
36391
|
+
type: string
|
|
36392
|
+
urls:
|
|
36393
|
+
type: object
|
|
36394
|
+
required:
|
|
36395
|
+
- location
|
|
36396
|
+
properties:
|
|
36397
|
+
location:
|
|
36398
|
+
type: string
|
|
36399
|
+
APICPUProfile:
|
|
36400
|
+
type: object
|
|
36401
|
+
required:
|
|
36402
|
+
- object
|
|
36403
|
+
- id
|
|
36404
|
+
- instanceId
|
|
36405
|
+
- startedAt
|
|
36406
|
+
- endedAt
|
|
36407
|
+
- bytes
|
|
36408
|
+
- urls
|
|
36409
|
+
properties:
|
|
36410
|
+
object:
|
|
36411
|
+
type: string
|
|
36412
|
+
enum:
|
|
36413
|
+
- api_cpu_profile
|
|
36414
|
+
- api_allocation_profile
|
|
36415
|
+
mode:
|
|
36416
|
+
type: string
|
|
36417
|
+
enum:
|
|
36418
|
+
- cpu
|
|
36419
|
+
- allocations
|
|
36420
|
+
id:
|
|
36421
|
+
type: string
|
|
36422
|
+
format: uuid
|
|
36423
|
+
instanceId:
|
|
36424
|
+
type: string
|
|
36425
|
+
startedAt:
|
|
36426
|
+
type: string
|
|
36427
|
+
format: date-time
|
|
36428
|
+
endedAt:
|
|
36429
|
+
type: string
|
|
36430
|
+
format: date-time
|
|
36431
|
+
bytes:
|
|
36432
|
+
type: integer
|
|
36433
|
+
urls:
|
|
36434
|
+
type: object
|
|
36435
|
+
required:
|
|
36436
|
+
- location
|
|
36437
|
+
properties:
|
|
36438
|
+
location:
|
|
36439
|
+
type: string
|
|
36440
|
+
devtools:
|
|
36441
|
+
type: string
|
|
36442
|
+
description: Download the raw .cpuprofile or .heapprofile for Chrome DevTools.
|
|
35282
36443
|
PurgeCDNCacheContext:
|
|
35283
36444
|
type: object
|
|
35284
36445
|
description: The context to send when purging the CDN Cache
|
|
@@ -36499,6 +37660,8 @@ components:
|
|
|
36499
37660
|
$ref: "#/components/schemas/LocalizedString128"
|
|
36500
37661
|
icon:
|
|
36501
37662
|
$ref: "#/components/schemas/Icon"
|
|
37663
|
+
condition:
|
|
37664
|
+
$ref: "#/components/schemas/Expression"
|
|
36502
37665
|
draft:
|
|
36503
37666
|
type: boolean
|
|
36504
37667
|
description: Whether the section group is draft and not live.
|
|
@@ -36960,8 +38123,12 @@ components:
|
|
|
36960
38123
|
feature:
|
|
36961
38124
|
$ref: "#/components/schemas/OrganizationFeature"
|
|
36962
38125
|
requiredPlan:
|
|
36963
|
-
description: The minimum organization plan that includes the feature.
|
|
38126
|
+
description: The internal identifier of the minimum organization plan that includes the feature. The human-readable name is provided in requiredPlanName.
|
|
36964
38127
|
$ref: "#/components/schemas/BillingProduct"
|
|
38128
|
+
requiredPlanName:
|
|
38129
|
+
type: string
|
|
38130
|
+
description: The human-readable name of the required organization plan.
|
|
38131
|
+
example: Pro
|
|
36965
38132
|
url:
|
|
36966
38133
|
type: string
|
|
36967
38134
|
format: uri
|
|
@@ -36971,6 +38138,7 @@ components:
|
|
|
36971
38138
|
- type
|
|
36972
38139
|
- feature
|
|
36973
38140
|
- requiredPlan
|
|
38141
|
+
- requiredPlanName
|
|
36974
38142
|
- url
|
|
36975
38143
|
- type: object
|
|
36976
38144
|
title: Site plan upgrade
|
|
@@ -36982,8 +38150,12 @@ components:
|
|
|
36982
38150
|
feature:
|
|
36983
38151
|
$ref: "#/components/schemas/SiteFeatureKey"
|
|
36984
38152
|
requiredPlan:
|
|
36985
|
-
description: The minimum site plan that includes the feature.
|
|
38153
|
+
description: The internal identifier of the minimum site plan that includes the feature. The human-readable name is provided in requiredPlanName.
|
|
36986
38154
|
$ref: "#/components/schemas/SiteType"
|
|
38155
|
+
requiredPlanName:
|
|
38156
|
+
type: string
|
|
38157
|
+
description: The human-readable name of the required site plan.
|
|
38158
|
+
example: Ultimate
|
|
36987
38159
|
url:
|
|
36988
38160
|
type: string
|
|
36989
38161
|
format: uri
|
|
@@ -36993,6 +38165,7 @@ components:
|
|
|
36993
38165
|
- type
|
|
36994
38166
|
- feature
|
|
36995
38167
|
- requiredPlan
|
|
38168
|
+
- requiredPlanName
|
|
36996
38169
|
- url
|
|
36997
38170
|
discriminator:
|
|
36998
38171
|
propertyName: type
|
|
@@ -37006,6 +38179,18 @@ components:
|
|
|
37006
38179
|
- canceled
|
|
37007
38180
|
- unpaid
|
|
37008
38181
|
- paused
|
|
38182
|
+
BillingDiscount:
|
|
38183
|
+
type: object
|
|
38184
|
+
properties:
|
|
38185
|
+
duration:
|
|
38186
|
+
description: How many months the discount will last
|
|
38187
|
+
type: number
|
|
38188
|
+
percentOff:
|
|
38189
|
+
description: Percent that will be deducted from the subtotal of the invoice
|
|
38190
|
+
type: number
|
|
38191
|
+
required:
|
|
38192
|
+
- duration
|
|
38193
|
+
- percentOff
|
|
37009
38194
|
APIIntegrationScope:
|
|
37010
38195
|
type: string
|
|
37011
38196
|
enum:
|
|
@@ -37529,6 +38714,19 @@ components:
|
|
|
37529
38714
|
required:
|
|
37530
38715
|
- channel
|
|
37531
38716
|
- organization
|
|
38717
|
+
APIChannelOrganizationSCIMConnections:
|
|
38718
|
+
type: object
|
|
38719
|
+
description: Subscription channel for changes in the SCIM connections of an organization.
|
|
38720
|
+
properties:
|
|
38721
|
+
channel:
|
|
38722
|
+
type: string
|
|
38723
|
+
enum:
|
|
38724
|
+
- organization-scim-connections
|
|
38725
|
+
organization:
|
|
38726
|
+
type: string
|
|
38727
|
+
required:
|
|
38728
|
+
- channel
|
|
38729
|
+
- organization
|
|
37532
38730
|
APIChannelOrganizationCustomFonts:
|
|
37533
38731
|
type: object
|
|
37534
38732
|
description: Subscription channel for changes in custom fonts in an organization.
|
|
@@ -38097,6 +39295,7 @@ components:
|
|
|
38097
39295
|
- $ref: "#/components/schemas/APIChannelOrganizationOpenAPISpecs"
|
|
38098
39296
|
- $ref: "#/components/schemas/APIChannelOrganizationTranslations"
|
|
38099
39297
|
- $ref: "#/components/schemas/APIChannelOrganizationTranslationsGlossary"
|
|
39298
|
+
- $ref: "#/components/schemas/APIChannelOrganizationSCIMConnections"
|
|
38100
39299
|
- $ref: "#/components/schemas/APIChannelOrganizationCustomFonts"
|
|
38101
39300
|
- $ref: "#/components/schemas/APIChannelOrganizationAgentInstructions"
|
|
38102
39301
|
- $ref: "#/components/schemas/APIChannelOrganizationChangeRequests"
|
|
@@ -38848,20 +40047,23 @@ components:
|
|
|
38848
40047
|
application/json:
|
|
38849
40048
|
schema:
|
|
38850
40049
|
description: |
|
|
38851
|
-
|
|
38852
|
-
|
|
40050
|
+
`error.upgrade` identifies the unavailable feature, the minimum required
|
|
40051
|
+
plan, and the URL of the relevant plan settings.
|
|
38853
40052
|
|
|
38854
|
-
|
|
38855
|
-
|
|
38856
|
-
|
|
40053
|
+
`error.upgrade.requiredPlanName` is the human-readable plan name, such as
|
|
40054
|
+
"Pro", "Essential", or "Ultimate", suitable for display to users.
|
|
40055
|
+
`error.upgrade.requiredPlan` is the internal plan identifier for
|
|
40056
|
+
programmatic use, such as "pro_2024" or "premium".
|
|
38857
40057
|
|
|
38858
|
-
|
|
38859
|
-
explicit approval of the price and billing changes at `error.upgrade.url`.
|
|
40058
|
+
The required plan describes feature availability, not a price quote.
|
|
38860
40059
|
|
|
38861
|
-
|
|
38862
|
-
|
|
40060
|
+
`getOrganizationSubscription` (`GET /orgs/{organizationId}/subscription`)
|
|
40061
|
+
provides the current plan and `canManageBilling`, which indicates whether
|
|
40062
|
+
the caller can manage billing. Otherwise, an organization administrator
|
|
40063
|
+
must perform the upgrade. Upgrades require billing permissions and approval
|
|
40064
|
+
of any price or billing changes.
|
|
38863
40065
|
|
|
38864
|
-
|
|
40066
|
+
The original operation can be retried after the upgrade is complete.
|
|
38865
40067
|
type: object
|
|
38866
40068
|
required:
|
|
38867
40069
|
- error
|