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

Autorización

string
required
Bearer token generado desde el portal Leadway. Ver Autenticación.
string
default:"2021-07-28"
required
Versión de la API.

Path parameters

string
default:"v1a2b3c4d5e6f7g8h9i0"
required

Query parameters

string
default:"api"

Body

string
default:"C2QujeCh8ZnC7al2InWR"
required
Account ID for authorization
string
default:"Customer Support Agent v2"
Version name
string
Description of the version
object[]
Complete array of nodes for the agent workflow. Provide all nodes including unchanged ones.
object[]
Complete array of edges connecting the nodes. Provide all edges including unchanged ones.
object[]
Global variables accessible throughout the agent workflow
object[]
Input variables required from user at execution time
object[]
Runtime variables generated during agent execution
object
Global configuration including prompts and settings
string
default:"usr_abc123def456"
User ID performing the update
string
default:"John Doe"
User name performing the update

Respuestas

boolean
default:"True"
required
Success status
string
default:"Agent updated successfully"
required
Response message
object
required
Updated agent or version data
number
default:"500"
string
default:"Internal Server Error"

Ejemplo