Restore Snapshot

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

ParameterDetails

itemId

(Required)

The item ID of the notebook for which to restore a snapshot.

resourceKey

(Required)

The resource key of the snapshot to restore.

Example

Use dark colors for code blocksCopy
1
snapshot-f58ebdb43b184235a89d0a4acc2ec04b.json

title

(Optional)

A title for the snapshot preserved as part of the restore.

preserveCurrentAsSnapshot

(Required)

The option of whether to preserve the current notebook item file as a snapshot as part of the restore.

Values: true | false

description

(Optional)

A description for the snapshot preserved as part of the restore.

f

(Optional)

The response format. The default response format is html .

Values: html | json | pjson

Example usage

Use dark colors for code blocksCopy
1
2
3
4
5
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

Use dark colors for code blocksCopy
1
2
3
4
{
  "resourceKey": "<resourceKey>",
  "status": "success|failure"
}

JSON Response example

Use dark colors for code blocksCopy
1
2
3
4
{
  "resourceKey": "snapshot-72c0d3e1ab70440183f11c11e00afb8b.json",
  "status": "success"
}

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.