Create a class type

post/api/v1/class-types

Request

  • Base URL: http://127.0.0.1:4310
  • URL: http://127.0.0.1:4310/api/v1/class-types
  • Auth: one of:
    • HTTP bearer
    • API key in cookie sfb_session

Request body

namestring required
descriptionstring
capacityinteger required
duration_minutesinteger required
price_minorinteger required

Price per place in minor units

deposit_percentinteger nullable

Empty uses the business default

max_seats_per_bookinginteger
instructor_idstring uuid
location_idstring uuid
resource_idsstring[]

Rooms and equipment every class of this type reserves

colour'sage' | 'clay' | 'mist' | 'sand' | 'lilac'
activeboolean
onlineboolean

Shown on the booking page

expected_versioninteger

Response

OK

object required

Changes

No recorded changes to this operation across all 4 revisions of this API.