SetConnectorInfo

The SetConnectorInfo action sets a specific field value on a connector's configuration.

SetConnectorInfo(
    integrationIdn: str,
    connectorIdn: str,
    field: str,
    value: str
)

Parameters

ParameterTypeDescription
integrationIdnstrThe integration identifier (e.g., "newo_voice", "twilio_messenger").
connectorIdnstrThe connector identifier (e.g., "newo_voice_connector", "sms_connector").
fieldLiteral["title", "status"] | strThe name of the field to set on the connector.
valuestr | dict[str, str] | Literal["running", "stopped"]The value to assign to the field. If you are updating status it must be one of Literal["running", "stopped"]

Example

{{ SetConnectorInfo(
    integrationIdn="newo_voice",
    connectorIdn="newo_voice_connector",
    field="status",
    value="stopped",
) }}

The above code snippet sets the status field on the Newo Voice connector to stopped.

{{ SetConnectorInfo(
    integrationIdn="newo_voice",
    connectorIdn="newo_voice_connector",
    field="agent_phone_number",
    value="+16507000000",
) }}

The above code snippet sets the settings "agent_phone_number" field on the Newo Voice connector.

{{ SetConnectorInfo(
    integrationIdn="newo_voice",
    connectorIdn="newo_voice_connector",
    field="settings",
    value={"agent_phone_number": "+16507000000"}
) }}

The above code snippet sets the settings "agent_phone_number" field on the Newo Voice connector.