Need help understanding an error when updating emergency service location

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

Description
I am attempting to troubleshoot an error that happens when attempting to update an existing emergency service location via the zoom API. I am calling

PATCH https://api.zoom.us/v2/phone/locations/:locationId

with body json

{
“bssid”:“D0:D3:E0:B0:23:C3”,“emergency_address_id”:“6Z27P_V_SI2tTe3G-ywlvw”,“name”:“7th St Café”,“private_ip”:“111.29.0.0/32”,“public_ip”:“111.82.0.0/32”,“minimum_match_criteria”:false,“network_switches”:[{“mac_address”:“q4:bd:9e:ff:21:00”,“port”:null,“port_prefix”:null,“port_range_from”:null,“port_range_to”:null}],“sip_group_id”:null,“elin_phone_number_id”:null
}

The only field that is actually changing is the emergency_address_id. If I run the request in postman I get an error saying that “Only the company address can be used for the company location.“ . I have verified that the value being passed for emergency_address_id points to an existing emergency address. All the required fields appear to be present in the body. What am I doing wrong?

Error?
{
“code”: 400,
“message”: “Only the company address can be used for the company location.”
}

Hi @ptb014 , when you call get emergency service location details can you verify you get the same exact details (aside from the new emergency_address_id) that you’re passing through to the update request?

Is the new emergency_address_id compatible with this update change? How is it generated? If you’re taking it from another location id, make sure you’re grabbing this value:

Looking at the data again, the bssid is also being updated. All of the other fields remain the same. However, even if I remove the bssid field from the incoming data, I still get the same error.

Hi @ptb014 please answer these questions.

I’m not quite sure what you mean by “compatible with this update change“. I have confirmed that the new emergency_address_id value corresponds with an id value for an existing emergency_address.