[BETA] Restore an archived person outside the school by external reference id

Restore an archived person outside the school matched by the partner reference (externalReferenceId) written on the record. Same effects, errors and webhook as POST /externals/:id/restore.

The reference is not unique in legacy data, so the route restores only when it designates exactly one record to bring back: no record carries it → 404 EXTERNAL_NOT_FOUND; only active records carry it → 409 EXTERNAL_NOT_ARCHIVED; at least one active and at least one archived record carry it → 409 EXTERNAL_ALREADY_EXISTS with each active id in errors[].message, nothing restored (restoring any of them would make the reference held twice); two or more archived records and no active one → 409 EXTERNAL_EXTERNAL_REFERENCE_NOT_UNIQUE with every archived id in errors[].message, most recently edited first, so the caller restores the right one by id; exactly one archived record → restored. As on the id route, an address held by another ACTIVE record answers 409 EXTERNAL_ALREADY_EXISTS with that record’s id in errors[0].message. A reference longer than 128 characters answers 400 VALIDATION_ERROR.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

Partner external reference id (maps to API_ID in the database, 128 characters maximum)

Responses

Language
Credentials
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json