It is a web service designed to return contexts providing context level and instance ID.It includes a simple example.

This web service was designed to help with the core_role_assign_roles (to link a parent to a student) core_role_unassign_roles (to unenroll a student/teacher from a course; to unlink a parent to a student) and core_files_upload web service core functions as they need a context.