Guests API
List, add, edit and remove the guests of one event. A guest row is one person on one event.
Authentication
- Every endpoint requires the
manage_optionscapability. Send a cookie plusX-WP-Nonce, or use an Application Password.
Endpoints
| Method | Path | Operation | What it does |
|---|---|---|---|
GET | /events/{eventId}/guests | List Guests | Returns the guests of one event, paginated, with a count per status for the tabs. |
POST | /events/{eventId}/guests | Create Guest | Adds a guest to an event by hand (source = manual). |
PATCH | /events/{eventId}/guests/{guestId} | Update Guest | Changes a guest. Fields you leave out keep their values. |
DELETE | /events/{eventId}/guests/{guestId} | Delete Guest | Removes a guest from an event. |