Skip to content

Restore a notebook to its content at a commit (as a new commit)

POST
/api/workspaces/{workspaceId}/notebooks/{id}/restore
workspaceId
required
string
id
required
string
object
sha
required
string
/^[0-9a-f]{7,40}$/

Successful response

object
success

Whether the request succeeded.

boolean
data

Endpoint-specific response payload.

message
string
Example
Operation completed
error
string
Example
Error message

Invalid request

object
success
boolean
error
string
Example
Error message

Internal server error

object
success
boolean
error
string
Example
Error message