Hi @weweb-team and other experts,
I am not sure how to create a request for this api. I am trying to use zoho calendar api which requires to perform a POST request using parameters defined in its documentation: POST - Create new event
The problem is that the request data should go in json something like this:
{
“eventdata”: [
{
“enable_eventmanagement”: false,
“role”: “organizer”,
“color”: “”,
“calid”: “2886111000000034003”,
“has_attachment”: false,
“title”: “New Event”,
“calendar_alarm”: false,
“duration”: “90000000”,
“uid”: “78df440494704a9586c69d669e51c7a0@zoho.com”,
“rrule”: “FREQ=YEARLY;INTERVAL=1;BYMONTH=7;BYMONTHDAY=7;COUNT=10”,
“createdby”: “user@zylker.com”,
“etype”: “EVENT”,
“id”: “2886111000000034007”,
“dateandtime”: {
“timezone”: “Asia/Kolkata”,
“start”: “20210307T110000+0530”,
“end”: “20210308T120000+0530”
},
“lastmodifiedtime”: “20210209T141436Z”,
“isprivate”: false,
“createdtime”: “20210209T141436Z”,
“attRSVPNotifyType”: 0,
“estatus”: “added”,
“organizer”: “user@zylker.com”,
“isallday”: false,
“transparency”: 0,
“modifiedby”: “user@zylker.com”,
“etag”: “1612880076006”,
“caluid”: “8b6b8aa9114b4de8a22f1136e648ee70”,
“multiday”: true
}
]
}
When I use the parameters using weweb, I end up with a request like this:
{
"enable_eventmanagement": false,
"role": "organizer",
"color": "",
"calid": "2886111000000034003",
"has_attachment": false,
"title": "New Event",
"calendar_alarm": false,
"duration": "90000000",
"uid": "78df440494704a9586c69d669e51c7a0@zoho.com",
"rrule": "FREQ=YEARLY;INTERVAL=1;BYMONTH=7;BYMONTHDAY=7;COUNT=10",
"createdby": "user@zylker.com",
"etype": "EVENT",
"id": "2886111000000034007",
"dateandtime": {
"timezone": "Asia/Kolkata",
"start": "20210307T110000+0530",
"end": "20210308T120000+0530"
},
"lastmodifiedtime": "20210209T141436Z",
"isprivate": false,
"createdtime": "20210209T141436Z",
"attRSVPNotifyType": 0,
"estatus": "added",
"organizer": "user@zylker.com",
"isallday": false,
"transparency": 0,
"modifiedby": "user@zylker.com",
"etag": "1612880076006",
"caluid": "8b6b8aa9114b4de8a22f1136e648ee70",
"multiday": true
}
So I get an error that eventdata
is missing.
Any pointers how can I create a request which will work with this api?
This is way beyond my understanding.