Request

Using this endpoint requires a permission to delete and pseudonymize.

This endpoint allows you to pseudonymize a person. The data of all of the candidates that are associated with the person will be removed according to the company's pseudonymization settings.

For more information about pseudonymization see this page.

POST https://api.comeet.co/person/{uid}/pseudonymize

Request path parameters:

NameTypeOptionalDescription
uidstringRequiredUID of the person. A person can have multiple candidate instances. The person UID is returned with the candidate object.

Response

{
    "pseudonymized_candidates_uids": [
        "C0.B42",
        "C0.B43"
    ],
    "candidates_pseudonymized": 2
}
{
	"status": 400,
	"candidate_uid": [
		"42.B4B"
	],
	"message": "Person has scheduled or ongoing interviews",
	"person_uid": "E0.B4E",
	"error": "person_has_pending_interviews"
}
{
    "status": 403,
    "message": "You do not have permission to perform this action",
    "error": "no_permission"
}
{
    "status": 404,
    "message": "The provided ID could not be found",
    "error": "not_found"
}

🚧

In case one of the candidates associated with the person has a scheduled or an ongoing interview then a 400 error will be returned.