Links

Change Requests

The GitBook API is currently in beta. This means you should not rely on it's availability, and that it may change without prior warning.

Create, merge & update a Change Request

post
https://api.gitbook.com/v1
/spaces/{spaceId}/change-requests
Create a new change request for a space.
post
https://api.gitbook.com/v1
/spaces/{spaceId}/change-requests/{changeRequestId}/merge
Merge a change request in the primary content of a space.
post
https://api.gitbook.com/v1
/spaces/{spaceId}/change-requests/{changeRequestId}/update
Update a change-request with changes from primary content.

Change Request's content

get
https://api.gitbook.com/v1
/spaces/{spaceId}/change-requests/{changeRequestId}/content
Get the latest content revision for a change request.
get
https://api.gitbook.com/v1
/spaces/{spaceId}/change-requests/{changeRequestId}/content/files
List all files in the latest content of the change-request
post
https://api.gitbook.com/v1
/spaces/{spaceId}/change-requests/{changeRequestId}/content/import
Import content in a change request.
get
https://api.gitbook.com/v1
/spaces/{spaceId}/change-requests/{changeRequestId}/content/path/{pagePath}
Get a page by its path in a change request.
get
https://api.gitbook.com/v1
/spaces/{spaceId}/change-requests/{changeRequestId}/content/page/{pageId}
Get a page by its ID in a change request.
post
https://api.gitbook.com/v1
/spaces/{spaceId}/change-requests/{changeRequestId}/content/page/{pageId}/import
Import external content into a page of a change-request by its ID.
Last modified 4mo ago