C# example to add assistants using Add Assistant API

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

Hi Ray,

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

If you wish to leverage our Add Assistants API, this can certainly be accomplished in C#. Here is an example you might find helpful:

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

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