# Setting Assistants via API returns success but does not work

**URL:** <https://devforum.zoom.us/t/setting-assistants-via-api-returns-success-but-does-not-work/52520>\
**Category:** API and Webhooks\
**Created:** [June 15, 2021, 8:41pm UTC](https://devforum.zoom.us/t/setting-assistants-via-api-returns-success-but-does-not-work/52520 "2021-06-15T20:41:22Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![gmcook](https://avatars.discourse-cdn.com/v4/letter/g/46a35a/32.png) [@gmcook](https://devforum.zoom.us/u/gmcook)\
**Post date:** [June 15, 2021, 8:41pm UTC](https://devforum.zoom.us/t/setting-assistants-via-api-returns-success-but-does-not-work/52520/1 "2021-06-15T20:41:22Z")

</div>

**Description**  
I am attempting to pull scheduling privileges/assistants for a group of users through the API, and then later set those same assistants to the users after they move sub accounts. The pulling current assistants work, but setting assistants for a user does not seem to work. It gives a success but the response has blank IDs when it lists the users that have been set as assistants. I am using this doc as a template: [https://marketplace.zoom.us/docs/api-reference/zoom-api/users/userassistantcreate](https://marketplace.zoom.us/docs/api-reference/zoom-api/users/userassistantcreate)

**Error**  
the POST request to set assistants for a given user comes back successful, but doesn’t actually seem to function and lists blank IDs for the assistants added.

**Which App Type (OAuth / Chatbot / JWT / Webhook)?**  
Oauth

**Which Endpoint/s?**

# /users/{userId}/assistants

**How To Reproduce (If applicable)**  
Steps to reproduce the behavior:

I am using the ZoomAPIWrapper you can find here, i’ve pasted the relevant snipper of code with some variables not filled in- [GitHub - skwirrel/ZoomAPIWrapper: A simple PHP wrapper for calling the Zoom V2 API's](https://github.com/skwirrel/ZoomAPIWrapper)

$zoom = new ZoomAPIWrapper( $apiKey, $apiSecret );  
$userToUpdate = exampleuser  
$assistants = array(  
“email” =\> “example@email”,  
);

$response = $zoom-\>doRequest(‘POST’,‘/users/{userId}/assistants’,array(),array(‘userId’=\>$userToUpdate), $assistants);

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [June 17, 2021, 12:57am UTC](https://devforum.zoom.us/t/setting-assistants-via-api-returns-success-but-does-not-work/52520/2 "2021-06-17T00:57:02Z")

</div>

Hey @gmcook,

Thank you for reaching out to the Zoom Developer Forum. Do you see this same issue when testing with a REST client like Postman?

Thanks,  
Max

---

<div class="post-metadata">

**Author:** ![gmcook](https://avatars.discourse-cdn.com/v4/letter/g/46a35a/32.png) [@gmcook](https://devforum.zoom.us/u/gmcook)\
**Post date:** [June 18, 2021, 1:25pm UTC](https://devforum.zoom.us/t/setting-assistants-via-api-returns-success-but-does-not-work/52520/3 "2021-06-18T13:25:57Z")

</div>

Hi Max,

this actually might have been an issue with the APIWrapper I was using, we got the call working with a straightforward call in Python - this issue is resolved.

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [June 21, 2021, 8:18pm UTC](https://devforum.zoom.us/t/setting-assistants-via-api-returns-success-but-does-not-work/52520/4 "2021-06-21T20:18:57Z")

</div>

Hey @gmcook,

Great, I’m glad that helped! I’ll go ahead and close this topic now but feel free to open a new topic if you encounter any further issues or questions.

Thanks,  
Max

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [June 21, 2021, 8:19pm UTC](https://devforum.zoom.us/t/setting-assistants-via-api-returns-success-but-does-not-work/52520/5 "2021-06-21T20:19:08Z")

</div>

Closed on June 21, 2021, 8:19pm UTC


