POST
/
api
/
v2
/
agent
/
{agentId}
/
versions
/
{versionId}
/
restore
Restore Version to Agent
curl --request POST \
  --url https://api.vida.dev/api/v2/agent/{agentId}/versions/{versionId}/restore \
  --header 'Content-Type: application/json' \
  --data '{
  "target": "staging"
}'
{
  "success": true,
  "restored": {}
}

Authorizations

token
string
query
required

Vida API Token

Path Parameters

agentId
string
required

Agent Id

versionId
string
required

Epoch-ms score of the snapshot

Body

application/json
target
enum<string>
default:staging
Available options:
staging,
default

Response

200 - application/json

Snapshot restored

success
boolean
Example:

true

restored
object

The campaign object now occupying the target slot