cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
349
Views
0
Helpful
5
Replies

Webex API - Can't remove a phone number/extension from a Workspace

Lirit Sagie
Level 1
Level 1
I'm trying to use 'PUT /v1/workspaces/{workspaceId}' for updating a workspace.
https://developer.webex.com/docs/api/v1/workspaces/update-a-workspace
 
I don't find a way to remove the extension or the phone number from a workspace. I tried to send an empty value in the phoneNumber field inside the calling object, to send a null, to omit it from the call and  the original value was kept.
 
It is possible to perform the same operation from the Webex Control Hub UI.
 
Is there another way to remove the phone number from the workspace using an API?
 
Thank you,
Lirit
5 Replies 5

Janos Benyovszki
Cisco Employee
Cisco Employee

@Lirit Sagie @h okay, I see. In that case, would you mind sending us the full JSON from https://developer.webex.com/docs/api/v1/workspaces/get-workspace-details and the full JSON you are using for https://developer.webex.com/docs/api/v1/workspaces/update-a-workspace ? We will look further into it and if needed check with engineering. Thanks

Janos Benyovszki
Cisco Employee
Cisco Employee

@Lirit Sagie have you tried setting it to none as the docs suggest?

@Janos Benyovszki What do you mean by setting it to none? I still want the Workspace to be Webex Calling, just without a phone number.
When I sending it with the below body, the extension is updated but the phone number remains as it was.
{
    "type": "webexCalling",
    "webexCalling": {
          "phoneNumber":null,
          "extension":"458012",
          "locationId":...
     }
}

Janos Benyovszki
Cisco Employee
Cisco Employee

@Lirit Sagie please check if the docs' https://developer.webex.com/docs/api/v1/workspaces/update-a-workspace  recommendations apply to your case:

  • Updating the calling parameter is only supported if the existing calling type is freeCalling, none, thirdPartySipCalling or webexCalling.

  •  

    Updating the calling parameter to none, thirdPartySipCalling or webexCalling is not supported if the workspace contains any devices.

If the above is not an issue, you can try setting the calling to none .

Thank you for your reply.
My workspace is webexCalling.
The API in general works for me, I'm able to update the calling parameter and change the phoneNumber and/or the extension by another number using the API but I failed to remove one of them (to set it to empty).