PUT DTA Snapshots SnapshotID
The PUT /dta_snapshots/{snapshotId} method is used to rename the snapshot of a DTA query (cert or discovery). This method returns HTTP 200 OK on a success with no content.
Table 18: PUT DTA Snapshots SnapshotID Input Parameters
| Name | In | Description |
|---|---|---|
| snapshotId | path |
A string indicating the name of the snapshot. For example: https://<YOUR-HUB-NAME>/api/v1/dta_snapshots/snapshot_5
|
| newSnapshotId | body |
A string indicating the new name for the snapshot. This alphanumeric value supports underscores and does not support spaces. For example: snapshot_5_new
|
API_KEY='<YOUR-API-KEY>'
HUB='https://<YOUR-HUB-SERVER>'
curl -sS -X PUT "$HUB/api/v1/dta_snapshots/snapshot_5" \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-H "x-api-key: $API_KEY" \
-d '{
"newSnapshotId": "snapshot_5_new"
}'Was this page helpful? Provide Feedback