v1

latestSwagger 2.02026-08-06115129197.7 KB
Class Sessions

Create a class session

Returns the newly created class sessions

post/class_sessions

Path parameters

location_idstring required

The location's id

Query parameters

location_id_is_partnerboolean required

true - id is partner_id / false - id is mytime id

segmentsboolean

returns segments

locationboolean

returns location

external_locationboolean

returns external_location

employeeboolean

returns employee

resourceboolean

returns resource

class_nameboolean

returns class_name

classboolean

returns class

categoryboolean

returns category

class_settingboolean

returns class_setting

session_enrollmentsboolean

returns session_enrollments

session_eventsboolean

returns session_events

clientboolean

returns client

childboolean

returns child

custom_field_valuesboolean

returns custom_field_values

display_color_idsboolean

returns display_color_ids

notesboolean

returns notes

ticket_summaryboolean

returns ticket_summary

recurring_sessionboolean

returns recurring_session

session_attendeesboolean

returns session_attendees

attendeeboolean

returns attendee

num_enrolled_per_attendeeboolean

returns num_enrolled_per_attendee

num_unpaidboolean

returns num_unpaid

total_capacityboolean

returns total_capacity

Request body

company_idinteger
location_idinteger
external_location_idinteger
class_idinteger
begin_atstring
end_atstring
descriptionstring
class_setting_idinteger

Response

ClassSession response

idinteger

id of class

begin_atstring required
end_atstring required
created_atstring
statusstring required
mytime_idstring
descriptionstring
what_to_bringstring
employee_partner_idinteger
location_partner_idinteger
client_partner_idinteger
child_partner_idinteger
employee_mytime_idinteger
location_mytime_idinteger required
client_mytime_idinteger required
child_mytime_idinteger
class_mytime_idinteger required
class_partner_idinteger required
partner_idinteger