SetConnectorInfo
The SetConnectorInfo action sets a specific field value on a connector's configuration.
SetConnectorInfo(
integrationIdn: str,
connectorIdn: str,
field: str,
value: str
)
Parameters
| Parameter | Type | Description |
|---|---|---|
integrationIdn | str | The integration identifier (e.g., "newo_voice", "twilio_messenger"). |
connectorIdn | str | The connector identifier (e.g., "newo_voice_connector", "sms_connector"). |
field | Literal["title", "status"] | str | The name of the field to set on the connector. |
value | str | 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.
Updated 2 days ago
