Skip to main content
POST
/
api
/
v1
/
vm
/
from_commit
cURL
curl --request POST \
  --url https://api.example.com/api/v1/vm/from_commit \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "commit_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'
{
  "vm_id": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Request body for POST /api/v1/vm/from_commit

commit_id
string<uuid>
required

Response

VM restored from commit successfully

Response body for new VM requests (new_root, from_commit, branch)

vm_id
string
required