API creates meeting that starts on the wrong day

Using this template helps us debug your issues more effectively :slight_smile:

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

{
  "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:

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:

  "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"
    }
  ]

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

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.

1 Like

Hi @Hakkarainen

I am glad you were able to resolve this issue.

Cheers,
Elisa!

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