# C# Adding registrants to a meeting returns OK (200)

**URL:** <https://devforum.zoom.us/t/c-adding-registrants-to-a-meeting-returns-ok-200/52171>\
**Category:** API and Webhooks\
**Created:** [June 10, 2021, 9:39am UTC](https://devforum.zoom.us/t/c-adding-registrants-to-a-meeting-returns-ok-200/52171 "2021-06-10T09:39:55Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![energytelia](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/energytelia/32/28113_2.png) [@energytelia](https://devforum.zoom.us/u/energytelia)\
**Post date:** [June 10, 2021, 9:39am UTC](https://devforum.zoom.us/t/c-adding-registrants-to-a-meeting-returns-ok-200/52171/1 "2021-06-10T09:39:55Z")

</div>

I create meetings on the Web (C#) with type=2 and approval\_type=0

Meetings are created well, but when i try to add registrants via: /meetings/{meetingId}/registrants

post returns OK (200), having empty contents

I have a PRO account in Zoom

my source code:

var client = new RestClient(“[https://api.zoom.us/v2/users/\*\*\*\*\*\*\*\*\*\*\*\*\*\*/meetings/](https://api.zoom.us/v2/users/ ************** /meetings/)”+ meetingID + “/registrants”);  
var request = new RestRequest(Method.POST);  
request.RequestFormat = DataFormat.Json;  
request.AddJsonBody(new { email = emailPerson, first\_name = namePerson, last\_name = namePerson });  
request.AddHeader(“authorization”, String.Format(“Bearer {0}”, tokenString));

```
        IRestResponse restResponse = client.Execute(request);
        HttpStatusCode statusCode = restResponse.StatusCode;
        int numericStatusCode = (int)statusCode;
        var jObject = JObject.Parse(restResponse.Content);

```

JObject is empty

any idea what my cause this behaviour??

---

<div class="post-metadata">

**Author:** ![energytelia](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/energytelia/32/28113_2.png) [@energytelia](https://devforum.zoom.us/u/energytelia)\
**Post date:** [June 10, 2021, 9:31pm UTC](https://devforum.zoom.us/t/c-adding-registrants-to-a-meeting-returns-ok-200/52171/2 "2021-06-10T21:31:01Z")

</div>

How do I have to setup parametersof a meeting via API in order to be able to add registrants via API later on the same meeting?

---

<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 11, 2021, 7:11pm UTC](https://devforum.zoom.us/t/c-adding-registrants-to-a-meeting-returns-ok-200/52171/3 "2021-06-11T19:11:57Z")

</div>

Hey @energytelia,

Thanks for reaching out about adding registrants to your meetings! To clarify, if successful, our Add Meeting Registrants endpoints should return a 201 response.

Here is an example request in C# — let me know if this helps:

```auto
var client = new RestClient("https://api.zoom.us/v2/meetings/{meetingId}/registrants");
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 \"email\":\"someone@example.com\",\n \"first_name\": \"Someone\",\n \"last_name\": \"Somewhere\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);

```

Thanks!  
Will

---

<div class="post-metadata">

**Author:** ![energytelia](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/energytelia/32/28113_2.png) [@energytelia](https://devforum.zoom.us/u/energytelia)\
**Post date:** [June 17, 2021, 5:36pm UTC](https://devforum.zoom.us/t/c-adding-registrants-to-a-meeting-returns-ok-200/52171/4 "2021-06-17T17:36:13Z")

</div>

thanks…your code worked…cheers…

---

<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 18, 2021, 3:05pm UTC](https://devforum.zoom.us/t/c-adding-registrants-to-a-meeting-returns-ok-200/52171/5 "2021-06-18T15:05:51Z")

</div>

Awesome, glad that helps! 🙂

---

<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 19, 2021, 1:06am UTC](https://devforum.zoom.us/t/c-adding-registrants-to-a-meeting-returns-ok-200/52171/6 "2021-07-19T01:06:36Z")

</div>

Closed on July 19, 2021, 1:06am UTC

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