Delete an availability or a whole availability group
DELETE/api/availability
Deletes a single availability (id) or an entire availability group (availability_group_id); exactly one of the two is required. Deleting the last availability of a group also deletes the group.
Request
Responses
- 200
- 400
- 401
- 403
- 500
Deleted
Neither id nor availability_group_id given, or the availability/group does not exist or belongs to another teacher
Unauthorized
Only teachers can delete availabilities
Server error