Ask or search…
K
Comment on page

Revisions

Revisions in GitBook are the entity for updates made to content.

GET a specific revision in a space by it's ID

get
https://api.gitbook.com/v1
/spaces/{spaceId}/revisions/{revisionId}
Get a specific revision in a space
Parameters
Path
spaceId*
string
The unique id of the space
revisionId*
string
The unique id of the revision
Responses
200: OK
OK
default
Unexpected Error

GET a specific page in a revision by it's ID

get
https://api.gitbook.com/v1
/spaces/{spaceId}/revisions/{revisionId}/page/{pageId}
Get a page by its ID in a revision.
Parameters
Path
spaceId*
string
The unique id of the space
revisionId*
string
The unique id of the revision
pageId*
string
The unique id of the page
Query
format
string
Output format for the content.
Responses
200: OK
OK
default
Unexpected Error

GET a specific revision in a space by it's path

get
https://api.gitbook.com/v1
/spaces/{spaceId}/revisions/{revisionId}/path/{pagePath}
Get a page by its path in a revision.
Parameters
Path
spaceId*
string
The unique id of the space
revisionId*
string
The unique id of the revision
pagePath*
string
The path of the page in the revision.
Query
format
string
Output format for the content.
Responses
200: OK
OK
default
Unexpected Error

GET files in a specific revision by it's ID

get
https://api.gitbook.com/v1
/spaces/{spaceId}/revisions/{revisionId}/files
List all files in a revision
Parameters
Path
spaceId*
string
The unique id of the space
revisionId*
string
The unique id of the revision
Query
page
string
Identifier of the page results to fetch.
limit
number
The number of results per page
Responses
200: OK
OK
default
Unexpected Error
Last modified 7mo ago