Update a schedule
Changed on<Note>Please make sure to pass in the cal-api-version header value as mentioned in the Headers section. Not passing the correct value will default to an older version of this endpoint.</Note>
Request
- The document declares no server URL.
- Auth: none declared. Required headers: Authorization, cal-api-version
Path parameters
Headers
value must be Bearer <token> where <token> is api key prefixed with cal_ or managed user access token
Must be set to 2024-06-11. If not set to this value, the endpoint will default to an older version.
Request body
Example request
{
"name": "One-on-one coaching",
"timeZone": "Europe/Rome",
"availability": [
{
"days": [
"Monday",
"Tuesday"
],
"startTime": "09:00",
"endTime": "10:00"
}
],
"isDefault": true,
"overrides": [
{
"date": "2024-05-20",
"startTime": "12:00",
"endTime": "14:00"
}
]
}Response
Example response
{
"status": "success",
"data": {
"id": 254,
"ownerId": 478,
"name": "Catch up hours",
"timeZone": "Europe/Rome",
"availability": [
{
"days": [
"Monday",
"Tuesday"
],
"startTime": "17:00",
"endTime": "19:00"
},
{
"days": [
"Wednesday",
"Thursday"
],
"startTime": "16:00",
"endTime": "20:00"
}
],
"isDefault": true,
"overrides": [
{
"date": "2024-05-20",
"startTime": "18:00",
"endTime": "21:00"
}
]
}
}Changes
- breaking
removed the enum value
Fridayof the request property// - breaking
removed the enum value
Mondayof the request property// - breaking
removed the enum value
Saturdayof the request property// - breaking
removed the enum value
Sundayof the request property// - breaking
removed the enum value
Thursdayof the request property// - breaking
removed the enum value
Tuesdayof the request property// - breaking
removed the enum value
Wednesdayof the request property// - info
removed the pattern
TIME_FORMAT_HH_MMfrom the request property// - info
removed the pattern
TIME_FORMAT_HH_MMfrom the request property// - info
removed the pattern
TIME_FORMAT_HH_MMfrom the request property// - info
removed the pattern
TIME_FORMAT_HH_MMfrom the request property// - info
removed the
Fridayenum value from the///response property for the response status - info
removed the
Mondayenum value from the///response property for the response status - info
removed the
Saturdayenum value from the///response property for the response status - info
removed the
Sundayenum value from the///response property for the response status - info
removed the
Thursdayenum value from the///response property for the response status - info
removed the
Tuesdayenum value from the///response property for the response status - info
removed the
Wednesdayenum value from the///response property for the response status - info
the
///response's property patternTIME_FORMAT_HH_MMwas removed for the status - info
the
///response's property patternTIME_FORMAT_HH_MMwas removed for the status - info
the
///response's property patternTIME_FORMAT_HH_MMwas removed for the status - info
the
///response's property patternTIME_FORMAT_HH_MMwas removed for the status
- breaking
- breaking
request property
//was restricted to a list of enum values - breaking
added the pattern
TIME_FORMAT_HH_MMto the request property// - breaking
added the pattern
TIME_FORMAT_HH_MMto the request property// - breaking
added the pattern
TIME_FORMAT_HH_MMto the request property// - breaking
added the pattern
TIME_FORMAT_HH_MMto the request property// - warning
added the new
Fridayenum value to the///response property for the response status - warning
added the new
Mondayenum value to the///response property for the response status - warning
added the new
Saturdayenum value to the///response property for the response status - warning
added the new
Sundayenum value to the///response property for the response status - warning
added the new
Thursdayenum value to the///response property for the response status - warning
added the new
Tuesdayenum value to the///response property for the response status - warning
added the new
Wednesdayenum value to the///response property for the response status - info
added the new
Fridayenum value to the request property// - info
added the new
Mondayenum value to the request property// - info
added the new
Saturdayenum value to the request property// - info
added the new
Sundayenum value to the request property// - info
added the new
Thursdayenum value to the request property// - info
added the new
Tuesdayenum value to the request property// - info
added the new
Wednesdayenum value to the request property// - info
the
///response's property patternTIME_FORMAT_HH_MMwas added for the status - info
the
///response's property patternTIME_FORMAT_HH_MMwas added for the status - info
the
///response's property patternTIME_FORMAT_HH_MMwas added for the status - info
the
///response's property patternTIME_FORMAT_HH_MMwas added for the status
- breaking