# Error '400' on attempting to assign Calling plan to new phone user created with zoom API

**URL:** <https://devforum.zoom.us/t/error-400-on-attempting-to-assign-calling-plan-to-new-phone-user-created-with-zoom-api/105251>\
**Category:** Phone\
**Created:** [March 7, 2024, 7:27pm UTC](https://devforum.zoom.us/t/error-400-on-attempting-to-assign-calling-plan-to-new-phone-user-created-with-zoom-api/105251 "2024-03-07T19:27:18Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Co-hamster](https://avatars.discourse-cdn.com/v4/letter/c/d9b06d/32.png) [@Co-hamster](https://devforum.zoom.us/u/Co-hamster)\
**Post date:** [March 7, 2024, 7:27pm UTC](https://devforum.zoom.us/t/error-400-on-attempting-to-assign-calling-plan-to-new-phone-user-created-with-zoom-api/105251/1 "2024-03-07T19:27:18Z")

</div>

API endpoint: “[https://api.zoom.us/v2/phone/users/$UserId/calling\_plans](https://api.zoom.us/v2/phone/users/$UserId/calling_plans)”

**Description**  
At this point in my powershell script, I have already succeeded in creating the new zoom phone user using the API. I’ve also succeeded with enabling zoom one for the brand new user with your API as well. I’m now attempting to assign the calling plan to the user, that all my other users have ‘83200’ and it continually tells me what is in the error portion below:

**Error?**  
400 - “Can not assign zoom one plan”

**How To Reproduce**  
_Steps to reproduce the behavior:_  
I used the API to verify that the calling plan assigned to other users created by the GUI was 83200.  
So I made the below Headers and Body, and passed them as a POST request.

URL : API endpoint: “[https://api.zoom.us/v2/phone/users/$UserId/calling\_plans](https://api.zoom.us/v2/phone/users/$UserId/calling_plans)”  
$Headers = @{  
‘Content-Type’ = ‘application/json’  
Authorization = “Bearer $Token”  
}

```
 $body = @"
{
    "calling_plans": [
        {
            "type": 83200
        }
    ]
}

```

"@

The body above is formatted as a SPLAT, so it will be processed as if the @ symbols were not present, so ignore the @" symbols and you have valid Json.

Any assistance would be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![gianni.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gianni.zoom/32/32523_2.png) [@gianni.zoom](https://devforum.zoom.us/u/gianni.zoom)\
**Post date:** [March 7, 2024, 10:35pm UTC](https://devforum.zoom.us/t/error-400-on-attempting-to-assign-calling-plan-to-new-phone-user-created-with-zoom-api/105251/2 "2024-03-07T22:35:33Z")

</div>

Hi @Co-hamster ,

Sounds like a permission issue. Do you have the correct endpoint scopes applied to the access token you’re using to do the request? Does your designated role have the permissions as well?

- [Zoom Phone API](https://developers.zoom.us/docs/api/rest/reference/phone/methods/#operation/assignCallingPlan)
- [Using role management - Zoom Support](https://support.zoom.com/hc/en/article?id=zm_kb&sysparm_article=KB0064983)

---

<div class="post-metadata">

**Author:** ![Co-hamster](https://avatars.discourse-cdn.com/v4/letter/c/d9b06d/32.png) [@Co-hamster](https://devforum.zoom.us/u/Co-hamster)\
**Post date:** [March 12, 2024, 1:28pm UTC](https://devforum.zoom.us/t/error-400-on-attempting-to-assign-calling-plan-to-new-phone-user-created-with-zoom-api/105251/7 "2024-03-12T13:28:38Z")

</div>

Hello Gianni,

Thank you for replying.

I checked and validated the permissions associated, according to the link you have sent my way.  
I have confirmed that my application/token is properly scoped to phone:write:admin.  
Attached here will be the scopes that the application is currently assigned permissions for.

I don’t think that my designated role would have an effect, because we are using the server to server authentication method listed here : Server-to-Server OAuth  
However, I still checked and my account’s designated role within our tenant is Admin.

The scopes my application currently has include :  
/group:write:admin  
/user:write:admin  
/phone:write:admin

Do you have any additional ideas that may help?

---

<div class="post-metadata">

**Author:** ![gianni.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gianni.zoom/32/32523_2.png) [@gianni.zoom](https://devforum.zoom.us/u/gianni.zoom)\
**Post date:** [March 13, 2024, 2:36am UTC](https://devforum.zoom.us/t/error-400-on-attempting-to-assign-calling-plan-to-new-phone-user-created-with-zoom-api/105251/8 "2024-03-13T02:36:37Z")

</div>

Hi @Co-hamster , upon reviewing your error, can you confirm your assigning the [right type of plan](https://developers.zoom.us/docs/api/rest/other-references/plans/#zoom-phone-plans) available to you? It seems like Zoom One does not apply for phone.

---

<div class="post-metadata">

**Author:** ![Co-hamster](https://avatars.discourse-cdn.com/v4/letter/c/d9b06d/32.png) [@Co-hamster](https://devforum.zoom.us/u/Co-hamster)\
**Post date:** [March 13, 2024, 2:42pm UTC](https://devforum.zoom.us/t/error-400-on-attempting-to-assign-calling-plan-to-new-phone-user-created-with-zoom-api/105251/9 "2024-03-13T14:42:54Z")

</div>

Hi @gianni.zoom ,

Yes I can confirm I am assigning the right type of plan.

I used an API request to get an existing user’s calling plan ‘type’ and plan ‘name’  
The results of this were type: 83200 with the plan name of : Zoom one business plus with US/CA unlimited.

Taking that information of the type, I plugged it into the code to assign the calling plan above, made the API request, and then that is how I ended up with the error ‘400’ that began the forum post

---

<div class="post-metadata">

**Author:** ![gianni.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gianni.zoom/32/32523_2.png) [@gianni.zoom](https://devforum.zoom.us/u/gianni.zoom)\
**Post date:** [March 14, 2024, 5:14am UTC](https://devforum.zoom.us/t/error-400-on-attempting-to-assign-calling-plan-to-new-phone-user-created-with-zoom-api/105251/10 "2024-03-14T05:14:37Z")

</div>

> [@Co-hamster](#):
>
> I used an API request to get an existing user’s calling plan ‘type’ and plan ‘name’  
> The results of this were type: 83200 with the plan name of : Zoom one business plus with US/CA unlimited.

@Co-hamster can you please share that request response here? (remove sensitive data)

I want to verify internally.

---

<div class="post-metadata">

**Author:** ![Co-hamster](https://avatars.discourse-cdn.com/v4/letter/c/d9b06d/32.png) [@Co-hamster](https://devforum.zoom.us/u/Co-hamster)\
**Post date:** [March 14, 2024, 1:59pm UTC](https://devforum.zoom.us/t/error-400-on-attempting-to-assign-calling-plan-to-new-phone-user-created-with-zoom-api/105251/11 "2024-03-14T13:59:37Z")

</div>

@gianni.zoom  
This is part of the response I receive when executing a GET request against the uri:  
[https://api.zoom.us/v2/phone/users/$userID](https://api.zoom.us/v2/phone/users/$userID) (userID being the ID of the user that I setup with the GUI).

It returns information successfully such as their phone\_user\_id, extension\_id, status, etc.  
Here in the calling\_plans portion, we have listed type 83200, with the name set to Zoom One Business Plus with US/CA Unlimited.

So I used that info, to try to set this calling plan to my new user I created via the API, and that’s how I get the error ‘400’ each time, and how I’ve came to this period of being stuck

---

<div class="post-metadata">

**Author:** ![Co-hamster](https://avatars.discourse-cdn.com/v4/letter/c/d9b06d/32.png) [@Co-hamster](https://devforum.zoom.us/u/Co-hamster)\
**Post date:** [March 14, 2024, 2:01pm UTC](https://devforum.zoom.us/t/error-400-on-attempting-to-assign-calling-plan-to-new-phone-user-created-with-zoom-api/105251/12 "2024-03-14T14:01:58Z")

</div>

I tried copying a screenshot, and uploading it here but the page advises we are not allowed to upload media into zoom chat.  
Is there another way I can get this to you?

---

<div class="post-metadata">

**Author:** ![gianni.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gianni.zoom/32/32523_2.png) [@gianni.zoom](https://devforum.zoom.us/u/gianni.zoom)\
**Post date:** [March 14, 2024, 2:47pm UTC](https://devforum.zoom.us/t/error-400-on-attempting-to-assign-calling-plan-to-new-phone-user-created-with-zoom-api/105251/13 "2024-03-14T14:47:05Z")

</div>

@Co-hamster just private messaged you!

---

<div class="post-metadata">

**Author:** ![Co-hamster](https://avatars.discourse-cdn.com/v4/letter/c/d9b06d/32.png) [@Co-hamster](https://devforum.zoom.us/u/Co-hamster)\
**Post date:** [March 14, 2024, 6:20pm UTC](https://devforum.zoom.us/t/error-400-on-attempting-to-assign-calling-plan-to-new-phone-user-created-with-zoom-api/105251/14 "2024-03-14T18:20:01Z")

</div>

@gianni.zoom Got it and received, just sent the reply back.

---

<div class="post-metadata">

**Author:** ![Co-hamster](https://avatars.discourse-cdn.com/v4/letter/c/d9b06d/32.png) [@Co-hamster](https://devforum.zoom.us/u/Co-hamster)\
**Post date:** [March 19, 2024, 1:35pm UTC](https://devforum.zoom.us/t/error-400-on-attempting-to-assign-calling-plan-to-new-phone-user-created-with-zoom-api/105251/15 "2024-03-19T13:35:19Z")

</div>

@gianni.zoom  
Hi Gianni, I wanted to follow up :  
Have you had the opportunity to check out the message I sent?

---

<div class="post-metadata">

**Author:** ![gianni.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gianni.zoom/32/32523_2.png) [@gianni.zoom](https://devforum.zoom.us/u/gianni.zoom)\
**Post date:** [March 19, 2024, 3:59pm UTC](https://devforum.zoom.us/t/error-400-on-attempting-to-assign-calling-plan-to-new-phone-user-created-with-zoom-api/105251/16 "2024-03-19T15:59:04Z")

</div>

Hi @Co-hamster ,

Thanks for sending and appreciate your patience as we navigate a high number of requests. I will investigate today.

---

<div class="post-metadata">

**Author:** ![Co-hamster](https://avatars.discourse-cdn.com/v4/letter/c/d9b06d/32.png) [@Co-hamster](https://devforum.zoom.us/u/Co-hamster)\
**Post date:** [March 19, 2024, 4:04pm UTC](https://devforum.zoom.us/t/error-400-on-attempting-to-assign-calling-plan-to-new-phone-user-created-with-zoom-api/105251/17 "2024-03-19T16:04:52Z")

</div>

@gianni.zoom Perfect, thank you.  
I’ll extend the duration of the link I sent in the private message so you may grab the SS

---

<div class="post-metadata">

**Author:** ![Co-hamster](https://avatars.discourse-cdn.com/v4/letter/c/d9b06d/32.png) [@Co-hamster](https://devforum.zoom.us/u/Co-hamster)\
**Post date:** [March 21, 2024, 2:33pm UTC](https://devforum.zoom.us/t/error-400-on-attempting-to-assign-calling-plan-to-new-phone-user-created-with-zoom-api/105251/18 "2024-03-21T14:33:43Z")

</div>

@gianni.zoom  
Hi Gianni,

I wanted to follow up and make sure this issue was not lost in the abyss of life.

Thank you 🙂

---

<div class="post-metadata">

**Author:** ![gianni.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gianni.zoom/32/32523_2.png) [@gianni.zoom](https://devforum.zoom.us/u/gianni.zoom)\
**Post date:** [March 21, 2024, 9:41pm UTC](https://devforum.zoom.us/t/error-400-on-attempting-to-assign-calling-plan-to-new-phone-user-created-with-zoom-api/105251/19 "2024-03-21T21:41:38Z")

</div>

Hi @Co-hamster ,

Can you please confirm that you have [enough license capacity](https://support.zoom.com/hc/en/article?id=zm_kb&sysparm_article=KB0061431) to add phone to that user?

---

<div class="post-metadata">

**Author:** ![Co-hamster](https://avatars.discourse-cdn.com/v4/letter/c/d9b06d/32.png) [@Co-hamster](https://devforum.zoom.us/u/Co-hamster)\
**Post date:** [March 22, 2024, 12:16pm UTC](https://devforum.zoom.us/t/error-400-on-attempting-to-assign-calling-plan-to-new-phone-user-created-with-zoom-api/105251/20 "2024-03-22T12:16:59Z")

</div>

@gianni.zoom  
Yes, I have 6 additional licenses available.

---

<div class="post-metadata">

**Author:** ![gianni.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gianni.zoom/32/32523_2.png) [@gianni.zoom](https://devforum.zoom.us/u/gianni.zoom)\
**Post date:** [March 22, 2024, 3:26pm UTC](https://devforum.zoom.us/t/error-400-on-attempting-to-assign-calling-plan-to-new-phone-user-created-with-zoom-api/105251/21 "2024-03-22T15:26:21Z")

</div>

Hi @Co-hamster ,

Thank you for confirming! I’ve taking this to support (ticket # TS0882775). You should see an email confirmation to the office\*\*\* email address. I was not able to add the other other email since it’s not directly associated with the app. Please check that email to work with support as they investigate the root cause. I have already shared your info, this dev forum post, and everything I’ve checked in advance.

If you have any issues, let me know and I’ll follow up internally.

When the solution is found, please share it here 🙂

---

<div class="post-metadata">

**Author:** ![Co-hamster](https://avatars.discourse-cdn.com/v4/letter/c/d9b06d/32.png) [@Co-hamster](https://devforum.zoom.us/u/Co-hamster)\
**Post date:** [March 27, 2024, 2:26pm UTC](https://devforum.zoom.us/t/error-400-on-attempting-to-assign-calling-plan-to-new-phone-user-created-with-zoom-api/105251/22 "2024-03-27T14:26:21Z")

</div>

@gianni.zoom  
Hi Gianni,  
I attempted to use the #TS0882775 link today to check on the status of the zoom support case, and noted that it is constantly redirecting me to the default zoom support screen.  
Would you please check to see if my case was closed before work was performed a solution was verified, or if I am accessing the case incorrectly, would you please provide a method in which I can access the case?  
Thank you

---

<div class="post-metadata">

**Author:** ![gianni.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gianni.zoom/32/32523_2.png) [@gianni.zoom](https://devforum.zoom.us/u/gianni.zoom)\
**Post date:** [March 27, 2024, 4:24pm UTC](https://devforum.zoom.us/t/error-400-on-attempting-to-assign-calling-plan-to-new-phone-user-created-with-zoom-api/105251/23 "2024-03-27T16:24:22Z")

</div>

Hi @Co-hamster , is this in the email you received about the case?

---

<div class="post-metadata">

**Author:** ![Co-hamster](https://avatars.discourse-cdn.com/v4/letter/c/d9b06d/32.png) [@Co-hamster](https://devforum.zoom.us/u/Co-hamster)\
**Post date:** [March 27, 2024, 4:31pm UTC](https://devforum.zoom.us/t/error-400-on-attempting-to-assign-calling-plan-to-new-phone-user-created-with-zoom-api/105251/24 "2024-03-27T16:31:44Z")

</div>

@gianni.zoom  
Yes, the link I was using was in the email I received about the case.

[Next page](https://devforum.zoom.us/t/error-400-on-attempting-to-assign-calling-plan-to-new-phone-user-created-with-zoom-api/105251.md?page=2)
