# Batch Update of Phone Locations Produces Unexpected Error

**URL:** <https://devforum.zoom.us/t/batch-update-of-phone-locations-produces-unexpected-error/107130>\
**Category:** API and Webhooks\
**Tags:** phone, api\
**Created:** [April 3, 2024, 6:21pm UTC](https://devforum.zoom.us/t/batch-update-of-phone-locations-produces-unexpected-error/107130 "2024-04-03T18:21:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ptb014](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ptb014/32/49905_2.png) [@ptb014](https://devforum.zoom.us/u/ptb014)\
**Post date:** [April 3, 2024, 6:21pm UTC](https://devforum.zoom.us/t/batch-update-of-phone-locations-produces-unexpected-error/107130/1 "2024-04-03T18:21:42Z")

</div>

**API Endpoint(s) and/or Zoom API Event(s)**  
phone locations

**Description**  
I am attempting to send a batch update to the phone locations API. I am sending the following json data to [https://api.zoom.us/v2/phone/batch\_locations](https://api.zoom.us/v2/phone/batch_locations) via postman:

```auto

{
"locations":[
   {"parent_identifier":"","identifier":"abc","display_name":"hello","company_address":{"country":"United States","address_line1":"701 Moore Ave","address_line2":"","city":"Lewisburg","state_code":"PA","zip":"17837"},"minimum_match_criteria":false,"public_ip":"104.82.0.0/16","private_ip":"170.29.0.0/16","network_switches":[{"mac_address":"00:a2:89:28:56:87","port":"11","port_prefix":null,"port_range_from":null,"port_range_to":null},{"mac_address":"b0:90:7e:47:1c:14","port":"77","port_prefix":null,"port_range_from":null,"port_range_to":null}]},
    {"parent_identifier":"","identifier":"qrs","display_name":"world bldg","company_address":{"country":"United States","address_line1":"605 Walker Street","address_line2":"","city":"Lewisburg","state_code":"PA","zip":"17837"},"minimum_match_criteria":false,"public_ip":"111.82.0.0/16","private_ip":"111.29.0.0/16","network_switches":[{"mac_address":"00:a2:89:28:56:75","port":"22"}]},
    {"parent_identifier":"","identifier":"ttt","display_name":"swartz hall","company_address":{"country":"United States","address_line1":"616 Coleman Hall Drive","address_line2":"","city":"Lewisburg","state_code":"PA","zip":"17837"},"minimum_match_criteria":false,"public_ip":"199.82.0.0/16","private_ip":"10.29.0.0/16","network_switches":[{"mac_address":"00:a2:89:28:56:75","port":"22"}]}],
"site_id":"mysite_id"
}

```

**Error?**  
When I submit the update request I get two errors. The first error is expected, the MAC address is not unique. The second error is not expected, why is the network switch conflicting with itself? Also, If I check the results, the first location (hello) was not added even though it was a valid location.

```auto
{
    "code": 300,
    "message": "Validation Failed.",
    "errors": [
        {
            "index": 0,
            "message": "This port overlaps with a port in swartz hall of Main Site.",
            "field_name": "network_switches"
        },
        {
            "index": 1,
            "message": "This port overlaps with a port in world bldg of Main Site.",
            "field_name": "network_switches"
        }
    ]
}

```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [April 7, 2025, 9:58am UTC](https://devforum.zoom.us/t/batch-update-of-phone-locations-produces-unexpected-error/107130/2 "2025-04-07T09:58:40Z")

</div>

Closed on April 7, 2025, 9:58am UTC

This topic was automatically closed 368 days after the last reply. New replies are no longer allowed.
