Get the document body of a reusable content block in a historical revision
get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
spaceIdstringRequiredPattern:
A unique entity identifier
^[a-zA-Z0-9_-]+$revisionIdstringRequiredPattern:
A unique entity identifier
^[a-zA-Z0-9_-]+$reusableContentIdstringRequiredPattern:
A unique entity identifier
^[a-zA-Z0-9_-]+$Query parameters
evaluatedone ofOptionalDefault:
Controls whether the document should be evaluated.
- When set to
true, the entire document will be evaluated. - When set to
deterministic-only, only expressions that depend exclusively on deterministic inputs will be evaluated.
falsebooleanOptional
string · enumOptionalPossible values:
dereferencedone ofOptionalDefault:
Controls whether the document should be deferenced (eference to other content will be resolved and expanded).
- When set to
true, the entire document will be deferenced - When set to
reusable-contents, only reusable contents will be deferenced.
falsebooleanOptional
string · enumOptionalPossible values:
Responses
200
OK
application/json
objectstring · enumRequiredPossible values:
get/spaces/{spaceId}/revisions/{revisionId}/reusable-contents/{reusableContentId}/document
GET /v1/spaces/{spaceId}/revisions/{revisionId}/reusable-contents/{reusableContentId}/document HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
200
OK
{
"object": "document",
"data": {},
"nodes": [
{
"object": "block",
"type": "paragraph",
"data": {},
"nodes": [
{
"object": "text",
"leaves": [
{
"object": "leaf",
"text": "Hello world",
"marks": []
}
]
}
]
}
]
}Last updated
Was this helpful?