# C# example to add assistants using Add Assistant API

**URL:** <https://devforum.zoom.us/t/c-example-to-add-assistants-using-add-assistant-api/52991>\
**Category:** API and Webhooks\
**Created:** [June 23, 2021, 10:22am UTC](https://devforum.zoom.us/t/c-example-to-add-assistants-using-add-assistant-api/52991 "2021-06-23T10:22:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rreid](https://avatars.discourse-cdn.com/v4/letter/r/3d9bf3/32.png) [@rreid](https://devforum.zoom.us/u/rreid)\
**Post date:** [June 23, 2021, 10:22am UTC](https://devforum.zoom.us/t/c-example-to-add-assistants-using-add-assistant-api/52991/1 "2021-06-23T10:22:02Z")

</div>

We need to have team members who have a Zoom accounts become Assistants to all other staff within our Enterprise Zoom Account.

The purpose of this, is so those individuals who inherit being assistants can schedule meetings for those who they were assigned (and have it appear as if the person they were assigned scheduled the meeting themselves).

Our plan is to assign the assistants programmatically using Zoom API’s and C#

Ideally we want to feed the program a list of team members that require assistants (emp\_ids) and the team member’s id that will be the assistant. We will maintain the list as required and run the program on a schedule.

We are aware of the documentation for an API to make a user an assistant

I’d be interested in seeing a C# example for any of these api’s

Thanks,  
Ray

---

<div class="post-metadata">

**Author:** ![will.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/will.zoom/32/14417_2.png) [@will.zoom](https://devforum.zoom.us/u/will.zoom)\
**Post date:** [June 24, 2021, 3:03pm UTC](https://devforum.zoom.us/t/c-example-to-add-assistants-using-add-assistant-api/52991/2 "2021-06-24T15:03:44Z")

</div>

Hi Ray,

Thanks for reaching out about this, and happy to share an example.

If you wish to leverage our [Add Assistants API](https://marketplace.zoom.us/docs/api-reference/zoom-api/users/userassistantcreate), this can certainly be accomplished in C#. Here is an example you might find helpful:

```auto
var client = new RestClient("https://api.zoom.us/v2/users/{userId}/assistants");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
request.AddHeader("Authorization", "Bearer {token}");
request.AddParameter("application/json", "{\n \"assistants\": [\n {\n \"id\": \"{userId}\",\n \"email\": \"{email}\"\n }\n]\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

```

Let me know if this helps!  
Will

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [July 25, 2021, 1:03am UTC](https://devforum.zoom.us/t/c-example-to-add-assistants-using-add-assistant-api/52991/3 "2021-07-25T01:03:54Z")

</div>

Closed on July 25, 2021, 1:03am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
