APITest APIGet Test Template

Get test template

This endpoint Gets the test templates list based on the provided filter criteria.

Endpoint

 POST https://api.ezyhire.com/test/getTestTemplate

Request

Headers
USER-Key: User/API key for authentication
 
Body: json
{
  "pageNumber": 0,
  "pageSize": 0,
  "templateType": "SINGLE_CORRECT",
  "testType": "SYSTEM"
}
 
Field NamePossible Values/Enums
templateTypeSINGLE_CORRECT, MULTIPLE_CORRECT, CODING, PROMPT, CUSTOM, FREESTYLE, ALL
testTypeSYSTEM, CUSTOM

Response

Successful Response
Status Code: 200 OK
Content:json
{
 "statusCode": 200,
 "error": "string",
 "message": "Success",
 "data": [
   {
   "testTemplateId": "string",
   "templateName": "string",
   "templateType": "SINGLE_CORRECT",
   "employerId": "string",
   "createdBy": "string",
   "duration": 0,
   "totalQuestions": 0,
   "templateStructure": [
     {
       "templateStructureId": "string",
       "testTemplateId": "string",
       "noOfQuestions": 0,
       "marks": 0,
       "questionType": "SINGLE_CORRECT",
       "category": "string",
       "preferredLanguage": "string",
       "answerType": "NA",
       "categoryId": "string",
       "questionDifficulty": "EASY"
     }
   ],
   "questionMap": "string",
   "allowedAttempts": 0,
   "templateStatus": "ACTIVE",
   "templateCategory": "string",
   "createdOn": [
       YYYY,
       MM,
       DD,
       HH,
       MM,
       SS,
       NNNNNNN
     ]
 }
 ]
}

Fields with Enum Values

Field NamePossible Values/Enums
templateTypeSINGLE_CORRECT, MULTIPLE_CORRECT, CODING, PROMPT, CUSTOM, FREESTYLE, ALL
questionTypeSINGLE_CORRECT, MULTIPLE_CORRECT, CODING, PROMPT
questionDifficultyEASY,MODERATE, DIFFICULT, ALL
templateStatusACTIVE, INACTIVE
templateCategoryPROGRAMMING_LANGUAGES, DATA_AND_ANALYTICS, CRM_ERM_ETL, CLOUD_TECHNOLOGIES, OS_AND_SOFTWARE, OTHERS, SALES_MARKETING, ALL
answerTypeCODE_EXPLANATION, PROMPT, SUBJECTIVE_AI, SUBJECTIVE_MANUAL, NA, ALL
Error Response
Status Code: 400 Bad Request 
Content:json
{
  "Error": "message",
  "ErrorLine": "  \"pageNumber\": 0,",
  "Location": "Line: 0"
}
 
Error Response
Status Code: 401 Unauthorized 
Content:json
{
  "status": 401,
  "message": "Invalid User/API key"
  "error": "Please provide a valid User/API key"
}
 
Error Response
Status Code: 500 Internal Server Error 
Content:json
{
  "statusCode": 500,
  "error": "string",
  "message": "string",
  "data": "string"
}