Content
Content in GitBook is the entity for content on a page.
Last updated
Was this helpful?
Content in GitBook is the entity for content on a page.
Last updated
Was this helpful?
/spaces/{spaceId}/content
The unique id of the space
If false
is passed, "git" mutable metadata will not returned. Passing false
can optimize performances of the lookup.
If false
is passed, content will not be computed
/spaces/{spaceId}/content/files
The unique id of the space
Identifier of the page results to fetch.
The number of results per page
If false
is passed, "git" mutable metadata will not returned. Passing false
can optimize performances of the lookup.
If false
is passed, content will not be computed
/spaces/{spaceId}/content/page/{pageId}
The unique id of the space
The unique id of the page
Output format for the content.
document
, markdown
If false
is passed, "git" mutable metadata will not returned. Passing false
can optimize performances of the lookup.
If false
is passed, content will not be computed
/spaces/{spaceId}/content/path/{pagePath}
The unique id of the space
The path of the page in the revision.
Output format for the content.
document
, markdown
If false
is passed, "git" mutable metadata will not returned. Passing false
can optimize performances of the lookup.
If false
is passed, content will not be computed
/spaces/{spaceId}/content/import
The unique id of the space
website
, docx
, markdown
, html
, zip
, confluence
, github-wiki
, dropbox-paper
, notion
, quip
, google-docs
, open-api
URL of the content to import.
/spaces/{spaceId}/content/page/{pageId}/import
The unique id of the space
The unique id of the page
website
, docx
, markdown
, html
, zip
, confluence
, github-wiki
, dropbox-paper
, notion
, quip
, google-docs
, open-api
URL of the content to import.
/spaces/{spaceId}/git/import
The unique id of the space
URL of the Git repository to import. It can contain basic auth credentials.
Git ref to import in the format "refs/heads/main"
Unique identifier to use to cache the Git repository across multiple operations.
URL to use as a prefix for external file references.
URL to use as a prefix for the commit URL.
Path to a root directory for the project in the repository.
The timestamp of the event that triggered this import. It ensures that Git sync import and export operations are executed in the same order on GitBook and on the remote repository.
If true, the import will generate a revision without updating the space primary content.
Optional metadata to store on the space about the Git provider
No body