---
title: "Write Attendance"
method: PUT
path: "/api/booking/availability/{principal_id}/attendance"
tags: ["booking"]
---

# Write Attendance

`PUT /api/booking/availability/{principal_id}/attendance`

## Request

- Base URL: `https://api.pigeonly.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.pigeonly.com/api/booking/availability/{principal_id}/attendance`
- Auth: none declared

Attach somebody to every demo, or stop attaching them.

ADMIN ONLY, EVEN FOR YOUR OWN ROW -- the one way this differs from the
window beside it. `_may_edit` lets a person edit their own hours because
their hours are theirs; "I am on every sales call" is a claim about
everybody else's calls, and nobody gets to make that one about themselves.

Frederick, 2026-08-21, asking whether this scales: "And will we add future
salespeople?" It does now. A new salesperson needs three things and all
three have a surface: the `demos:accept` grant (admin), their own hours
with accepting on (their profile), and the VP flagged HERE so the new
person is not booked alone. Before this the third had no write path
anywhere and Keith's was set with a hand-run UPDATE.

## Path parameters

- `principal_id` string, uuid, required

## Request body

- AttendanceBody: Somebody's role on OTHER people's demos -- see service.set_attendance.
  - `always_attends` boolean
  - `constrains_availability` boolean

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/pigeonly/apis/roost-v2-pigeonly-company-os.md) - [All operations](https://skmtc.dev/pigeonly/apis/roost-v2-pigeonly-company-os/llms.txt) - [OpenAPI document](https://skmtc.dev/pigeonly/apis/roost-v2-pigeonly-company-os/revisions/14571c4b7007?raw)
