{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-teams/json-schema/microsoft-teams-microsoft-graph-teams-administration-telephone-number-management-root-schema.json",
  "title": "microsoft.graph.teamsAdministration.telephoneNumberManagementRoot",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-teams-admin-teamsadminroot-api-openapi.yml#/components/schemas/microsoft.graph.teamsAdministration.telephoneNumberManagementRoot",
  "allOf": [
    {
      "$ref": "#/$defs/microsoft.graph.entity"
    },
    {
      "title": "telephoneNumberManagementRoot",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "numberAssignments": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.teamsAdministration.numberAssignment"
          },
          "description": "Represents a collection of synchronous telephone number management operations.",
          "x-ms-navigationProperty": true
        },
        "operations": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/microsoft.graph.teamsAdministration.telephoneNumberLongRunningOperation"
          },
          "description": "Represents a collection of asynchronous telephone number management operations.",
          "x-ms-navigationProperty": true
        },
        "@odata.type": {
          "type": "string"
        }
      }
    }
  ],
  "x-ms-discriminator-value": "#microsoft.graph.teamsAdministration.telephoneNumberManagementRoot",
  "$defs": {
    "microsoft.graph.entity": {
      "title": "entity",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The unique identifier for an entity. Read-only."
        },
        "@odata.type": {
          "type": "string"
        }
      }
    },
    "microsoft.graph.longRunningOperationStatus": {
      "title": "longRunningOperationStatus",
      "enum": [
        "notStarted",
        "running",
        "succeeded",
        "failed",
        "unknownFutureValue"
      ],
      "type": "string"
    },
    "microsoft.graph.teamsAdministration.activationState": {
      "title": "activationState",
      "enum": [
        "activated",
        "assignmentPending",
        "assignmentFailed",
        "updatePending",
        "updateFailed",
        "unknownFutureValue"
      ],
      "type": "string"
    },
    "microsoft.graph.teamsAdministration.assignmentCategory": {
      "title": "assignmentCategory",
      "enum": [
        "primary",
        "private",
        "alternate",
        "unknownFutureValue"
      ],
      "type": "string"
    },
    "microsoft.graph.teamsAdministration.assignmentStatus": {
      "title": "assignmentStatus",
      "enum": [
        "unassigned",
        "internalError",
        "userAssigned",
        "conferenceAssigned",
        "voiceApplicationAssigned",
        "thirdPartyAppAssigned",
        "policyAssigned",
        "unknownFutureValue"
      ],
      "type": "string"
    },
    "microsoft.graph.teamsAdministration.customerAction": {
      "title": "customerAction",
      "enum": [
        "locationUpdate",
        "release",
        "unknownFutureValue"
      ],
      "type": "string"
    },
    "microsoft.graph.teamsAdministration.numberAssignment": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.entity"
        },
        {
          "title": "numberAssignment",
          "required": [
            "@odata.type"
          ],
          "type": "object",
          "properties": {
            "activationState": {
              "$ref": "#/$defs/microsoft.graph.teamsAdministration.activationState"
            },
            "assignmentCategory": {
              "anyOf": [
                {
                  "$ref": "#/$defs/microsoft.graph.teamsAdministration.assignmentCategory"
                },
                {
                  "type": [
                    "object",
                    "null"
                  ]
                }
              ],
              "description": "Contains the assignment category such as Primary or Private. The possible values are: primary, private, alternate, unknownFutureValue."
            },
            "assignmentStatus": {
              "anyOf": [
                {
                  "$ref": "#/$defs/microsoft.graph.teamsAdministration.assignmentStatus"
                },
                {
                  "type": [
                    "object",
                    "null"
                  ]
                }
              ],
              "description": "The assignment status of the phone number. The possible values are: unassigned, internalError, userAssigned, conferenceAssigned, voiceApplicationAssigned, thirdPartyAppAssigned, policyAssigned, unknownFutureValue."
            },
            "assignmentTargetId": {
              "type": [
                "string",
                "null"
              ],
              "description": "The ID of the object the phone number is assigned to, either the ObjectId of a user or resource account, or the policy instance ID of a Teams shared calling routing policy instance."
            },
            "capabilities": {
              "type": "array",
              "items": {
                "$ref": "#/$defs/microsoft.graph.teamsAdministration.numberCapability"
              },
              "description": "The list of capabilities assigned to the phone number."
            },
            "city": {
              "type": [
                "string",
                "null"
              ],
              "description": "The city where the phone number is located or associated with."
            },
            "civicAddressId": {
              "type": [
                "string",
                "null"
              ],
              "description": "The ID of the civic address assigned to the phone number."
            },
            "isoCountryCode": {
              "type": [
                "string",
                "null"
              ],
              "description": "The ISO country code assigned to the phone number."
            },
            "locationId": {
              "type": [
                "string",
                "null"
              ],
              "description": "The ID of the location assigned to the phone number."
            },
            "networkSiteId": {
              "type": [
                "string",
                "null"
              ],
              "description": "This property is reserved for internal Microsoft use."
            },
            "numberSource": {
              "anyOf": [
                {
                  "$ref": "#/$defs/microsoft.graph.teamsAdministration.numberSource"
                },
                {
                  "type": [
                    "object",
                    "null"
                  ]
                }
              ],
              "description": "The source of the phone number. online is used for phone numbers assigned in Microsoft 365, and onPremises is used for phone numbers assigned in AD on-premises, which are synchronized into Microsoft 365. The possible values are: online, onPremises, unknownFutureValue."
            },
            "numberType": {
              "$ref": "#/$defs/microsoft.graph.teamsAdministration.numberType"
            },
            "operatorId": {
              "type": "string",
              "description": "The ID of the operator."
            },
            "portInStatus": {
              "anyOf": [
                {
                  "$ref": "#/$defs/microsoft.graph.teamsAdministration.portInStatus"
                },
                {
                  "type": [
                    "object",
                    "null"
                  ]
                }
              ],
              "description": "The status of any port in order covering the phone number. The possible values are: completed, firmOrderCommitmentAccepted, unknownFutureValue."
            },
            "reverseNumberLookupOptions": {
              "type": "array",
              "items": {
                "$ref": "#/$defs/microsoft.graph.teamsAdministration.reverseNumberLookupOption"
              },
              "description": "Status of Reverse Number Lookup (RNL). If set to skipInternalVoip, calls are routed through the external Public Switched Telephone Network (PSTN) instead of using internal VoIP resolution."
            },
            "supportedCustomerActions": {
              "type": "array",
              "items": {
                "$ref": "#/$defs/microsoft.graph.teamsAdministration.customerAction"
              },
              "description": "Indicates what customer actions are available to modify the number."
            },
            "telephoneNumber": {
              "type": "string",
              "description": "The telephone number in the record. The recorded telephone number is always displayed with a '+' prefix, regardless of whether it was originally assigned with one."
            },
            "@odata.type": {
              "type": "string"
            }
          }
        }
      ],
      "x-ms-discriminator-value": "#microsoft.graph.teamsAdministration.numberAssignment"
    },
    "microsoft.graph.teamsAdministration.numberCapability": {
      "title": "numberCapability",
      "enum": [
        "conferenceAssignment",
        "voiceApplicationAssignment",
        "userAssignment",
        "teamsPhoneMobile",
        "unknownFutureValue"
      ],
      "type": "string"
    },
    "microsoft.graph.teamsAdministration.numberSource": {
      "title": "numberSource",
      "enum": [
        "online",
        "onPremises",
        "unknownFutureValue"
      ],
      "type": "string"
    },
    "microsoft.graph.teamsAdministration.numberType": {
      "title": "numberType",
      "enum": [
        "internalError",
        "directRouting",
        "callingPlan",
        "operatorConnect",
        "unknownFutureValue"
      ],
      "type": "string"
    },
    "microsoft.graph.teamsAdministration.portInStatus": {
      "title": "portInStatus",
      "enum": [
        "completed",
        "firmOrderCommitmentAccepted",
        "unknownFutureValue"
      ],
      "type": "string"
    },
    "microsoft.graph.teamsAdministration.reverseNumberLookupOption": {
      "title": "reverseNumberLookupOption",
      "enum": [
        "skipInternalVoip",
        "unknownFutureValue"
      ],
      "type": "string"
    },
    "microsoft.graph.teamsAdministration.telephoneNumberLongRunningOperation": {
      "allOf": [
        {
          "$ref": "#/$defs/microsoft.graph.entity"
        },
        {
          "title": "telephoneNumberLongRunningOperation",
          "required": [
            "@odata.type"
          ],
          "type": "object",
          "properties": {
            "createdDateTime": {
              "type": "string",
              "description": "Date and time when the asynchronous operation was created."
            },
            "numbers": {
              "type": "array",
              "items": {
                "$ref": "#/$defs/microsoft.graph.teamsAdministration.telephoneNumberLongRunningOperationDetails"
              },
              "description": "Asynchronous operation details."
            },
            "status": {
              "$ref": "#/$defs/microsoft.graph.longRunningOperationStatus"
            },
            "@odata.type": {
              "type": "string"
            }
          }
        }
      ],
      "x-ms-discriminator-value": "#microsoft.graph.teamsAdministration.telephoneNumberLongRunningOperation"
    },
    "microsoft.graph.teamsAdministration.telephoneNumberLongRunningOperationDetails": {
      "title": "telephoneNumberLongRunningOperationDetails",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "resourceLocation": {
          "type": [
            "string",
            "null"
          ],
          "description": "Location of the asynchronous operation. It includes the operation identifier."
        },
        "status": {
          "anyOf": [
            {
              "$ref": "#/$defs/microsoft.graph.longRunningOperationStatus"
            },
            {
              "type": [
                "object",
                "null"
              ]
            }
          ],
          "description": "status of the asynchronous operation. The possible values are: notStarted, running, succeeded, failed, unknownFutureValue."
        },
        "statusDetail": {
          "type": [
            "string",
            "null"
          ],
          "description": "Indicates the asynchronous operation details."
        },
        "@odata.type": {
          "type": "string"
        }
      }
    }
  }
}