# API creates meeting that starts on the wrong day

**URL:** <https://devforum.zoom.us/t/api-creates-meeting-that-starts-on-the-wrong-day/61397>\
**Category:** API and Webhooks\
**Created:** [December 13, 2021, 5:30pm UTC](https://devforum.zoom.us/t/api-creates-meeting-that-starts-on-the-wrong-day/61397 "2021-12-13T17:30:27Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hakkarainen](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/hakkarainen/32/15296_2.png) [@Hakkarainen](https://devforum.zoom.us/u/Hakkarainen)\
**Post date:** [December 13, 2021, 5:30pm UTC](https://devforum.zoom.us/t/api-creates-meeting-that-starts-on-the-wrong-day/61397/1 "2021-12-13T17:30:27Z")

</div>

## Using this template helps us debug your issues more effectively 🙂

**Description**  
Using curl to send a json payload to create a recurring meeting, I’m getting an unexpected result. In the following case, the meeting starts on February 7, even though I specify February 1 as the start date.

**Which App Type (OAuth / Chatbot / JWT / Webhook)?**  
JWT

**Which Endpoint/s?**  
Knowing the API endpoint/s can help us to identify your issue faster. Please link the ones you need help/have a question with.

**How To Reproduce (If applicable)**  
Steps to reproduce the behavior:  
Here’s payload.json file

```auto
{
  "host_id": "myHostID",
  "topic": "Topict",
  "agenda": "Agenda",
  "password": "password",
  "type": 8,
  "status": "waiting",
  "duration": 90,
  "start_time": "2022-02-01T15:00:00",
  "recurrence": {
    "repeat_interval": 1,
    "type": 2,
    "weekly_days": 2,
    "end_times": 5
  },
  "settings": {
    "join_before_host": true,
    "jbh_time": 15,
    "end_time": 5,
    "approval_type": 2,
    "auto_recording": "cloud",
    "alternative_hosts": "",
    "global_dial_in_countries": [
      "US"
    ]
  },
  "tracking_fields": [
    {
      "field": "Meeting type",
      "value": "Course",
      "visible": true
    }
  ]
}

```

Here’s the curl command:

```auto
curl -v --request POST 'https://api.zoom.us/v2/users/myHostID/meetings' \
      --header 'content-type: application/json' -d "@payload.json" \
      --header 'Authorization: Bearer '"myAuthorization"

```

The result is this:

```auto
  "occurrences": [
    {
      "occurrence_id": "1644264000000",
      "start_time": "2022-02-07T20:00:00Z",
      "duration": 90,
      "status": "available"
    },
    {
      "occurrence_id": "1644868800000",
      "start_time": "2022-02-14T20:00:00Z",
      "duration": 90,
      "status": "available"
    },
    {
      "occurrence_id": "1645473600000",
      "start_time": "2022-02-21T20:00:00Z",
      "duration": 90,
      "status": "available"
    },
    {
      "occurrence_id": "1646078400000",
      "start_time": "2022-02-28T20:00:00Z",
      "duration": 90,
      "status": "available"
    },
    {
      "occurrence_id": "1646683200000",
      "start_time": "2022-03-07T20:00:00Z",
      "duration": 90,
      "status": "available"
    }
  ]

```

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [December 13, 2021, 10:22pm UTC](https://devforum.zoom.us/t/api-creates-meeting-that-starts-on-the-wrong-day/61397/2 "2021-12-13T22:22:09Z")

</div>

Hi @hakkarainen

Thank you for reaching out to the Zoom Developer Forum, I am happy to help here!  
I did some testing on my end and I believe this is happening because February 1st is a Tuesday and in your recurrence object you are setting “weekly\_days” : 2 (Monday)  
So it is actually correct, it is creating the recurrent meeting starting on Monday February 7 and its skipping the 1st because it is actually a Tuesday.

Hope this helps!  
Best  
Elisa

---

<div class="post-metadata">

**Author:** ![Hakkarainen](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/hakkarainen/32/15296_2.png) [@Hakkarainen](https://devforum.zoom.us/u/Hakkarainen)\
**Post date:** [December 13, 2021, 10:40pm UTC](https://devforum.zoom.us/t/api-creates-meeting-that-starts-on-the-wrong-day/61397/3 "2021-12-13T22:40:28Z")

</div>

Aha. Thank you. I kept thinking that the week started on Monday. I used `date --date '2021-12-20 10:00AM' +%u` to get the day of the week, but that command uses Monday as the start of the week.  
I’ll add 1 to the `date` command result.  
Thanks much.

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [December 16, 2021, 5:05pm UTC](https://devforum.zoom.us/t/api-creates-meeting-that-starts-on-the-wrong-day/61397/4 "2021-12-16T17:05:34Z")

</div>

Hi @Hakkarainen

I am glad you were able to resolve this issue.

Cheers,  
Elisa!

---

<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:** [January 16, 2022, 3:05am UTC](https://devforum.zoom.us/t/api-creates-meeting-that-starts-on-the-wrong-day/61397/5 "2022-01-16T03:05:58Z")

</div>

Closed on January 16, 2022, 3:05am UTC

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