Skip to main content
POST
Update Agent (Identity)
Use this API to update identity fields on the root agent document. No new version is created. Works for both custom and built-in agents, though built-in agents only support updating enabled. For behavioral changes (instructions, context gathering, execution, post-processing, scope), use Update Agent Version instead, which creates a new version.

Endpoint

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

Headers

string
required
Your API key.
string
required

Body

Params

object
required
Provide at least one of name, description, or enabled. This is not schema-enforced — a request without any of them succeeds as a no-op for custom agents, and returns INVALID_ARGUMENT for built-in agents (which require enabled).

Example Requests

1. Rename an agent

2. Disable an agent

3. Enable a built-in agent

Response

Success Response

Failure Response

Errors:
  • INVALID_ARGUMENT: missing agentId, empty name, or updating a built-in agent without the enabled field. Built-in agents support enabled only, and a name or description sent alongside it is silently ignored.
  • NOT_FOUND: the workspace store database could not be resolved.
  • INTERNAL: the agent does not exist.
Updating an agent that does not exist surfaces as INTERNAL, not NOT_FOUND. Check existence with Get Agent if you need to distinguish a missing agent from a genuine server error.This endpoint also ignores fields it does not own. Behavioral fields such as instructions or execution sent here are silently dropped and the call still returns 200; use Update Agent Version for those.