# Zoom API creates meeting with wrong start\_date, topic, agenda, and missing alternative hosts

**URL:** <https://devforum.zoom.us/t/zoom-api-creates-meeting-with-wrong-start-date-topic-agenda-and-missing-alternative-hosts/10385>\
**Category:** API and Webhooks\
**Created:** [March 31, 2020, 9:16pm UTC](https://devforum.zoom.us/t/zoom-api-creates-meeting-with-wrong-start-date-topic-agenda-and-missing-alternative-hosts/10385 "2020-03-31T21:16:28Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![syed.alli](https://avatars.discourse-cdn.com/v4/letter/s/f17d59/32.png) [@syed.alli](https://devforum.zoom.us/u/syed.alli)\
**Post date:** [March 31, 2020, 9:16pm UTC](https://devforum.zoom.us/t/zoom-api-creates-meeting-with-wrong-start-date-topic-agenda-and-missing-alternative-hosts/10385/1 "2020-03-31T21:16:28Z")

</div>

I am trying to create a meeting using the API through JWT and meetings API. My JSON body is below. The zoom API creates the meeting however the date, topic, agenda and alternative hosts are wrong. Any idea what I am doing wrong?

JSON:

{  
“topic”: “meeting from api”,  
“type”: “2”,  
“start\_time”: “2020-04-01T08:00:00Z”,  
“duration”: 20,  
“timezone”: “UTC”,  
“agenda”: “OHMeeting”,  
“recurrence”: {

```
},
"settings": {
	"alternative_hosts": "removed for privacy, but a valid email address in zoom",
	"enforce_login": "false"
}

```

}

Response:

“uuid”: “WdjgH09nREm1Xlj0sze2UQ==”,  
“id”: 821145991,  
“host\_id”: “izGvUMEIQxKIi0nFJx4TXQ”,  
“topic”: “Zoom Meeting”,  
“type”: 2,  
“status”: “waiting”,  
“start\_time”: “2020-03-31T21:05:25Z”,  
“duration”: 60,  
“timezone”: “America/New\_York”,  
“created\_at”: “2020-03-31T21:05:25Z”,  
“start\_url”: “removing for privacy”,  
“join\_url”: “removing for privacy”,  
“settings”: {  
“host\_video”: false,  
“participant\_video”: false,  
“cn\_meeting”: false,  
“in\_meeting”: false,  
“join\_before\_host”: true,  
“mute\_upon\_entry”: false,  
“watermark”: false,…

**Which App Type (OAuth / Chatbot / JWT / Webhook)?**  
JWT  
[https://api.zoom.us/v2/meetings/](https://api.zoom.us/v2/meetings/)

**Which Endpoint/s?**  
[https://api.zoom.us/v2/meetings/](https://api.zoom.us/v2/meetings/)

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [April 1, 2020, 7:30am UTC](https://devforum.zoom.us/t/zoom-api-creates-meeting-with-wrong-start-date-topic-agenda-and-missing-alternative-hosts/10385/2 "2020-04-01T07:30:16Z")

</div>

Hey @syed.alli,

That is odd. Can you try the following request body to see if it works?

```json
{
  "topic": "meeting from api",
  "type": 2,
  "start_time": "2020-04-01T08:00:00Z",
  "duration": 20,
  "agenda": "OHMeeting",
  "settings": {
    "alternative_hosts": "email@domain.com",
    "enforce_login": false
  }
}

```

 ![Screen Shot 2020-04-01 at 1.29.55 AM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/1/15ebf694ce755762a4469b00c47712aee7317476.png)

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![syed.alli](https://avatars.discourse-cdn.com/v4/letter/s/f17d59/32.png) [@syed.alli](https://devforum.zoom.us/u/syed.alli)\
**Post date:** [April 1, 2020, 12:48pm UTC](https://devforum.zoom.us/t/zoom-api-creates-meeting-with-wrong-start-date-topic-agenda-and-missing-alternative-hosts/10385/3 "2020-04-01T12:48:38Z")

</div>

Thanks @tommy. I figured it out. I was using RestSharp in C# and I was passing a blank object. Leaving it out here just in case some one else runs into this silly mistake.

```
  var newMeeting = new ZoomMeeting()
        {
            Topic = "meeting from api",
            Meeting_Type = "2",
            Start_Time = startTimeLocal,
            Duration = 20,
            Timezone = "America/New_York",
            Agenda = "OH Meeting",
            Settings = new Dictionary<string, object>()
            {
                {
                    "alternative_hosts", "removed"
                },
                {
                    "enforce_login", "false"
                }
            }

        };

```

**Wrong**  
request.AddJsonBody(newMeeting);

**Correct**  
var json = JsonConvert.SerializeObject(newMeeting);  
request.AddJsonBody(json);

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [April 1, 2020, 9:12pm UTC](https://devforum.zoom.us/t/zoom-api-creates-meeting-with-wrong-start-date-topic-agenda-and-missing-alternative-hosts/10385/4 "2020-04-01T21:12:40Z")

</div>

Happy to hear you figured it out!

Thanks for posting the solution!

-Tommy

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 7:41pm UTC](https://devforum.zoom.us/t/zoom-api-creates-meeting-with-wrong-start-date-topic-agenda-and-missing-alternative-hosts/10385/5 "2020-08-21T19:41:32Z")

</div>

Closed on August 21, 2020, 7:41pm UTC


