# Bug in data returned from API create meeting endpoint

**URL:** <https://devforum.zoom.us/t/bug-in-data-returned-from-api-create-meeting-endpoint/44011>\
**Category:** API and Webhooks\
**Created:** [February 23, 2021, 4:04am UTC](https://devforum.zoom.us/t/bug-in-data-returned-from-api-create-meeting-endpoint/44011 "2021-02-23T04:04:29Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeffmezick](https://avatars.discourse-cdn.com/v4/letter/j/3ab097/32.png) [@jeffmezick](https://devforum.zoom.us/u/jeffmezick)\
**Post date:** [February 23, 2021, 4:04am UTC](https://devforum.zoom.us/t/bug-in-data-returned-from-api-create-meeting-endpoint/44011/1 "2021-02-23T04:04:29Z")

</div>

When creating a new meeting with the API, the data returned for the “start\_time” is not the start time submitted, but instead a duplicate of “created\_at”

```
[start_time] => 2021-02-23T03:58:42Z
[duration] => 60
[timezone] => America/New_York
[agenda] => 
[created_at] => 2021-02-23T03:58:42Z

```

I’m using an OAuth app type.

The API endpoint is [https://api.zoom.us/v2/users/me/meetings](https://api.zoom.us/v2/users/me/meetings)

---

<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:** [February 23, 2021, 3:50pm UTC](https://devforum.zoom.us/t/bug-in-data-returned-from-api-create-meeting-endpoint/44011/2 "2021-02-23T15:50:01Z")

</div>

Hi @jeffmezick,

Thanks for reaching out about this, and happy to help.

Can you share the full request body you’re passing that returns this response, including the start time exactly as you’ve formatted it? This will help to debug, as depending on what info you provide in the request body can affect the response.

Thanks!  
Will

---

<div class="post-metadata">

**Author:** ![jeffmezick](https://avatars.discourse-cdn.com/v4/letter/j/3ab097/32.png) [@jeffmezick](https://devforum.zoom.us/u/jeffmezick)\
**Post date:** [February 23, 2021, 7:40pm UTC](https://devforum.zoom.us/t/bug-in-data-returned-from-api-create-meeting-endpoint/44011/3 "2021-02-23T19:40:43Z")

</div>

Hi Will, thanks for replying.

I’m using cURL and here’s an example of the command which contains an example of the request body I’m sending:

curl -s -w “%{http\_code}” -X POST -H “Authorization: Bearer TOKEN” -H “Content-Type: application/json” -d ‘{“topic”: “Appointment with Customer Name”, “type”: 2, “start\_time”: “2021-02-23T19:00:00Z”, “duration”: 60, “agenda”: “LINK TO APPOINTMENT”, “settings”: { “registrants\_email\_notification”: false }}’ “[https://api.zoom.us/v2/users/me/meetings](https://api.zoom.us/v2/users/me/meetings)”

Did you already fix this? I just did another test thought and this time I didn’t get the duplicate “created at” time in the response:

```
[start_time] => 2021-02-25T20:00:00Z
[duration] => 60
[timezone] => America/New_York
[agenda] => 
[created_at] => 2021-02-23T19:35:25Z

```

Thanks again,  
-Jeff

---

<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:** [February 23, 2021, 11:14pm UTC](https://devforum.zoom.us/t/bug-in-data-returned-from-api-create-meeting-endpoint/44011/4 "2021-02-23T23:14:57Z")

</div>

Hey @jeffmezick,

Thank you for providing more information. I’m not aware of this being a known issue, there haven’t been any updates and I haven’t been able to reproduce this on my end. I’m thinking this was either related to a copy and paste error or perhaps an intermittent issue with the API itself. It’s difficult to be sure.

If you see this again, please respond to this topic as soon as you can and we’ll investigate this issue right away.

Thanks,  
Max

---

<div class="post-metadata">

**Author:** ![jeffmezick](https://avatars.discourse-cdn.com/v4/letter/j/3ab097/32.png) [@jeffmezick](https://devforum.zoom.us/u/jeffmezick)\
**Post date:** [February 24, 2021, 5:42am UTC](https://devforum.zoom.us/t/bug-in-data-returned-from-api-create-meeting-endpoint/44011/5 "2021-02-24T05:42:36Z")

</div>

Hey Max, I think I figured it out. You can duplicate this by trying to schedule a meeting through the API for some time in the past. My application allows users to schedule from a calendar view, and while testing I clicked on a date that has already passed. I guess this isn’t really a bug but it might be better to return an error, rather than to just schedule the meeting for the exact moment the API was called and still return a 201 success code. I was error checking by comparing the start\_time returned to what I sent, otherwise I would never have seen it.

Below is a json\_decoded array of the output (it’s easier to read), followed by the cURL I sent. The only edits I made were to remove the token and links.

Array  
(  
[uuid] =\>  
[id] =\>  
[host\_id] =\>  
[host\_email] =\>  
[topic] =\> Appointment with Jeff Was Here  
[type] =\> 2  
[status] =\> waiting  
[start\_time] =\> 2021-02-24T05:23:13Z  
[duration] =\> 60  
[timezone] =\> America/New\_York  
[agenda] =\> Some agenda stuff goes here.  
[created\_at] =\> 2021-02-24T05:23:13Z  
[start\_url] =\>  
[join\_url] =\>  
[password] =\>  
[h323\_password] =\>  
[pstn\_password] =\>  
[encrypted\_password] =\>  
[settings] =\> Array  
(  
[host\_video] =\>  
[participant\_video] =\>  
[cn\_meeting] =\>  
[in\_meeting] =\>  
[join\_before\_host] =\>  
[jbh\_time] =\> 0  
[mute\_upon\_entry] =\>  
[watermark] =\>  
[use\_pmi] =\>  
[approval\_type] =\> 2  
[audio] =\> voip  
[auto\_recording] =\> none  
[enforce\_login] =\>  
[enforce\_login\_domains] =\>  
[alternative\_hosts] =\>  
[close\_registration] =\>  
[show\_share\_button] =\>  
[allow\_multiple\_devices] =\>  
[registrants\_confirmation\_email] =\> 1  
[waiting\_room] =\> 1  
[request\_permission\_to\_unmute\_participants] =\>  
[registrants\_email\_notification] =\>  
[meeting\_authentication] =\>  
[encryption\_type] =\> enhanced\_encryption  
[approved\_or\_denied\_countries\_or\_regions] =\> Array  
(  
[enable] =\>  
)

```
        [breakout_room] => Array
            (
                [enable] => 
            )

    )

```

)

curl -s -w “%{http\_code}” -X POST -H “Authorization: Bearer TOKEN” -H “Content-Type: application/json” -d ’  
{  
“topic”: “Appointment with Jeff Was Here”,  
“type”: 2,  
“start\_time”: “2021-02-21T20:00:00Z”,  
“duration”: 60,  
“agenda”: “Some agenda stuff goes here.”,  
“settings”: {  
“registrants\_email\_notification”: false  
}  
}’ “[https://api.zoom.us/v2/users/me/meetings](https://api.zoom.us/v2/users/me/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:** [February 25, 2021, 6:52pm UTC](https://devforum.zoom.us/t/bug-in-data-returned-from-api-create-meeting-endpoint/44011/6 "2021-02-25T18:52:00Z")

</div>

Hey @jeffmezick,

Thanks for sharing your findings. 🙂

I can confirm that if you schedule a meeting with the start\_time being in the past, the start\_time will default to the current time. We will work on improving the error messaging around this.

-Tommy

---

<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:** [March 28, 2021, 4:52am UTC](https://devforum.zoom.us/t/bug-in-data-returned-from-api-create-meeting-endpoint/44011/7 "2021-03-28T04:52:35Z")

</div>

Closed on March 28, 2021, 4:52am UTC

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