I am having issues with the Share API, I have the following payload:
{
"event_type": "https://api.calendly.com/event_types/5465e424-3294-4fb3-9de5-46a209a470fe",
"name": "30 Minute Meeting",
"duration": 60,
"period_type": "fixed",
"start_date": "2023-12-10",
"end_date": "2023-12-15",
"max_booking_time": 300,
"hide_location": true,
"location_configurations": [
{
"location": "123 Abc St.",
"additional_info": "Example additional information",
"position": 0,
"kind": "physical"
}
],
"availability_rule": {
"rules": [
{
"type": "wday",
"wday": "sunday",
"date": "2023-12-11",
"intervals": [
{
"from": "07:00",
"to": "11:00"
}
]
}
],
"timezone": "America/New_York"
}
}
But I keep receiving:
{
"details": [
{
"message": "date is supported only when type is 'date'",
"parameter": "date"
}
],
"message": "The supplied parameters are invalid.",
"title": "Invalid Argument"
}
When in the documentation, it specifically states:
start_date: string<date>
is required when
period_type
is 'fixed' Format:YYYY-MM-DD
Example: 2019-01-02
Anyone know what am I doing wrong?