{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/telnyx/main/json-schema/telnyx-create-external-connection-upload-request-schema.json",
  "title": "Create Upload 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/CreateExternalConnectionUploadRequest",
  "properties": {
    "additional_usages": {
      "items": {
        "description": "Additional use cases of the upload request. If not provided, all supported usages will be used.",
        "enum": [
          "calling_user_assignment",
          "first_party_app_assignment"
        ],
        "type": "string"
      },
      "type": "array"
    },
    "civic_address_id": {
      "description": "Identifies the civic address to assign all phone numbers to.",
      "format": "uuid",
      "type": "string"
    },
    "location_id": {
      "description": "Identifies the location to assign all phone numbers to.",
      "format": "uuid",
      "type": "string"
    },
    "number_ids": {
      "items": {
        "description": "Phone number ID from the Telnyx API.",
        "type": "string"
      },
      "minItems": 1,
      "type": "array"
    },
    "usage": {
      "description": "The use case of the upload request. NOTE: `calling_user_assignment` is not supported for toll free numbers.",
      "enum": [
        "calling_user_assignment",
        "first_party_app_assignment"
      ],
      "type": "string"
    }
  },
  "required": [
    "number_ids"
  ],
  "type": "object"
}