Skip to main content
The First Step
April 6, 2023
Question

EXT-262 Home country selection

I am trying to assign a home country for an unassigned extension in the 929 area code with the following API call

$r = $platform->put("/restapi/v1.0/account/~/extension/240641070", array('regionalSettings' => array('homeCountry' => array ('id' => 1))));

but I am getting the error (even though 929 is in the US = Queens NY)

EXT-262

Home country selection is limited to countries which user`s phone numbers belong to.


4 replies

PhongVu
Community Manager
Community Manager
April 6, 2023

That's weird. The id is a string, can you change the number 1 to "1" and try again.

The First Step
April 10, 2023

same error with "1" or '1'.. It only happens with the 929 area code... all other area codes I have location at are working fine. I think it might be something with this particular area code

PhongVu
Community Manager
Community Manager
April 10, 2023

Not really. I just test with a user who has phone number in 929 area code and it works well. Can you call the API and print out the rcrequestId and the error code. I need to report this so the platform team can investigate. Thanks

The First Step
April 18, 2023

as you can see the extension 240637070 belongs to the 929 area code1681842167291.png

but the code

$r = $platform->put("/restapi/v1.0/account/~/extension/240637070", array('regionalSettings' => array('homeCountry' => array ('id' => '1'))));

produces this error:

1681842253526.png