I am trying to create my first location by making a POST request to https://api.zoom.us/v2/rooms/locations.
When I make my HTTP request, the Zoom API seems to mandate that I provide a value in the parent_location_id field. This makes perfect sense when you are creating a floor inside a building, creating a building in a city, creating a city in a province, etc. However, it doesn’t make (to me anyway) when you are creating the top level location (say, a country for example). In this scenario, there is no “parent”. The location you are trying to create is the top-most location in the hierarchy.
I have tried specifying a null value, an empty string and I have also tried omitting the parent_location_id field in my HTTP request like so:
First attempt: {"name":"Country 1","parent_location_id":null}
Secont attempt: {"name":"Country 1","parent_location_id":""}
Third attempt: {"name":"Country 1"}
but the API rejects my three attempts and returns the following error message:
{"code":300,"message":"Validation Failed.","errors":[{"field":"parent_location_id","message":"Missing field."}]}
I have tried specifying a bogus parent Id, like so: {"name":"Country 1","parent_location_id":"BOGUS-ID"}
but it gets rejected because the ID i specified is not valid: {"code":4801,"message":"Location does not exist: BOGUS-ID."}.
So I’m at a loss. I don’t know how to create my first location.