cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
480
Views
0
Helpful
2
Replies

Webex API - Can't modify a primary number of a person

Lirit Sagie
Level 1
Level 1

Webex API - Can't modify a primary number of a person

 
Hi, I'm using the 'PUT   /v1/telephony/config/people/{personId}/numbers' API and I tried to modify the primary number.
https://developer.webex.com/docs/api/v1/user-call-settings/assign-or-unassign-numbers-to-a-person
 
I got an error message "Primary number cannot be edited using this API.".
The 'Primary' is part of the request body and it used to work a few months ago.

Is there another way to update the primary number of a person using an API?
 
Thank you,
Lirit
1 Accepted Solution

Janos Benyovszki
Cisco Employee
Cisco Employee

@Lirit Sagie as the documentation on https://developer.webex.com/docs/api/v1/user-call-settings/assign-or-unassign-numbers-to-a-person suggests: 

Assign or unassign alternate phone numbers to a person.

This is why it's not working with a Primary phone number. For that you can try https://developer.webex.com/docs/api/v1/people/update-a-person . Note, that as written in the reference docs:

Phone numbers for the person. Can only be set for Webex Calling. Needs a Webex Calling license.

 

View solution in original post

2 Replies 2

Janos Benyovszki
Cisco Employee
Cisco Employee

@Lirit Sagie as the documentation on https://developer.webex.com/docs/api/v1/user-call-settings/assign-or-unassign-numbers-to-a-person suggests: 

Assign or unassign alternate phone numbers to a person.

This is why it's not working with a Primary phone number. For that you can try https://developer.webex.com/docs/api/v1/people/update-a-person . Note, that as written in the reference docs:

Phone numbers for the person. Can only be set for Webex Calling. Needs a Webex Calling license.

 

Thank you. I will use update person API for that