How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

GitBook Change Request Content API

Manage content within a change request.

GitBook Change Request Content API is one of 65 APIs that GitBook publishes on the APIs.io network, described by a machine-readable OpenAPI specification and an AsyncAPI event-driven specification.

This API exposes 7 JSON Schema definitions.

Tagged areas include Change Request Content. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, an AsyncAPI specification, a JSON-LD context, and 7 JSON Schemas.

This API exposes 10 operations across 9 paths, and defines 224 schemas. It is described by OpenAPI 3.2.0, at version 0.0.1-beta.

Requests are made against a single base URL, {host}/v1.

10 operations 9 paths 224 schemas 9 GET1 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.2.0
API Version
0.0.1-beta
Server
{host}/v1
Authentication
HTTP Bearer, HTTP Bearer, HTTP Bearer, HTTP Bearer, HTTP Bearer, OAuth 2.0
Terms of Service
Resource Areas
1

Authentication & Security 6

GitBook Change Request Content API declares 6 security schemes for authenticating requests. It accepts HTTP bearer tokens (user). It accepts HTTP bearer tokens (user-internal). It accepts HTTP bearer tokens (user-staff). It accepts HTTP bearer tokens (integration). It accepts HTTP bearer tokens (integration-installation). It supports OAuth 2.0 (oauth) using the authorizationCode flow, exposing 29 scopes. By default, every request must be authenticated.

Paths & Operations 10

Across 9 paths, the API surfaces 10 operations — 9 GET, 1 POST. Each is listed below with its method, path, parameters, and response codes.

change-request-content 10

Retrieve or update the pages and files tied to an open change request. This lets you preview alterations and merge them when ready.

GET
/spaces/{spaceId}/change-requests/{changeRequestId}/content
Get the latest content revision of a change request
getRevisionOfChangeRequestById 4 params → 200
POST
/spaces/{spaceId}/change-requests/{changeRequestId}/content
Apply a batch of content changes to a change request
updateChangeRequestContent 3 params body → 200404409
GET
/spaces/{spaceId}/change-requests/{changeRequestId}/content/pages
List all pages in a change request as a flat list
listPagesInChangeRequest 4 params → 200
GET
/spaces/{spaceId}/change-requests/{changeRequestId}/content/files
List all files (images/attachments) in a change request
listFilesInChangeRequestById 6 params → 200
GET
/spaces/{spaceId}/change-requests/{changeRequestId}/content/files/{fileId}
Get a specific file in a change request by its ID
getFileInChangeRequestById 5 params → 200
GET
/spaces/{spaceId}/change-requests/{changeRequestId}/content/page/{pageId}
Get a page in a change request by its ID
getPageInChangeRequestById 9 params → 200
GET
/spaces/{spaceId}/change-requests/{changeRequestId}/content/page/{pageId}/meta-links
Get navigation meta-links (prev/next/parent) for a change request page
listChangeRequestPageMetaLinks 3 params → 200
GET
/spaces/{spaceId}/change-requests/{changeRequestId}/content/reusable-contents/{reusableContentId}
Get a reusable content block in a change request by its ID
getReusableContentInChangeRequestById 5 params → 200
GET
/spaces/{spaceId}/change-requests/{changeRequestId}/changes
List semantic content changes in a change request vs its base
getChangeRequestChanges 3 params → 200404
GET
/spaces/{spaceId}/change-requests/{changeRequestId}/content/path/{pagePath}
Get a page in a change request by its URL path
getPageInChangeRequestByPath 10 params → 200

Schemas 224

The contract defines 224 schemas that model the data the API accepts and returns. The most detailed are ChangeRequest (26 properties), ContentImportRun (14 properties), RevisionPageLayoutOptions (13 properties), RevisionPageUpdate (11 properties). Each schema is shown below with its type and property counts.

