Tejas Badadare
04/22/2022, 10:59 PMGET <https://api.cal.dev/v1/event-types>
-> returns empty array even though I have a few event types i can see on web
2. GET <https://api.cal.dev/v1/event-types/151>
-> If I try to get info on a specific event type, the server times out. Sometimes returns a 500.
3. GET <https://api.cal.dev/v1/availabilities>
-> returns empty array even though I can see Working Hours set up on web
4. PATCH <https://api.cal.dev/v1/bookings/145>
with body {"description": "testing description patch"}
-> returns 400 "Something went wrong"
. Same thing happens for all other PATCH APIs I tried. Am I structuring the body wrong? I'm following the format on swagger.
5. GET <https://api.cal.dev/v1/schedules>
-> returns a 400 with message "Expected object, received string"
6. GET <https://api.cal.dev/v1/schedules/3>
-> seems like i can access arbitrary schedules by requesting their IDs. I don't own schedule 3 (it belongs to user 6, i'm user 89) but I can still query it.
Thanks for the help!zomars
04/22/2022, 11:32 PMTejas Badadare
04/23/2022, 12:40 AMAgusti
04/23/2022, 12:54 AMTejas Badadare
04/23/2022, 12:55 AMAgusti
04/23/2022, 12:55 AMAgusti
04/25/2022, 4:16 AM## Edit or update an existing availability
curl -X "PATCH" "<http://localhost:3002/v1/availabilities/25?apiKey=cal_9499ac8c93409441b49b3e237795b662>" \
-H 'Content-Type: application/json; charset=utf-8' \
-d $'{
"days": [
1,
2,
3,
4,
5
],
"eventTypeId": 2
}'
Tejas Badadare
04/26/2022, 12:04 AM