Skip to main content
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?token=' \
  --header 'Content-Type: application/json' \
  --data '
{
  "target": "staging"
}
'
{
  "success": true,
  "restored": {}
}

Documentation Index

Fetch the complete documentation index at: https://vida.io/docs/llms.txt

Use this file to discover all available pages before exploring further.

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