This API will be used to assign tests directly to the candidates.
Pass ak, sgn, and ts as headers, and all three parameters will be received using the Signature Generation API.
Headerak:{{API Key}} sgn:{{sgn}} ts:{{ts}}
URLCopy{{API Endpoint}}/api/v1/assignTest
BodyCopy {
"email": "{Candidate Email Id}",
"testId": "{Test Id}",
"isMailEnable": "{1 or 0}",
"isPasswordSkip": "{1 or 0}"
}
Case 1 : When SuccessSuccess {
"result": "success",
"success": {
"code": "200",
"msg": "Test is assigned and mail has been sent successfully"
}
}
Case 2 : When Details is missingError {
"result": "error",
"error": {
"code": "3095",
"msg": "{Field name} is required."
}
}