Enroll and cancel a client's class registration using the Pike13 Bookings and Leases endpoints
domain: developer.pike13.com · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗
Steps
POST /api/v2/front/bookings (or desk/bookings) to create a Booking for the client
POST /api/v2/front/bookings/:booking_id/leases with event occurrence, appointment, recurring event, or course parameters to add the class enrollment as a Lease
PUT /api/v2/front/bookings/:id to complete the Booking once all Leases are added
To cancel, DELETE /api/v2/front/bookings/:booking_id/leases/:lease_id for a single class, or DELETE /api/v2/front/bookings/:id to remove the whole booking
Use the desk/ variants of the same paths when acting on behalf of a client from the studio back office
Known gotchas
The booking-complete PUT endpoint explicitly cannot be used to add more Leases; you must POST to the Leases sub-endpoint first
Lease creation parameters differ by class type (event occurrence, appointment, recurring event, course), so the request body schema is not uniform across enrollment types
Give your agent this knowledge — and 15,500+ more routes
One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus:
claude mcp add --transport http waymark https://mcp.waymark.network/mcp
Need this verified for your stack — or a route we don't have yet?