Skip to main content
Version: v3

Update Agent

PATCH 

/agent-studio/agent/versions/:versionId

Updates a specific agent version by versionId. Supports updating nodes, edges, variables, and configuration.

Request

Version stringrequired

API Version

Available optionsv3
versionId stringrequired
source string
application/json

Bodyrequired

    locationIdstringrequired

    Location ID for authorization

    versionNamestring

    Version name

    descriptionstring

    Description of the version

    nodesobject[]

    Complete array of nodes for the agent workflow. Provide all nodes including unchanged ones.

    edgesobject[]

    Complete array of edges connecting the nodes. Provide all edges including unchanged ones.

    globalVariablesobject[]

    Global variables accessible throughout the agent workflow

    inputVariablesobject[]

    Input variables required from user at execution time

    runtimeVariablesobject[]

    Runtime variables generated during agent execution

    globalConfigobject

    Global configuration including prompts and settings

    userIdstring

    User ID performing the update

    userNamestring

    User name performing the update

application/json

Version updated successfully

Schema
    successbooleanrequired

    Success status

    messagestringrequired

    Response message

    dataobjectrequired

    Updated agent or version data