academyFIVE API icon

academyFIVE API

Interact with academyFIVE API

Actions549

Lecturer-contract-employment-availabilities → Create a new lecturer contract employment availability

AI-generated

Summary

Create a new lecturer contract employment availability by specifying required data fields including type, attributes (dayOfWeek, startTime, endTime), and optional relationships (such as linking to a lecturer contract).

Inputs

  • data.type (required) — The type identifier for the lecturer contract employment availability.
  • data.attributes.dayOfWeek (required) — The day of the week represented as a number for the availability.
  • data.attributes.startTime (required) — The start time of the availability period.
  • data.attributes.endTime (required) — The end time of the availability period.
  • data.relationships.lecturerContract.data.id — The ID of the lecturer contract to associate with this availability.

Output shape

a list of JSON objects representing the newly created lecturer contract employment availability entries

The node returns the API response as JSON in the output. In case of failure, it throws an error or returns an error object if 'Continue On Fail' is enabled. There is no binary data expected from this operation.

Examples

Example 1: Create a lecturer contract employment availability on Monday from 09:00 to 17:00 linked to a specific lecturer contract.

Set resource to 'Lecturer-contract-employment-availabilities', operation to 'Create a new lecturer contract employment availability'; provide 'type' string; set attributes with dayOfWeek=1, startTime='09:00', endTime='17:00'; optionally provide relationships with lecturerContract data including type and id.

Links

Discussion