POST
/
api
/
v2
/
agent
/
{agentId}
/
versions
/
{versionId}
Replace Stored Version
curl --request POST \
  --url https://api.vida.dev/api/v2/agent/{agentId}/versions/{versionId} \
  --header 'Content-Type: application/json' \
  --data '{
  "snapshot": {}
}'
{
  "success": true,
  "versionId": 1750195000123
}

Authorizations

token
string
query
required

Vida API Token

Path Parameters

agentId
string
required

Agent Id

versionId
string
required

Epoch-ms score identifying the snapshot

Body

application/json
snapshot
object
required

Full campaign JSON to store

Response

200 - application/json

Version replaced

success
boolean
Example:

true

versionId
integer
Example:

1750195000123