We’ve added a new mutation runVerificationChecks
to queue the appropriate verification checks for all individuals on a case.
This is intended for when updates to the case have been made after creation such as document upload or individual updates.
An example operation using this mutation is:
mutation RunChecks($input: RunVerificationChecksInput!) {
runVerificationChecks(input: $input) {
... on VerificationChecksQueued {
case {
caseId
caseStatus
}
individuals {
individual {
individualId
preferredName {
fullName
}
}
verificationChecks
}
}
... on ValidationErrors {
errors {
message
fieldPath
}
}
}
}
There are three main points about which checks will be queued:
- Only checks relevant to the verification type on the individual will be considered.
- Only checks where all required data for that check is present (e.g. name & date of birth for Screening).
- If a check has already run on that individual and the required data has not changed then a new check will not be queued.
The mutation returns the checks that were queued.