Delete Session
Permanently deletes a session that has not started yet, along with its attendance records. Put the session's `attendance_id` in the URL. To keep the session visible as cancelled, use "Cancel Session" instead.
POST
/schedule/version/session/{attendance_id}/deleteDelete Session
curl --request POST \
--url 'https://<your-api-host>/nuSource/api/v1/schedule/version/session/{attendance_id}/delete' \
--header 'APIKEY: <your-api-key>' \
--header 'ORGID: <your-org-id>' \
--form 'JSONString={"delete_type":0}'{
"code": 200,
"message": "Deleted Successfully"
}Access: Institute admins and tutors, plus custom roles that can cancel or delete sessions. The session must belong to a class in your organizations, or one you teach or created.
Request body: form-data with one field, JSONString, containing this JSON:
Path parameters
The session to delete.
Body
JSONStringdelete_typeinteger
0 this session only (default), 1 this and all later not-started sessions in the series, 2 the series' sessions between delete_start_date and delete_end_date.First date of the range.
Last date of the range.
Notes: This can't be undone. No notifications or webhooks are sent. Fails with code 25001 "Invalid Attendance ID" if the session doesn't exist, isn't yours, or has already started or been cancelled. Rate limit: 30 requests per minute; going over locks you out for 30 minutes.