Updates the behaviour configuration of a conversational agent version.
PATCH/api/v2/AgentVersion/:agentCode/:agentVersion/behaviour
Updates the behaviour configuration of a conversational agent version.
Request
Path Parameters
The code of the agent.
The version number of the agent.
Query Parameters
Use this param to override the culture of the response. Options: - en (default) - es
- application/json
- text/json
- application/*+json
Body
The behaviour configuration request.
Possible values: non-empty and <= 40000 characters
Possible values: non-empty and <= 2000 characters
Possible values: <= 1000 characters
Enables the Request User Choice skill, which lets the agent pause and ask the user to pick from a set of options before continuing. Defaults to false.
Enables the Agent TODOs skill, which lets the agent keep a TODO list and iterate over it on its own until every item is done. Defaults to false.
Enables User Interruptions, which let users send messages while the agent is still answering so they are merged into the running answer. Defaults to false.
Body
The behaviour configuration request.
Possible values: non-empty and <= 40000 characters
Possible values: non-empty and <= 2000 characters
Possible values: <= 1000 characters
Enables the Request User Choice skill, which lets the agent pause and ask the user to pick from a set of options before continuing. Defaults to false.
Enables the Agent TODOs skill, which lets the agent keep a TODO list and iterate over it on its own until every item is done. Defaults to false.
Enables User Interruptions, which let users send messages while the agent is still answering so they are merged into the running answer. Defaults to false.
Body
The behaviour configuration request.
Possible values: non-empty and <= 40000 characters
Possible values: non-empty and <= 2000 characters
Possible values: <= 1000 characters
Enables the Request User Choice skill, which lets the agent pause and ask the user to pick from a set of options before continuing. Defaults to false.
Enables the Agent TODOs skill, which lets the agent keep a TODO list and iterate over it on its own until every item is done. Defaults to false.
Enables User Interruptions, which let users send messages while the agent is still answering so they are merged into the running answer. Defaults to false.
Responses
- 200
- 400
- 401
- 403
- 404
- 500
Behaviour configuration updated successfully.
If the request is invalid or the agent is not a conversational agent.
- application/json
- Schema
- Example (from schema)
Schema
- MOD1
- MOD2
Array [
]
Stable, machine-readable error code. Branch on this value, not on message.
Human-readable, localised summary of the error.
Link to the documentation section for this error code.
errors
object
nullable
Map of keys (an invalid request field or the rule that failed) to messages. Only present when the error has specific detail to report. Values are strings, except on input_validation_error, where each value is an array of messages for that field.
property name*
object
nullable
oneOf
string
string
{
"code": "string",
"message": "string",
"documentationUrl": "string",
"errors": {}
}
The user is unauthorized or the session expired
- application/json
- Schema
- Example (from schema)
Schema
Stable, machine-readable error code. Branch on this value, not on message.
Human-readable, localised summary of the error.
Link to the documentation section for this error code.
{
"code": "string",
"message": "string",
"documentationUrl": "string"
}
The user does not have permission
- application/json
- Schema
- Example (from schema)
Schema
Stable, machine-readable error code. Branch on this value, not on message.
Human-readable, localised summary of the error.
Link to the documentation section for this error code.
{
"code": "string",
"message": "string",
"documentationUrl": "string"
}
If the agent or version is not found.
- application/json
- Schema
- Example (from schema)
Schema
- MOD1
- MOD2
Array [
]
Stable, machine-readable error code. Branch on this value, not on message.
Human-readable, localised summary of the error.
Link to the documentation section for this error code.
errors
object
nullable
Map of keys (an invalid request field or the rule that failed) to messages. Only present when the error has specific detail to report. Values are strings, except on input_validation_error, where each value is an array of messages for that field.
property name*
object
nullable
oneOf
string
string
{
"code": "string",
"message": "string",
"documentationUrl": "string",
"errors": {}
}
There was an unexpected error
- application/json
- Schema
- Example (from schema)
Schema
Stable, machine-readable error code. Branch on this value, not on message.
Human-readable, localised summary of the error.
Link to the documentation section for this error code.
{
"code": "string",
"message": "string",
"documentationUrl": "string"
}