credit-registration-admin

POST `/api/v0/main-frontend/credit-registration-admin/account-linking/manual-link` - Links a student number to an account on an admin's judgement. The last resort, for a student whose mailbox host will not accept our mail at all. An admin's judgement stands in for proof of mailbox control, so the link is marked `admin_manual` forever, carries the reason and names the admin.

Changed on
post/api/v0/main-frontend/credit-registration-admin/account-linking/manual-link

Request

  • The document declares no server URL.
  • Auth: none declared

Request body

reasonstring required
sisu_person_idstring required

From the preview. Re-resolved on arrival, and a mismatch is refused, so a typo cannot mint a link to somebody else.

student_numberstring required
user_idstring uuid required

Response

What the attempt did

affected_registration_countinteger required

Registrations the link unblocked.

outcome'linked' | 'student_number_not_found' | 'preview_mismatch' | 'already_linked_to_another_account' | 'already_linked_to_this_account' | 'study_registry_unavailable' | 'unexpected_study_registry_answer' required
verified_student_number_idstring uuid nullable

Changes