Create a calendar entry
Creates an appointment owned by the authenticated user inside their company. end_time must be strictly after start_time. The response is the fully materialized entry (denormalized customer / vehicle / calendar / user fields included) so the client can render the new row without a follow-up GET.
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. Omit customer_id / vehicle_id to take them from the worksheet; when sent, they must be the worksheet's (a worksheet without a vehicle fits any vehicle of its customer), otherwise the request returns 422 parameter_invalid on /worksheet_id. Sending worksheet_id 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
- Auth: HTTP bearer
Request body
Response
Calendar entry created.
Changes
No recorded changes to this operation across all 1 revision of this API.