# Who's on card

> Canonical HTML: https://screenrig.ai/docs/cards/whos-on/

Who is on shift or on call right now, with time left in the shift, and who starts next.

Category: People. Tags: Offices and workplaces, Schedules, Healthcare, Factories and warehouses.

## Previews

![Who's on](/cards/whos-on/v1/screenshots/canvas-bloom.webp?sha=8e9c3b8469e515d1230c176941fc1f537e0f4812e226a72f1f70b4a892e92553)

Canvas

![Who's on](/cards/whos-on/v1/screenshots/corner-bloom.webp?sha=2f635d2277cbe79b17d1600f5f0073362807bcb13117cdd234f9e9e4ab523745)

Corner

![Who's on](/cards/whos-on/v1/screenshots/chip-bloom.webp?sha=9605444c7900bc7462c065229c31d7d7ef2dfdedadc62a353b770c8c7c15a298)

Chip

## Views and forms

Views: canvas, corner, chip. Canvas forms: landscape, portrait, square, strip.

[Card views, themes and publishing](/docs/cards/). [Browse the gallery](/apps/#cards).

## Data and privacy

This card uses its configured properties and live card data.

## Properties

For theme, background, accent and position, see [Common properties](/docs/cards/#common-properties).

Set static properties in `params`. Bind `data` to a project card data key for live values; that document holds only dynamic properties. Without a data key, put the complete configuration in `params`. Nested rows describe the contents of their parent property.

### Static properties

| Name | Type | Default | Values and limits | Description |
| --- | --- | --- | --- | --- |
| `title` | string | `"Who's on"` | maxLength: `40` |  |
| `lookaheadHours` | integer | `12` | minimum: `1`; maximum: `48` | How far ahead a shift counts as next. |
| `hour12` | boolean | `false` |  |  |

### Dynamic properties

| Name | Type | Default | Values and limits | Description |
| --- | --- | --- | --- | --- |
| `people` | array | `[]` | minItems: `0`; maxItems: `24` |  |
| `people[].name` | string |  | minLength: `1`; maxLength: `60`; Required |  |
| `people[].role` | string | `""` | maxLength: `50` |  |
| `people[].note` | string | `""` | maxLength: `40` | A place or a number after the role: a station, a ward, an extension. |
| `people[].start` | string |  | maxLength: `8`; Required | Shift start in the screen's time zone: 07:00 or 7:00 AM. |
| `people[].end` | string |  | maxLength: `8`; Required | Shift end. Earlier than the start means the shift runs past midnight; equal to the start means 24 hours. |
| `people[].days` | array | `[]` | maxItems: `7` | The days the shift starts on. Left out or empty, every day. |
| `footnote` | string | `""` | maxLength: `120` |  |

## Canvas example

Add this item to a playlist page’s `primitives`. [Publish the playlist and assign a screen](/docs/cards/#publish-a-card-canvas).

```json
{
  "id": "whos-on",
  "primitive": "card",
  "card": "whos-on",
  "major": 1,
  "params": {
    "theme": "neomustard"
  },
  "rect": {
    "x": 0,
    "y": 0,
    "width": 1920,
    "height": 1080
  },
  "layer": 0,
  "content_fit": "fill",
  "data": "whos-on-main"
}
```

## Write live data

Create this document before showing the card, then replace it to update the screen without republishing. Use the same project as the playlist. Supply your API authorization through the environment; see [API authentication](/docs/authentication/).

```console
curl --request PUT "https://api.screenrig.ai/api/card-data/whos-on-main" \
  --header "Authorization: Bearer $SCREENRIG_TOKEN" \
  --header "ScreenRig-Project: $SCREENRIG_PROJECT" \
  --header "Content-Type: application/json" \
  --data '{"document":{"people":[],"footnote":""}}'
```
