Rename Application Snapshot (v1)

REST Resource

PUT /interop/rest/v1/renamesnapshot

Request

Supported Media Types: application/x-www-form-urlencoded

Table 2-224 Parameters

Name Description Type Required Default
snapshotName The name of the snapshot to be renamed. Form Yes None
newSnapshotName The desired name of the existing snapshot. Form Yes None

Response

Supported Media Types: application/json

Table 2-225 Parameters

Name Description
details In the case of errors, details are published with the error string
status See Migration Status Codes
links Detailed information about the link
href Links to API call or status API
action The HTTP call type
rel Possible values: self or Job Status. If the value is set to Job Status, you can use the href to get the status
data Parameters as key value pairs passed in the request

Example of Response Body

{
  "details": null,
  "status": 0,
  "links": [
    {
      "href": "https://<BASE-URL>/interop/rest/v1/renamesnapshot",
      "action": "PUT",
      "rel": "self",
      "data": null
    }
  ]
}

Sample cURL Command

curl -s -u <USERNAME>:<PASSWORD> -H 'Content-Type: application/x-www-form-urlencoded' --request PUT https://<BASE-URL>/interop/rest/v1/renamesnapshot -d 'snapshotName=<ARTIFACT-SNAPSHOT>&newSnapshotName=<NEW-SNAPSHOT-NAME>'