cal-api-version #17646
Replies: 1 comment 2 replies
-
Hey @subhadip1203, I'm here to help you with any bugs, questions, or contributions while you wait for a human maintainer. Let's tackle this together! The issue with the API request failing when using 'cal-api-version: 2024-06-14' is likely due to new validation rules introduced in this version. Specifically, the 2024-06-14 version enforces stricter constraints, such as requiring certain conditions to be met when creating event types. For example, creating an event type with seats enabled and multiple locations, or with seats enabled and a confirmation policy, results in a 400 error [1]. Additionally, for GET requests, the 2024-06-14 version requires specific query parameters like |
Beta Was this translation helpful? Give feedback.
-
the API section says : (https://cal.com/docs/api-reference/v2/event-types/get-all-event-types)
cal-api-version : string required
Must be set to 2024-06-14
This is not working (if cal-api-version : '2024-06-14')
curl --request GET
--url https://api.cal.com/v2/event-types
--header 'Authorization: Bearer cal_live_xxxxxx'
--header 'cal-api-version: 2024-06-14'
This is working (if cal-api-version : '2024-06-13 ' or something less '2024-05-14' )
curl --request GET
--url https://api.cal.com/v2/event-types
--header 'Authorization: Bearer cal_live_xxxxxx'
--header 'cal-api-version: 2024-06-13'
Beta Was this translation helpful? Give feedback.
All reactions