Artboard
Deployments

Undo a Sub-Deployment

Restores the backup created before the given deployment Id to the state before the deployment was started.

POST
/otto/api/deployment/undo

Request Body

application/json

POST /otto/api/deployment/undo Request body

id*integer
Formatint64
Range0 < value <= 9007199254740991
transferContainerData?boolean
Defaultfalse

Response Body

application/json

application/json

curl -X POST "https://your.server.net/otto/api/deployment/undo" \  -H "Content-Type: application/json" \  -d '{    "id": 9007199254740991  }'
{
  "response": {
    "started": true,
    "batchId": 9007199254740991,
    "subDeploymentIds": [
      9007199254740991
    ]
  },
  "messages": [
    {
      "code": 0.1,
      "text": "ok"
    }
  ]
}
{
  "response": {},
  "messages": [
    {
      "code": 18011,
      "text": "OttoFMS sample error"
    }
  ]
}