{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/telnyx/main/json-schema/telnyx-update-external-connection-request-schema.json",
  "title": "Update External Connection Request",
  "x-generated": "2026-10-08",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/telnyx-external-connections-api-openapi.yml#/components/schemas/UpdateExternalConnectionRequest",
  "properties": {
    "active": {
      "$ref": "#/$defs/ConnectionActive"
    },
    "inbound": {
      "properties": {
        "channel_limit": {
          "default": null,
          "description": "When set, this will limit the number of concurrent inbound calls to phone numbers associated with this connection.",
          "type": "integer"
        }
      },
      "type": "object"
    },
    "outbound": {
      "properties": {
        "channel_limit": {
          "default": null,
          "description": "When set, this will limit the number of concurrent outbound calls to phone numbers associated with this connection.",
          "type": "integer"
        },
        "outbound_voice_profile_id": {
          "$ref": "#/$defs/external-voice-integrations_OutboundVoiceProfileId"
        }
      },
      "required": [
        "outbound_voice_profile_id"
      ],
      "type": "object"
    },
    "tags": {
      "description": "Tags associated with the connection.",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "webhook_event_failover_url": {
      "default": "",
      "description": "The failover URL where webhooks related to this connection will be sent if sending to the primary URL fails. Must include a scheme, such as 'https'.",
      "format": "uri",
      "type": [
        "string",
        "null"
      ]
    },
    "webhook_event_url": {
      "description": "The URL where webhooks related to this connection will be sent. Must include a scheme, such as 'https'.",
      "format": "uri",
      "type": "string"
    },
    "webhook_timeout_secs": {
      "default": null,
      "description": "Specifies how many seconds to wait before timing out a webhook.",
      "maximum": 30,
      "minimum": 0,
      "type": [
        "integer",
        "null"
      ]
    }
  },
  "required": [
    "outbound"
  ],
  "type": "object",
  "$defs": {
    "ConnectionActive": {
      "default": true,
      "description": "Specifies whether the connection can be used.",
      "title": "Connection Active",
      "type": "boolean"
    },
    "external-voice-integrations_OutboundVoiceProfileId": {
      "description": "Identifies the associated outbound voice profile.",
      "title": "Outbound Voice Profile ID",
      "type": "string",
      "x-format": "int64"
    }
  }
}