Skip to main content
PUT
cURL
Saves a configuration into a version that isn’t live. The body is the same as Update agent: send the full configuration, for example the one from Get agent version with your changes. The save keeps the version’s name and tags but gets a new version_id, returned in the response. Use that id from now on, for later saves, test calls and set_current. List agent versions shows the version with its new id.
The live version returns 409. Save it with Update agent instead.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

agent_id
string<uuid>
required

The agent's id

agent_version_id
string<uuid>
required

The version's id, from List agent versions

Body

application/json

The full agent configuration, as in PUT /v2/agent/{agent_id}

agent_config
object
required

Configuration of the agent

agent_prompts
object
required

Prompts to be provided to the agent. It can have multiple tasks of the form task_<task_id>

Response

Version updated. version_id is the id of the new save; use it from now on.

agent_id
string<uuid>
version_id
string<uuid>

id of the save just written

version_name
string
state
enum<string>

saved for a new version, updated for a save into an existing version

Available options:
saved,
updated