Skip to content
API documentation

Changelog

Version 1.5.0

Students can belong to a subdivision, such as a United States state, which decides the time of a local exam and which state-targeted exams they are offered. A United States student now needs one. One new operation, one new optional field and one new error code; nothing is removed.

Added

Changed

  • Versioning exception: a United States student needs a state. For a country whose subdivisionRequired is true, registerStudent and each row of createStudentImport need a subdivision, and checkStudentRegistration reports its absence in problems. A body that omitted it and was accepted before is now refused with 400 subdivision_required (a row with the row code subdivision_required). This is deliberately not announced as a breaking change, because no field became required in the contract: the rule follows the country's own subdivisionRequired flag, which is false for every country until the platform switches it on, and countries without subdivisions are never affected. Sandbox students in the United States need a state too.
  • updateStudent and updateOrgStudent check the state only when the body changes country or sends subdivision: a country that needs a state, with no state of that country on the student or in the body, is refused with 400 subdivision_required, and a country without states drops the old country's state. A phone change on an existing student is never refused for want of a state.
  • listAvailableExams, createApplication and moveApplication answer 400 subdivision_required for a student whose country needs a state and who has none, instead of offering a partial list. Reading and updating the student are not affected.
  • An exam's countries and the ids listCountries returns are the same ids (the platform keeps one id per country); the documentation no longer says they may differ. Nothing enforces it, so comparing by iso2 still always works.
  • tz on a country is documented as the zone for students without a subdivision; the example showed America/New_York, and the United States row is America/Chicago. A student with a subdivision sits a local exam in the subdivision's own tz.

Release notes

Version 1.5.0 adds a layer below the country. A student can belong to a subdivision (today, a United States state), and the platform treats it like a country for the time of a local exam and for which exams a student is offered. It adds one operation, one optional field, one error code and removes nothing.

Listing subdivisions

listCountrySubdivisions lists the subdivisions of a country. A country whose subdivisionRequired is true needs every student to have one. See Subdivisions.

Sending a subdivision

The student operations take subdivision, as the _id or the full ISO 3166-2 code (US-CA). It is looked up inside the student's country. A United States registration without it is refused with subdivision_required. It never changes the username. See Students.

State-targeted exams

An exam can list states. It is then offered only to students of those states in the countries it names, and applying any other student answers 409. An exam that lists no states behaves as before. See Exams for some states only.

Before you upgrade

If you register United States students, add the state to your registration, and set it on the students you registered earlier with updateStudent before entering them for exams. Their usernames do not change. Code written against 1.4.0 for other countries keeps working without a change.

Search the API documentation

Guides, endpoints by name, path or permission, and error codes such as not_found.