Skip to main content

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

    agentCode stringrequired

    The code of the agent.

    agentVersion int32required

    The version number of the agent.

    inputParameterName stringrequired

    The name of the input parameter to replace.

Query Parameters

    culture string

    Use this param to override the culture of the response. Options: - en (default) - es

Body

The input parameter that takes its place.

    name stringrequired

    Possible values: non-empty, Value must match regular expression ^[a-zA-Z0-9_]+$

    The parameter name. Only letters, digits and underscores are allowed.

    description stringnullable

    A description of the parameter.

    type ParameterTypeEnum (string)required

    Possible values: [array, boolean, number, object, string]

    The data type of an input parameter.

    isRequired boolean

    Whether the parameter must be supplied when the agent is executed.

    defaultValue nullable

    Value used when the execution does not supply the parameter. It must match the parameter type.

Responses​

Input parameter replaced successfully.

Loading...