Update a calendar entry
Three-state PATCH semantics (omitted = unchanged, null = clear nullable, value = set).
Sending null on a non-nullable field (title, color, start_time, end_time, email_reminder, auto_reminder_enabled) returns 422 parameter_invalid. When the patched pair of timestamps violates end_time > start_time the request is rejected with 422.
user_id (ownership), company_id, auto_reminder_sent_at, and the audit timestamps are not patchable through this endpoint.
Foreign-key references in the body (customer_id, vehicle_id, worksheet_id, work_category_id, calendar_id) must resolve to resources owned by the authenticated user's company. Unreachable refs return 422 parameter_invalid pointing at the offending field.
worksheet_id links the appointment to a scheda lavoro and null unlinks it. The customer and vehicle left after the patch must be the worksheet's (a worksheet without a vehicle fits any vehicle of its customer); the ones the entry is missing are taken from the worksheet, and a mismatch returns 422 parameter_invalid on /worksheet_id. A patch that moves customer_id or vehicle_id off the linked worksheet, without sending worksheet_id, unlinks it: the response then carries worksheet_id: null. Sending worksheet_id (value or null) needs worksheets.read (the key's scope, or the app user's permission); without it the request returns 403.
Request
- Base URL: https://api.officina.it
- URL: https://api.officina.it/v1/calendar-entries/{id}
- Auth: HTTP bearer
Request body
Response
Calendar entry updated.
Changes
No recorded changes to this operation across all 1 revision of this API.