Zoho Calendar API Create Event - Returning "description": "eventdata missing."
I am trying to do a post and create a new event, it is returning "eventdata missing" and "Less_than_min_occurance" I have tried to delete the nested json inside of the first eventdata and still the same issue. Any insight?
- eventdata = {
- "eventdata": {
- "dateandtime": {
- "timezone": "Asia/Kolkata",
- "start": "20240216",
- "end": "20240216"
- },
- "title": "test invitation",
- "attendees": [
- {
- "email": "user2@pavi1.com",
- "status": "NEEDS-ACTION"
- }
- ],
- "conference": "zmeeting"
- }
- }
- # Construct the full URL for the API request
- api_endpoint = f"https://calendar.zoho.eu/api/v1/calendars/{CALENDAR_UID}/events"
-
- # Set up the headers with the access token
- headers = {
- 'Authorization': f'Bearer {ACCESS_TOKEN}',
- 'Content-Type': 'application/json'
- }
- # Make the POST request to the Zoho Calendar API
- response = requests.post(api_endpoint, json=eventdata, headers=headers)