academyFIVE API Beta icon

academyFIVE API Beta

Interact with academyFIVE API

Actions482

Online-exam-enrolments → Create a new online exam enrolment.

AI-generated

Summary

Creates a new online exam enrolment via POST request to the academyFIVE API.

Inputs

  • data (required) — A fixed collection containing the type and attributes of the enrolment to create. The 'type' field is required. The 'attributes' collection is required and supports 'enrolmentDateTime', 'examStartDateTime', and 'examEndDateTime'. The 'relationships' collection is optional and supports linking 'booking', 'moduleVersion', or 'subjectVersion' by their IDs.

Output shape

an array of items containing the JSON response from the API

Each returned item is paired with the input item via 'pairedItem'. If the request fails and 'Continue on Error' is enabled, an error message is returned in the '' field of the paired item.

Examples

Example 1: Create an exam enrolment with specific dates and link it to a booking ID

Set data.type to 'online-exam-enrolments', data.attributes.enrolmentDateTime to '2023-10-25T09:00:00Z', and data.relationships.booking.data.id to '12345'.

Example 2: Create an exam enrolment without relationships

Set data.type to 'online-exam-enrolments' and data.attributes to include only the desired date fields.

Links

Discussion