---
title: "Create Network"
method: POST
path: "/restapi/v1.0/account/{accountId}/emergency-address-auto-update/networks"
tags: ["Automatic Location Updates"]
---

# Create Network

`POST /restapi/v1.0/account/{accountId}/emergency-address-auto-update/networks`

## Request

- Base URL: `https://platform.ringcentral.com`
- URL: `https://platform.ringcentral.com/restapi/v1.0/account/{accountId}/emergency-address-auto-update/networks`
- Auth: OAuth 2
  - Authorization code: `https://platform.ringcentral.com/restapi/oauth/authorize`
  - Token URL: `https://platform.ringcentral.com/restapi/oauth/token`
- TypeScript: <https://skmtc.dev/ringcentral/apis/ringcentral-api/docs/restapi/v1.0/account/:accountId/emergency-address-auto-update/networks/post.ts> (a function with typed inputs; its response is checked against the schema)

Creates a new network in a corporate ethernet map for assignment
of emergency addresses to network access points.

## Path parameters

- `accountId` string, required

## Request body

- CreateNetworkRequest
  - `name` string, required
  - `site` AutomaticLocationUpdatesSiteInfo: Site data. If multi-site feature is turned on for the account, then ID of a site must be specified. In order to assign a wireless point to the main site (company) site ID should be set to `main-site`
    - `id` string: Internal identifier of a site
    - `uri` string, uri: Link to a site resource
    - `name` string: Name of a site
    - `code` string: Site code value. Returned only if specified
  - `publicIpRanges` PublicIpRangeInfo[], required
    - `id` string
    - `startIp` string
    - `endIp` string
    - `matched` boolean
  - `privateIpRanges` PrivateIpRangeInfoRequest[], required
    - `id` string
    - `startIp` string
    - `endIp` string
    - `name` string: Network name
    - `emergencyAddress` LocationUpdatesEmergencyAddressInfoRequest: Emergency address assigned to the switch. Only one of a pair `emergencyAddress` or `emergencyLocationId` should be specified, otherwise the error is returned
      - `country` string: Country name
      - `countryId` string: Internal identifier of a country
      - `countryIsoCode` string: ISO code of a country
      - `countryName` string: Full name of a country
      - `customerName` string: Customer name
      - `state` string: State/Province name. Mandatory for the USA, the UK and Canada
      - `stateId` string: Internal identifier of a state
      - `stateIsoCode` string: ISO code of a state
      - `stateName` string: Full name of a state
      - `city` string: City name
      - `street` string: First line address
      - `street2` string: Second line address (apartment, suite, unit, building, floor, etc.)
      - `zip` string: Postal (Zip) code
    - `emergencyLocationId` string: Emergency response location (address) internal identifier. Only one of a pair `emergencyAddress` or `emergencyLocationId` should be specified, otherwise the error is returned
    - `emergencyLocation` ERLLocationInfo: Emergency response location information
      - `id` string: Internal identifier of an emergency response location
      - `name` string: Emergency response location name
      - `addressFormatId` string: Address format ID

## Response `200`

Created network

- NetworkInfo
  - `id` string: Internal identifier of a network
  - `uri` string, uri: Link to a network resource
  - `name` string
  - `site` AutomaticLocationUpdatesSiteInfo: Site data. If multi-site feature is turned on for the account, then ID of a site must be specified. In order to assign a wireless point to the main site (company) site ID should be set to `main-site`
    - `id` string: Internal identifier of a site
    - `uri` string, uri: Link to a site resource
    - `name` string: Name of a site
    - `code` string: Site code value. Returned only if specified
  - `publicIpRanges` PublicIpRangeInfo[]
    - `id` string
    - `startIp` string
    - `endIp` string
    - `matched` boolean
  - `privateIpRanges` PrivateIpRangeInfo[]
    - `id` string
    - `startIp` string
    - `endIp` string
    - `name` string: Network name
    - `emergencyAddress` union
      - CommonEmergencyLocationAddressInfoDefault
        - `country` string: Country name
        - `countryId` string: Internal identifier of a country
        - `countryIsoCode` string: ISO code of a country
        - `countryName` string: Full name of a country
        - `state` string: State/Province name. Mandatory for the USA, the UK and Canada
        - `stateId` string: Internal identifier of a state
        - `stateIsoCode` string: ISO code of a state
        - `stateName` string: Full name of a state
        - `city` string: City name
        - `street` string: First line address
        - `street2` string: Second line address (apartment, suite, unit, building, floor, etc.)
        - `zip` string: Postal (Zip) code
        - `customerName` string: Customer name
      - CommonEmergencyLocationAddressInfoAu
        - `country` string: Country name
        - `countryId` string: Internal identifier of a country
        - `countryIsoCode` string: ISO code of a country
        - `countryName` string: Full name of a country
        - `state` string: State/Province name. Mandatory for the USA, the UK and Canada
        - `stateId` string: Internal identifier of a state
        - `stateIsoCode` string: ISO code of a state
        - `stateName` string: Full name of a state
        - `city` string: City name
        - `street` string: The name of the street (the field is utilized as 'streetName' field for AU addresses)
        - `companyName` string: Company name
        - `buildingName` string: (Optional) Building name
        - `streetType` string: Street type
        - `buildingNumber` string: Building/street number
        - `street2` string: Second line address (apartment, suite, unit, building, floor, etc.)
        - `zip` string: Postal (Zip) code
        - `customerName` string: Customer name
      - CommonEmergencyLocationAddressInfoFr
        - `country` string: Country name
        - `countryId` string: Internal identifier of a country
        - `countryIsoCode` string: ISO code of a country
        - `countryName` string: Full name of a country
        - `state` string: State/Province name. Mandatory for the USA, the UK and Canada
        - `stateId` string: Internal identifier of a state
        - `stateIsoCode` string: ISO code of a state
        - `stateName` string: Full name of a state
        - `city` string: City name
        - `street` string: The name of the street (The field is utilized as 'streetName' field for FR addresses)
        - `companyName` string: Company name
        - `buildingName` string: (Optional) Building name
        - `buildingNumber` string: Building/street number
        - `street2` string: Second line address (apartment, suite, unit, building, floor, etc.)
        - `zip` string: Postal (Zip) code
        - `customerName` string: Customer name
    - `emergencyLocationId` string: Emergency response location (address) internal identifier. Only one of a pair `emergencyAddress` or `emergencyLocationId` should be specified, otherwise an error is returned
    - `matched` boolean
    - `emergencyLocation` EmergencyLocationInfo: Emergency response location information
      - `id` string, required: Internal identifier of an emergency response location
      - `name` string: Emergency response location name
      - `addressFormatId` string: Address format ID

---

[API](https://skmtc.dev/ringcentral/apis/ringcentral-api.md) - [All operations](https://skmtc.dev/ringcentral/apis/ringcentral-api/llms.txt) - [OpenAPI document](https://skmtc.dev/ringcentral/apis/ringcentral-api/revisions/8d602198ec97?raw)
