I am using the Calendar API (https://www.zoho.com/calendar/help/api/calendars-api.html) to try to create a new calendar, so I can add events to it.
I am working on an app that will be scheduling events to the calendar, so I wanted to create a new calendar for the app to use.
I've created the OAuth2 flow and got logged in and got my access_token/refresh_token.
I sent a GET to https://calendar.zoho.com/api/v1/calendars with the auth token in the header and correctly got back a list of calendars.
Now, I wanted to create a new calendar, so I tried to send a POST to https://calendar.zoho.com/api/v1/calendars but I cannot figure out how to correctly send the parameters to create a calendar.
When I try to send a POST request, I get the following response back:
{
"error" : [
{
"description" : "Less than min occurrence.",
"message" : "calendarData missing."
}
]
}
What does this mean?
How am I supposed to send the parameters to create a new calendar?
I am sending the parameters in the POST body as application/x-www-form-urlencoded:
description=api+test&timezone=America%2FNew_York&include_infreebusy=true&textcolor=%23000000&color=%23668CB3&name=test+calendar
Am I doing something wrong? The API documentation doesn't say how you are supposed to send the parameters, so I am not sure what this error means and what I am supposed to do.