- URL:
- https://<notebookserveradmin>/notebooks/snapshots/restore
- Methods:
POST
- Required Capability:
- Administrator or Create and Edit
- Version Introduced:
- 10.9
Description
The restore
operation allows for the restoring of a notebook snapshot for that notebook item. Only the owner of a notebook is allowed to restore from a snapshot.
Request parameters
Parameter | Details |
---|---|
(Required) | The item ID of the notebook for which to restore a snapshot. |
(Required) | The resource key of the snapshot to restore. Example
|
(Optional) | A title for the snapshot preserved as part of the restore. |
(Required) | The option of whether to preserve the current notebook item file as a snapshot as part of the restore. Values: |
(Optional) | A description for the snapshot preserved as part of the restore. |
(Optional) | The response format. The default response format is Values: |
Example usage
https://notebookserver.domain.com:11443/arcgis/admin/notebooks/snapshots/restore?f=json
&itemId=5dbacb22922d4ead9b8b065f3ea448b8
&resourceKey=snapshot-05cd1ec64137421f8c2ac975236bf29a.json
&preserveCurrentAsSnapshot=true
&description=This+is+snapshot+created+with+restore
JSON Response syntax
{
"resourceKey": "<resourceKey>",
"status": "success|failure"
}
JSON Response example
{
"resourceKey": "snapshot-72c0d3e1ab70440183f11c11e00afb8b.json",
"status": "success"
}