RevisionPageLayoutOptionsCoverMask
string
Mask applied to the cover image.
ChangeRequestChangeCounts
object
Exact semantic entity and page-document block counts for a change request at its current head and base revisions.
4 properties 2 required
RevisionSemanticChanges
object
3 properties 1 required
RevisionSemanticChangeVariablesEdited
object
2 properties 2 required
DocumentBlockDivider
object
5 properties 4 required
RevisionSemanticChangeReusableContentCreated
object
2 properties 2 required
RevisionPageLayoutPreset
string
The core layout presets for a page.
RevisionPageDocumentChangeAttributes
object
8 properties
ComputedContentSourceRevision
DocumentBlockIf
object
6 properties 4 required
ChangeRequestContentUpdate
object
The result of applying a batch of content changes.
3 properties 2 required
RevisionPageUpdate
object
Page metadata that can be set when inserting or updating a page through a change request. When a markdown document is provided on the same operation, the value…
11 properties
MarkdownDocument
object
1 property 1 required
ContentRefPage
object
3 properties 2 required
DocumentBlockDrawing
object
6 properties 4 required
CardsImageObjectFit
string
Object fit for image display in card views
DocumentBlocksEssentials
ChangeRequestContentChangeInsertPage
Insert a new page into the change request. The title is taken from title, or, when the document is markdown, from the document's frontmatter or leading heading…
DocumentTableDefinitionCheckbox
DocumentFragment
object
5 properties 2 required
DocumentInlineExpression
object
5 properties 4 required
DocumentTableDefinitionUsers
DocumentBlockStepper
object
6 properties 3 required
ContentRef
A relative reference to content in GitBook.
RevisionReusableContentChangeAttributes
object
2 properties
DocumentText
object
3 properties 2 required
ChangeRequestContentChangeUpdatePage
Update an existing page. Its document and/or its metadata (title, icon, description, visibility, adaptive-content condition) can be changed, and it can be move…
DocumentMarkBold
object
2 properties 2 required
ComputedContentDependencySpace
object
2 properties 2 required
ContentRefURL
object
2 properties 2 required
DocumentBlockHint
object
6 properties 4 required
DocumentInlineIcon
object
5 properties 4 required
DocumentTableDefinitionSelect
ChangeRequestContentChangeInsertFiles
object
Upload files (images or attachments) into the change request. A document references one as ![Alt](/files/ ) or [Label](/files/ ) — use a ref to reference it fr…
2 properties 2 required
RevisionPage
ChangeRequestContentChangeRevertPage
object
Revert a page to the state it had in a given revision. If revision is omitted, the page is reverted to the change request's base revision. Without block, the w…
4 properties 2 required
DocumentBlockFile
object
6 properties 4 required
ChangeRequestContentChangeInsertComputedPage
object
Insert a page whose content GitBook generates from a source instead of a document: an OpenAPI spec of the organization, rendered as an API reference. GitBook r…
5 properties 2 required
DocumentBlockIntegration
object
6 properties 4 required
RevisionTag
URL
string
RevisionSemanticChangeReusableContentEdited
object
3 properties 3 required
DocumentBlock
RevisionSemanticChangeFileCreated
object
2 properties 2 required
DocumentInlineAnnotation
object
7 properties 5 required
ComputedContentSourceRevisionOpenAPI
ChangeRequestContentUpdateInsertedPage
object
A page created by the operation with its resolved ID, ref as passed by the caller, and a URL to fetch its content.
3 properties 2 required
DocumentBlocksTopLevels
GitSyncCommit
object
5 properties 3 required
DocumentBlockEmbed
object
6 properties 4 required
DocumentBlockReusableContent
object
6 properties 4 required
RevisionSemanticChangeTagCreated
object
2 properties 2 required
DocumentTableDefinitionFiles
ChangeRequestContentUpdateChange
An outcome of a content change.
DocumentMarkSubscript
object
2 properties 2 required
ContentRefTag
object
3 properties 2 required
RevisionPageComputed
OpenAPIWebhookPointer
object
Pointer to a webhook in the OpenAPI spec.
2 properties 2 required
DocumentBlockOpenAPI
object
6 properties 4 required
ContentRefCollection
object
2 properties 2 required
RevisionSemanticChangeTagEdited
object
3 properties 3 required
RevisionPageBase
object
8 properties 2 required
RevisionPageLayoutOptionsCoverSize
string
Size of the cover image.
ComputedContentDependency
object
Dependency for a computation, before its resolution.
1 property 1 required
RevisionPageLinkChangeAttributes
object
3 properties
DocumentTableDefinitionContentRef
ComputedContentDependencyTranslation
object
2 properties 2 required
DocumentBlockQuote
object
6 properties 3 required
RevisionSemanticChangePageMoved
object
3 properties 3 required
RevisionPageMetaLinkTarget
ChangeRequestChangeCountsByType
object
Counts of entities grouped by how they changed relative to the change request base.
3 properties 3 required
TranslationResult
object
Result of a translation.
3 properties 3 required
ChangedRevisionFile
object
4 properties 4 required
ChangeRequestLinks
array
External links associated with the change request.
RevisionFileImageDimensions
object
2 properties 2 required
DocumentBlockTable
object
6 properties 5 required
RevisionSemanticChange
RevisionPageTag
object
A reference to a tag with optional primary flag for page-level tags.
2 properties 1 required
GitSyncBlob
object
2 properties 2 required
DocumentAction
object
Action to perform when an inline button is clicked.
DocumentBlockTabs
object
6 properties 3 required
DocumentBlockParagraph
object
6 properties 3 required
DocumentInlineEmoji
object
5 properties 4 required
ContentImportSource
DocumentMarkKeyboard
object
2 properties 2 required
RevisionPageType
string
RevisionPageDocumentCoverTextColor
string
DocumentTableSelectOption
object
3 properties 3 required
DocumentTableCellSpan
integer
Number of rows or columns covered by a table cell merge
RevisionPageMetaLinks
object
2 properties
RevisionPageLayoutOptions
object
13 properties 13 required
DocumentTableCellMerge
object
Positional table cell merge range. The anchor and spans are resolved against the current sorted record order and visible column order. The current document mod…
3 properties 3 required
ContentImportTarget
object
3 properties 1 required
ChangeRequestLinkInput
object
External link associated with a change request.
3 properties 1 required
DocumentBlockListUnordered
object
6 properties 3 required
ComputedContentSourceDocumentOpenAPI
DocumentBlockHeading
object
7 properties 4 required
ComputedContentSourceDocument
OpenAPIOperationPointer
object
Pointer to an operation in the OpenAPI spec.
2 properties 2 required
RevisionTagChangeAttributes
object
1 property
RevisionFileChangeAttributes
object
5 properties
DocumentInlineMath
object
5 properties 4 required
OpenAPISpecVisibility
string
The visibility setting of the OpenAPI spec. private: The spec is not publicly available. public: The spec is available to anyone with a public link.
DocumentBlockOpenAPISchemas
object
6 properties 4 required
PlainObject
DocumentTableDefinitionRating
ChangeRequestContentChangeDeletePage
object
Delete an existing page (and its subpages) from the change request.
2 properties 2 required
DocumentTextLeaf
object
3 properties 3 required
DocumentMarkStrikethrough
object
2 properties 2 required
Revision
ChangeAttributeVariables
object
2 properties
ChangeRequestLinkExpanded
External ticket data resolved for this link by a configured connector.
DocumentBlockPrompt
object
6 properties 4 required
DocumentBlockExpandable
object
7 properties 5 required
Icon
string
Name of the icon
DocumentTableDefinition
ContentRefUser
object
2 properties 2 required
ChangeRequestContentUpdatePageRef
object
3 properties 3 required
DocumentBlockOpenAPIWebhook
object
6 properties 4 required
ChangeAttributeNumber
object
2 properties
DocumentInlineMention
object
5 properties 4 required
RevisionSemanticChangeFileEdited
object
3 properties 3 required
RevisionPageDocumentCover
object
6 properties 1 required
ChangedRevisionTag
object
2 properties 2 required
DocumentMarkSuperscript
object
2 properties 2 required
RevisionPageLink
DocumentBlockUpdates
object
6 properties 4 required
ContentKitDefaultAction
DocumentBlockCode
object
6 properties 4 required
DocumentInlineImage
object
5 properties 4 required
DocumentTableDefinitionNumber
ContentRefAnchor
object
4 properties 2 required
Timestamp
string
ComputedContentSourceDocumentTranslation
object
Parameters for a document translation computed content source
3 properties 3 required
DocumentTableDefinitionText
DocumentBlockCodeLine
object
6 properties 4 required
Variables
object
ChangeRequestStatus
string
RevisionTypeUpdate
ContentKitAction
RevisionPageDocument
JSONDocument
object
4 properties 3 required
DocumentBlockUpdate
object
6 properties 4 required
DocumentBlockImages
object
6 properties 5 required
TextAlignment
string
ContentRefFile
object
3 properties 2 required
ChangeRequestContentChange
DocumentBlockListTasks
object
6 properties 3 required
OpenAPISchemasPointer
object
Pointer to schemas in the OpenAPI spec.
3 properties 1 required
List
object
2 properties
DocumentBlockColumns
object
6 properties 5 required
RevisionPageSlug
string
Page's slug in its direct parent
DocumentMarkCode
object
2 properties 2 required
TranslationLanguage
string
DocumentTableImageRecord
A table record value for image columns, supporting both direct ContentRefs and the additional format with record-level settings.
VerticalAlignment
string
ChangeAttributeRevisionPageDocumentCover
object
2 properties
RevisionPageGroup
DocumentBlockStepperStep
object
6 properties 4 required
DocumentBlockImage
object
6 properties 5 required
ChangeAttributeRevisionPageLayout
object
2 properties
VariableValue
RevisionSemanticChangePageDeleted
object
2 properties 2 required
RevisionTypeComputed
DocumentTableViewCards
object
8 properties 3 required
ChangeRequestSubject
string
Subject of the change request
ChangedRevisionReusableContent
object
3 properties 2 required
RevisionPageGroupChangeAttributes
object
3 properties
ContentRefOpenAPI
object
2 properties 2 required
RevisionSemanticChangeReusableContentDeleted
object
2 properties 2 required
ChangeRequestContentUpdateUpdatedPage
object
A page updated by the operation, with a URL to fetch its content.
2 properties 2 required
ComputedContentSourceIntegration
object
Parameters for a computed content managed by an integration
3 properties 2 required
ChangedRevisionPage
object
4 properties 3 required
ContentRefSpace
object
2 properties 2 required
ContentRefReusableContent
object
3 properties 2 required
ComputedContentDependencyResolved
Dependency for a computation, with its resolved value.
DocumentTableDefinitionBase
object
2 properties 2 required
RevisionBase
object
11 properties 9 required
ChangeRequestLinkTitle
string
Optional title to display for the link.
RevisionTypeMerge
DocumentBlockTabsItem
object
7 properties 4 required
DocumentBlockColumn
object
6 properties 4 required
ContentImportRun
object
14 properties 2 required
ChangeAttributeContentReference
object
2 properties
DocumentTextMark
ChangeRequestContentUpdateDeletedPage
object
A page deleted by the batch. Only its ID is returned, as it no longer has content.
2 properties 2 required
RevisionSemanticChangePageCreated
object
2 properties 2 required
ComputedContentDependencyOpenAPI
object
2 properties 2 required
DocumentTableViewGrid
object
7 properties 3 required
RevisionSemanticChangeFileDeleted
object
2 properties 2 required
Document
DocumentMarkColor
object
3 properties 3 required
ChangeAttributeRevisionFileImageDimensions
object
2 properties
RevisionFile
object
7 properties 5 required
DocumentTableRecord
object
2 properties 2 required
DocumentBlockOpenAPIOperation
object
6 properties 4 required
EntityId
string
A unique entity identifier
ComputedContentSourceRevisionTranslation
object
Parameters for a translation computed content source
3 properties 3 required
ComputedContentSourceOpenAPIBase
object
Generic parameters from an OpenAPI computed content source
2 properties 2 required
RevisionReusableContent
Emoji
string
Unicode codepoint or character of the emoji
RevisionTypeEdits
DocumentInline
DocumentBlockMath
object
5 properties 4 required
RevisionSemanticChangeTagDeleted
object
2 properties 2 required
ChangeRequest
object
26 properties 14 required
RevisionTypeRollback
ChangeAttributeVariable
object
2 properties
DocumentMarkItalic
object
2 properties 2 required
RevisionSemanticChangePageEdited
object
3 properties 3 required
DocumentBlockContentRef
object
5 properties 4 required
DocumentBlockListItem
object
6 properties 3 required
DocumentTableDefinitionImage
Length
User
object
6 properties 4 required
DocumentTextColor
string
Allowed color tokens for color marks (text and background; background reuses this enum). Named colors are fixed palette keys. $ tokens are semantic: resolved f…
ChangeRequestLink
ChangeAttributeString
object
2 properties
DocumentBlockListOrdered
object
6 properties 4 required
RevisionPageLayout
RevisionPageLayoutOptionsWidth
string
Width of the page.
DocumentInlineLink
object
6 properties 4 required
TranslationRef
object
2 properties 2 required
DocumentInlineButton
object
5 properties 4 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

gitbook-change-request-content-api-openapi.yml Raw ↑

Other APIs GitBook publishes across the network.

GitBook Change Request Reviewers API
GitBook Change Requests API
GitBook Collections API
GitBook Custom Hostnames API
GitBook Imports API
GitBook Integrations API
GitBook Organization Members API
GitBook Organizations API
GitBook Site Spaces API
GitBook Space Content API
GitBook Spaces API
GitBook URLs API
Where this information came from

This is an independent, third-party profile of GitBook Change Request Content API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.

The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.

Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.

info@apievangelist.com · Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.