# API - Assign a phone number to a user - Wrong Outbound Caller ID set

**URL:** <https://devforum.zoom.us/t/api-assign-a-phone-number-to-a-user-wrong-outbound-caller-id-set/94628>\
**Category:** Phone\
**Created:** [September 7, 2023, 1:36pm UTC](https://devforum.zoom.us/t/api-assign-a-phone-number-to-a-user-wrong-outbound-caller-id-set/94628 "2023-09-07T13:36:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dennis.barth](https://avatars.discourse-cdn.com/v4/letter/d/ee7513/32.png) [@dennis.barth](https://devforum.zoom.us/u/dennis.barth)\
**Post date:** [September 7, 2023, 1:36pm UTC](https://devforum.zoom.us/t/api-assign-a-phone-number-to-a-user-wrong-outbound-caller-id-set/94628/1 "2023-09-07T13:36:57Z")

</div>

**API Endpoint(s) and/or Zoom API Event(s)**  
POST /phone/users/{userId}/phone\_numbers  
POST /phone/users/{userId}/outbound\_caller\_id/customized\_numbers

**Description**  
\*We are currently facing the same problem as found on the dev forum:  
Link to forum question: ["Assign a phone number to a user" Call & Outbound Caller ID](https://devforum.zoom.us/t/assign-a-phone-number-to-a-user-call-outbound-caller-id/40706) \*

_We were advised to use this API to resolve our issue: [Add phone numbers for users’ customized outbound caller ID](https://developers.zoom.us/docs/api/rest/reference/phone/methods/#operation/addUserOutboundCallerNumbers)_

_We are using both Okta and ServiceNow to add phone numbers to users. The primary numbers are synchronised from Okta and all further numbers directly from ServiceNow via REST._

_I have tried with my own user to change the outbound caller id (back) to my primary number but without success. I get a http 201 for the API request, but in my profile (see screenshot) the outbound caller id and the available numbers stay the same._

**Error?**  
_No error_

**How To Reproduce**  
_Initial situation: Zoom Phone Pro users with one primary phone number_  
_Steps to reproduce the behavior:_  
_1. User orders a second phone number_  
_2. Phone number is added to user_  
_3. Outbound caller id is set to newly added number_

**Expected behavior**  
_When an additional phone number is added to a user, then the outbound caller id should stay_

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [September 11, 2023, 2:39pm UTC](https://devforum.zoom.us/t/api-assign-a-phone-number-to-a-user-wrong-outbound-caller-id-set/94628/2 "2023-09-11T14:39:37Z")

</div>

Hi @dennis.barth  
Thanks for reaching out to us!  
I am not able to see the screenshot that you are referring to.  
Could you please share the entire request URL that you are sending along with the request body for that request that you are getting a 201 code so I can look into it

---

<div class="post-metadata">

**Author:** ![dennis.barth](https://avatars.discourse-cdn.com/v4/letter/d/ee7513/32.png) [@dennis.barth](https://devforum.zoom.us/u/dennis.barth)\
**Post date:** [September 11, 2023, 3:02pm UTC](https://devforum.zoom.us/t/api-assign-a-phone-number-to-a-user-wrong-outbound-caller-id-set/94628/3 "2023-09-11T15:02:05Z")

</div>

Hi @elisa.zoom

Here are the details. I have to check, how I can add the screenshot (does not allow media content).

- User ID QuWtKqLnRY-D0xvhmNdksQ
- Phone Numbers
  - +41 31 330 30 01 (primary) / ID i3Caxaz1S1-CMOyikgLuww

  - +41 31 330 30 02 / ID O\_65WrJeQM-8J1kXDr1kzw

  - +41 31 330 31 13 / ID WOCW4q4oSpK2UGbFt3FbuQ

- API Call
  - Endpoint : POST /phone/users/{userId}/outbound\_caller\_id/customized\_numbers

  - [https://tx-group.zoom.us/v2/phone/users/QuWtKqLnRY-D0xvhmNdksQ/outbound\_caller\_id/customized\_numbers](https://tx-group.zoom.us/v2/phone/users/QuWtKqLnRY-D0xvhmNdksQ/outbound_caller_id/customized_numbers)

  - body = {“phone\_number\_ids”:[“i3Caxaz1S1-CMOyikgLuww”]}

  - response: 201

  - last execution: 28 August 2023 17:01 CEST

Whenever I added another phone number via API, my outbound caller id was updated. With the payload above I could not define customized outbound caller id: +41 31 330 30 01 (primary)

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [September 20, 2023, 1:33pm UTC](https://devforum.zoom.us/t/api-assign-a-phone-number-to-a-user-wrong-outbound-caller-id-set/94628/4 "2023-09-20T13:33:55Z")

</div>

Hi @dennis.barth  
Sorry for the late reply here.  
I think I was able to replicate this on my end.  
So when I tried to call the endpoint  
POST /phone/users/{userId}/phone\_numbers, I kept getting errors, was not able to add phone numbers due to a validation error

But then I tried the second endpoint you are using  
POST /phone/users/{userId}/outbound\_caller\_id/customized\_numbers, and I got a 201 Ok status, but then I tried to query the endpoint  
GET /phone/users/{userId}/outbound\_caller\_id/customized\_numbers and my response is empty, so no changes were added.

I will go ahead and send you a private message so you can share with me more details and I will create an internal ticket for this matter.  
Thanks,  
Elisa
