Register a Canddiate

Register a Canddiate

POSTRegister a Candidate

This API will be used to register candidates.

Request Parameters: The name, email, and password are required.

The password is encoded in base64.

Custom-Header
{ "name": "{{Client URL}}" }
URL
Copy
{{API Endpoint}}/api/v1/newUser
Body
Copy
{ "name": "{candidateName}", "password": "{Password}", "enrollment_number": "{RollNumber}", "email": "{Emailid}", "mobile": "{MOBILE NUMBER}", "profilePic": "{Base64 Image}", "gender": "{Gender}", "dob": "{DOB}", "country": "{countryName}", "courseId": "{courseId}", "courseName": "{courseName}", "isMailEnable": "{0 or 1}", "reg_date": "{regDate}", "isLinkBasedTest": "{0 or 1}", "clientStudentUniqueId": "{UniqueId}", "state": "{StateName}", "city": "{CityName}", "address": "{A ddress}", "pincode": "{Pincode}", "signaturePic": "{SignaturePic}", "idProfilePic": "{idProfilePic}", "extra1": "{extra1}", "extra2": "{extra2}", "extra3": "{extra3}", "extra4": "{extra4}", "extra5": "{extra5}", "extra6": "{extra6}", "extra7": "{extra7}", "phone": "{phone}" }
Explanation Of Parameters
ParametersValueMandatory
nameName of candidateYes
passwordPassword of the candidate (If password is passed in the api then Password must be One Upper,One Lower,One Special Character & Minimum length should be 8)No
emailEmail address of candidateYes
enrollment_numberRoll number of the candidateNo
mobileCandidate’s mobile numberNo
profilePicCandidate profile picture in base64 formatNo
genderGender of the candidateNo
dobDate of birth of the candidateNo
courseId or courseNameCourse Id or Course name represent to the group assigned to the candidateYes
reg_dateRegistration Date of the candidateNo
isLinkBasedTestIf test is link based send 0 or 1No
clientStudentUniqueIdUnique Id of the studentNo
isMailEnableIf Email enable Sent 0 or 1No
countryCountry name represent to the candidate’s countryNo
stateState name represent to the candidate’s stateNo
cityCity name represent to the candidate’s stateNo
addressAddress of the candidateNo
pincodePincode of the candidateNo
signaturePicSignature pic of the candidateNo
idProofPicId proof pic of the candidateNo
extra1Additional ParameterNo
extra2Additional ParameterNo
extra3Additional ParameterNo
extra4Additional ParameterNo
extra5Additional ParameterNo
extra6Additional ParameterNo
extra7Additional ParameterNo
phoneAnother phone of the candidateNo
Response
Case 1 : When Success
Success
{ "result": "success", "success": { "msg": "Registration Successful" }, "status": "1", "data": { "profilePic": "", "studentId": 32978025, "enrollmentNo": "" }, "ACCESS_TOKEN":"rOodjY8tsKjjhVmvWZ*FKtUVLln40BXC6Dk1iplgvyuYTtNYFtSj6sqXTrWc10InkjUOuW+HJ5bqctzIpwdKmre90A0YNtwtr8Op0dXGLrLNDrma5eJ88ieqUWN1nDzCiga*KCQ2IqiHntFcM3TUbGqFNhf7opKWLvubT3YsCq2tu1GEjTTWN75frGAhvegm0Jj44S+RP6G3d4webJUuD5XICAArMiGbkAa+8PhvjHbnOaLDiUMP3Bds7ew8uY+W5dPPUg71IuMw*QhSHjlZAudDaD1q3FBbuFS5AmbJc4lVm5ntX8HHcHn5ElIwwCAVE61hNlTyU699eYqruAR4J78ReFkt1C7JekcaQn6AFWpUWO7M5j*xygQyTY6dv7nw+lba+APJCP+BEpMVWJJmSg==", "LARAVEL_TOKEN":"6yeY18koE6cB9ieTT70zKwfg1iAh8ewPeSuTQMyEgeVKgWXAW7U4pEFuVXc4a568QeECfuRsfIFgxyvGSxhuw==" }
Case 2 : When Invalid Parameter
Error
{ "result": "error", "error": { "code": "3011", "msg": "Invalid Parameter" } }
Case 3 : When Duplicate Student
Error
{ "result": "error", "error": { "msg": "Email Address already registered" }, "status": "0", "LARAVEL_TOKEN":"6yeY18koE6cB9ieTT70zK+kzzH7KKgkJ4UMBYwsLXkj9VjO3QqkbpWgWb9vQWolQZPMIWnU8u4FuRyT3uxZubw==", "ACCESS_TOKEN": "" }
Case 4 : When Registration Closed by Admin
Error
{ "result":"error", "error":{ "code":"3029", "msg":"Registration is closed." } }
    • Related Articles

    • Register / Login Candidate with test link

      POSTRegister / Login Candidate with test link This API will be used to register or log in a candidate. Additionally, this API is used to assign another course to a registered candidate. Name and email address are required fields. Pass ak, sgn, and ts ...
    • Bulk Registration Candidate

      POSTBulk Registration Candidate This API will be used to register or log in a candidate. Additionally, this API is used to assign another course to a registered candidate. Name and email address are required fields. Pass ak, sgn, and ts as headers, ...
    • Webhook

      Webhook Webhooks are used to securely communicate results of tests to your systems or website in real time. Steps to create webhooks: Download and add the file to a public URL on your server. Create a webhook in the Admin Panel. Add your file URL to ...