Saltar al contenido principal

Add agent version input parameter

POST 

/api/v2/AgentVersion/:agentCode/:agentVersion/inputParameters

Adds a single input parameter to a draft agent version. The name must be unique within the version.

Request​

Path Parameters

    agentCode stringrequired

    The code of the agent.

    agentVersion int32required

    The version number of the agent.

Query Parameters

    culture string

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

Body

The input parameter to add.

    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 added successfully.

Loading...