Update Calendar settings
PATCH
/api/v1/calendar/calendars/{id}
const url = 'https://example.com/api/v1/calendar/calendars/example';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"color":"example","visible":true}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://example.com/api/v1/calendar/calendars/example \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "color": "example", "visible": true }'Requires a signed-in User. It changes the Calendar colour, visibility, or both. It returns 400 for invalid settings or 404 when the Calendar is missing. Route: /api/v1/calendar/calendars/{id}. Inputs: id. Do not automatically replay this operation after an uncertain result.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
color
string | null
visible
boolean | null
Examplegenerated
{ "color": "example", "visible": true}