Hello,
I’m trying to understand how to create Classes programmatically. I can see certain aspects of the Classes I’ve created in the UI in the bookings API, but I can’t find anything related to scheduling or to staff assignment. I’d really like to know if Square just hasn’t implemented this yet or if there’s a trick to building what shows up in the API as a class out of other API primitives.
Hey @devinnasar! Unfortunately, there is not currently an API for programmatically handling Classes. I’ll log this as a feature request!
Hello!
Square’s API doesn’t yet support creating “Classes” directly with scheduling and staff assignment. What you see in the UI is only partially exposed. To approximate classes programmatically, you need to combine existing primitives: define services in the Catalog API (as appointment services), assign staff through the Team API, and then schedule bookings with the Bookings API. This covers most functionality, but there’s no native “class object” endpoint yet, so you’ll need to stitch these pieces together until Square adds full support.