Skip to main content
POST
Update Agent Version
Use this API to update behavioral/version fields. This creates a new version N+1 in the versions subcollection and bumps the version pointer on the root document. Only supported for custom agents. In-flight executions stay pinned to whatever version they started on, so updating a version never disturbs a running execution. The schema uses .passthrough(), so additional behavioral fields are forwarded to the service layer.

Endpoint

POST https://api.velt.dev/v2/agents/version/update

Headers

x-velt-api-key
string
required
Your API key.
x-velt-auth-token
string
required

Body

Params

data
object
required

Example Requests

1. Update instructions and post-processing

2. Update context gathering strategies

3. Enable cross-page via scope

Response

Success Response

Failure Response

Errors: INVALID_ARGUMENT (Zod validation failure) / NOT_FOUND (agent does not exist).