Replace agent version input parameter
PUT/api/v2/AgentVersion/:agentCode/:agentVersion/inputParameters/:inputParameterName
Replaces a single input parameter of a draft agent version. The parameter can be renamed by sending a different name in the body, unless the system definition or the initial message still references the current name: remove it from those templates first.
Request
Path Parameters
The code of the agent.
The version number of the agent.
The name of the input parameter to replace.
Query Parameters
Use this param to override the culture of the response. Options: - en (default) - es
- application/json
- text/json
- application/*+json
Body
The input parameter that takes its place.
Possible values: non-empty, Value must match regular expression ^[a-zA-Z0-9_]+$
The parameter name. Only letters, digits and underscores are allowed.
A description of the parameter.
Possible values: [array, boolean, number, object, string]
The data type of an input parameter.
Whether the parameter must be supplied when the agent is executed.
Value used when the execution does not supply the parameter. It must match the parameter type.
Body
The input parameter that takes its place.
Possible values: non-empty, Value must match regular expression ^[a-zA-Z0-9_]+$
The parameter name. Only letters, digits and underscores are allowed.
A description of the parameter.
Possible values: [array, boolean, number, object, string]
The data type of an input parameter.
Whether the parameter must be supplied when the agent is executed.
Value used when the execution does not supply the parameter. It must match the parameter type.
Body
The input parameter that takes its place.
Possible values: non-empty, Value must match regular expression ^[a-zA-Z0-9_]+$
The parameter name. Only letters, digits and underscores are allowed.
A description of the parameter.
Possible values: [array, boolean, number, object, string]
The data type of an input parameter.
Whether the parameter must be supplied when the agent is executed.
Value used when the execution does not supply the parameter. It must match the parameter type.
Responses
- 200
- 400
- 401
- 403
- 404
- 500
Input parameter replaced successfully.
If the request is invalid, the parameter is still used by a template, or the version is not a draft.
- 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, the version or the input parameter 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"
}