Create a PTA event

Creates a parent-teacher event, calculates its end time from school settings, and returns its generated schedule.

Authentication

AuthorizationBearer

The signed-in SchoolSet user token sent by the frontend.

Request

This endpoint expects a multipart form.
academic_year_idintegerRequired
titlestringRequired
start_datedatetimeRequired
pta_gap_parent_countintegerRequired
pta_schedule_type_idintegerRequired
pta_slot_duration_idintegerRequired
pta_slot_meeting_countintegerRequired
grade_idslist of integersOptional
class_idslist of integersOptional
staff_member_idslist of integersOptional
parent_typeenumOptionalDefaults to both
Allowed values:
exclude_staff_childrenintegerOptional

Response

Created schedule or a PTA calculation/time business-rule error envelope.

statusstring
messagestring
datamap from strings to any

Errors

401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
422
Unprocessable Entity Error