---
title: "Soft-delete a calendar entry"
method: DELETE
path: "/v1/calendar-entries/{id}"
tags: ["Calendar"]
---

# Soft-delete a calendar entry

`DELETE /v1/calendar-entries/{id}`

## Request

- Base URL: `https://api.officina.it`
- URL: `https://api.officina.it/v1/calendar-entries/{id}`
- Auth: HTTP bearer

Stamps `deleted_at` with NOW(). The row remains in the
database but is no longer addressable through the mobile API —
subsequent GET/PATCH/DELETE return 404. Returns the deleted
entry (200) so clients can render an undo banner with the
populated `deleted_at`.

## Response `200`

Calendar entry soft-deleted.

- CalendarEntry: A workshop appointment. Belongs to one company (the caller's) and is owned by the user who created it. May reference an optional Customer, Vehicle, scheda lavoro (`worksheet_id`), work category, and parent Calendar. While `worksheet_id` is set, `customer_id` is the worksheet's and so is `vehicle_id` whenever the worksheet has one.
  - `object` 'calendar_entry', required
  - `id` string, uuid, required
  - `title` string, required
  - `description` string, nullable
  - `user_id` string, uuid, required
  - `start_time` string, date-time, required
  - `end_time` string, date-time, required
  - `color` string, required: Hex colour, e.g. #2563eb
  - `email_reminder` boolean, required
  - `customer_id` string, uuid, nullable
  - `vehicle_id` string, uuid, nullable
  - `worksheet_id` string, uuid, nullable
  - `quote_id` string, uuid, nullable
  - `checkin_id` string, uuid, nullable
  - `work_category_id` string, uuid, nullable
  - `work_category_name` string, nullable
  - `work_category_ids` string[], required: Every work category ("categoria") of the document, in the order chosen. `work_category_id` (kept for clients that handle a single category) always equals the first. `[]` when the document has none, never null. Available since revision 2026-10-03.
  - `work_categories` WorkCategory[], required: The same list as `work_category_ids` with each category's name, same order. `work_category_name` is the first one's name. Available since revision 2026-10-03.
    - `object` 'work_category', required
    - `id` string, uuid, required
    - `name` string, required
  - `calendar_id` string, uuid, nullable
  - `auto_reminder_enabled` boolean, required
  - `auto_reminder_channel` 'email' | 'sms' | 'whatsapp' | 'null', nullable
  - `auto_reminder_sent_at` string, date-time, nullable
  - `customer` CalendarEntryCustomer: Slim denormalized view of the linked customer, embedded inside a CalendarEntry. The full Customer resource lives at `/v1/customers/{id}`.
    - `object` 'customer', required
    - `id` string, uuid, required
    - `full_name` string, nullable
    - `email` string, nullable
    - `phone` string, nullable
  - `vehicle` CalendarEntryVehicle: Slim denormalized view of the linked vehicle, embedded inside a CalendarEntry. The full Vehicle resource lives at `/v1/vehicles/{id}`.
    - `object` 'vehicle', required
    - `id` string, uuid, required
    - `license` string, nullable
    - `model` string, required
    - `manufacturer_name` string, required
  - `user` CalendarEntryUser: Slim denormalized view of the owning user, embedded inside a CalendarEntry.
    - `object` 'user', required
    - `id` string, uuid, required
    - `name` string, required
  - `calendar` CalendarEntryCalendar: Slim denormalized view of the parent calendar, embedded inside a CalendarEntry. The Calendar container itself is not exposed on this tier.
    - `object` 'calendar', required
    - `id` string, uuid, required
    - `name` string, required
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required
  - `deleted_at` string, date-time, nullable

## Other responses

- `401`: Missing, malformed, expired, or wrong-audience bearer token.
- `402`: The company has no active subscription, or its plan does not include API access. API access is included in the Business and Illimitato plans.
- `403`: The authenticated user lacks the required permission.
- `404`: Resource does not exist OR belongs to a different company. The two cases are intentionally indistinguishable.
- `500`: Unhandled server error. Detail is logged, not exposed.

---

[API](https://skmtc.dev/officina/apis/officina-it-api.md) · [All operations](https://skmtc.dev/officina/apis/officina-it-api/llms.txt) · [OpenAPI document](https://skmtc.dev/officina/apis/officina-it-api/revisions/7da3fccfe551?raw)
