Restore a document version
const url = 'https://example.com/api/v1/collab/history/example/points/example/restore';const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/v1/collab/history/example/points/example/restore \ --header 'Authorization: Bearer <token>'Apply the selected owner history point as a new checked forward edit. Current edits remain in history and the live room broadcasts the change. Route: /api/v1/collab/history/{item_id}/points/{point}/restore. Inputs: item_id, point. Do not automatically replay this operation after an uncertain result.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Stable item ID
History point ID
Responses
Section titled “Responses”Restore applied
object
New forward-edit history point, absent for a no-op.
object
Server time in Unix milliseconds.
Encoded and compressed bytes for this point.
Stable history point ID.
Point applied to the live document.
Size of the normal Yjs update sent through the collaboration hub.
Example
{ "change": { "author": { "kind": "user" } }}The standard API error response: { "error": { ... } }.
object
Example
{ "error": { "code": "bad_request" }}The standard API error response: { "error": { ... } }.
object
Example
{ "error": { "code": "bad_request" }}The standard API error response: { "error": { ... } }.
object
Example
{ "error": { "code": "bad_request" }}The standard API error response: { "error": { ... } }.
object
Example
{ "error": { "code": "bad_request" }}The standard API error response: { "error": { ... } }.
object
Example
{ "error": { "code": "bad_request" }}The standard API error response: { "error": { ... } }.
object
Example
{ "error": { "code": "bad_request" }}