Skip to main content
POST
Update Agent Version (Behavioral)
Use this API to update behavioral/version fields on a custom agent. Creates a new version N+1 in the versions subcollection, updates the version pointer on the root document, and bumps updatedAt. In-flight executions stay pinned to whatever version they started on — the update only affects future executions. The schema uses .passthrough() so additional behavioral fields are forwarded. Deep validation happens in the service layer via updateCustomAgentConfigSchema. Custom agents only. Use Update Agent for identity edits on built-in agents.

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 execution

Response

Success Response

FieldTypeDescription
data.versionnumberNew version number after the update

Failure Response

Errors: NOT_FOUND (agent does not exist) / INVALID_ARGUMENT (validation failure or attempting to update a built-in agent’s behavior).