# FreeDay

A free day: one calendar date on which the organisation is closed, either instantiated from a recurring holiday or added by hand. Free days are excluded from the working days a furlough request consumes. The label is a copy taken at creation time and drifts independently of the holiday it came from.

## Used by
- GET /api/v2/free-days: List free days (FreeDayList)
- POST /api/v2/free-days: Create a free day (FreeDay)
- GET /api/v2/free-days/{free_day}: Read a free day (FreeDay)
- PATCH /api/v2/free-days/{free_day}: Update a free day (FreeDay)

## FreeDay fields
- id (integer, required): Unique identifier.
- description (string ≤ 255, required): Label for the free day, e.g. `Christmas Day`. For a holiday-derived day this is a copy of the holiday name taken when the free day was created, so renaming the holiday does not rewrite it.
- date (date (YYYY-MM-DD), required): Calendar date the organisation is closed.
- holiday_id (integer or null, required): Recurring holiday this free day instantiates, or `null` for a day added by hand. The foreign key nulls on delete, so removing the holiday leaves the free day behind as a manual day still carrying the copied label.
- holiday (Ref or HolidaySummary or null, required): The recurring holiday this free day instantiates; absent for a manually added day.
- created_at (timestamp (YYYY-MM-DDThh:mm:ssZ), required): Creation timestamp.
- updated_at (timestamp (YYYY-MM-DDThh:mm:ssZ), required): Last-write timestamp; use for incremental sync.
- links (FreeDayLinks, required)
  - self (url, required): The canonical URI of this record.

## Variants

### FreeDayList

What a collection returns, and what `?view=summary` returns on a single record.

8 fields.
Identical to the detail object above.

### FreeDaySummary

The embedded form: what you get when another resource carries this one and you did not `include` it.

3 fields.
Omits: holiday_id, holiday, created_at, updated_at, links

### FreeDayLinks

The `links` object on this resource.

Keys: self

## Example
```json
{
  "id": 1,
  "description": "Office closed for the annual outing",
  "date": "2026-07-03",
  "holiday_id": 1,
  "holiday": null,
  "created_at": "2026-03-04T09:15:00Z",
  "updated_at": "2026-03-04T09:15:00Z",
  "links": {
    "self": "https://<your-url>/api/v2/work-items/1"
  }
}
```
