Skip to navigation

Correct an applicant

View as Markdown

Corrects an applicant, following JSON Merge Patch (RFC 7386): a field you omit is left alone, a field you send as null is cleared, and an unknown field name is a 400.

givenName1, familyName, dob and emailAddress are what a person is created with, so they can be changed but not cleared. givenName2, phoneNumber, postalAddress, sourceName and sourceRef can be cleared, except that clearing sourceName while a sourceRef remains is refused — an id with no system to interpret it is not findable.

Moving a sourceRef onto a pair another of your applicants already holds is a 409, naming the applicant that holds it.

Identity really is mutable — a legal name change, a corrected typo, a new email address. That is the argument for recording your own sourceRef: it goes on finding the person after any of those.

Authentication

AuthorizationBearer

Paste a Keycloak access token (no "Bearer " prefix)

Path parameters

idstringRequiredformat: "uuid"

Request

Only the fields you want to change.
givenName1stringOptional
givenName2stringOptional
familyNamestringOptional
dobstringOptional

Date of birth, ISO format YYYY-MM-DD.

emailAddressstringOptional
phoneNumberstringOptional
postalAddressstringOptional
sourceNamestringOptional
The system this record was fed from, in your own vocabulary. Free text, and required whenever you send a sourceRef.
sourceRefstringOptional

Your own unique id for this person, e.g. a student number. Unique per sourceName.

sourceslist of objectsOptional

Replaces ALL of your references for this record. Omit the field to leave them alone; send an empty array to remove them.

sourceName and sourceRef still edit the FIRST reference on its own and leave any others untouched, so an existing integration is unaffected. If you send both forms, sources wins.

Response

The supplied fields were applied; everything else is unchanged.

idstringOptionalformat: "uuid"
givenName1stringOptional
givenName2stringOptional
givenNamesstringOptional
familyNamestringOptional
dobdateOptional
emailAddressstringOptional
phoneNumberstringOptional
postalAddressstringOptional
sourceNamestringOptional
The system this record was fed from, in your own vocabulary. Free text, and required whenever you send a sourceRef.
sourceRefstringOptional

Your own unique id for this person, e.g. a student number. Unique per sourceName.

sourceslist of objectsOptional

Your own references for this record, one per system you keep it in. A person or an application known by a different id in SITS than elsewhere carries both.

Optional. sourceName and sourceRef still work exactly as before and count as the FIRST entry here, so nothing you have already built needs to change. Send both forms and they are combined, with duplicates collapsed.

Order matters: the first entry is the one echoed back as sourceRef, and the one shown in lists and in the change feed.

Errors

400
Bad Request Error
404
Not Found Error
409
Conflict Error