# competition


## competition Properties

The competition API allows you to create, view, update, and delete individual, or a batch, of Exams.

| Attributes         | Type     | Description                                   
| ------------------ | -------- | --------------------------------------------- 
| exam_id            | integer  | ID of a Exam                                
| exam_title         | string   | Name of the Exam                            
| students           | integer  | students id's in the array ex -[56,78,32,98]    
| question           | array    | question array
| franchise          | integer  | franchise id 
| course_id          | integer  | course_id 
| level_id           | integer  | level_id
| topic_id           | integer  | topic_id  
| lesson_id          | integer  | lesson_id (optional)                           
| scheduled_time     | string   | Format: DD-MM-YYYY  HH:MM:SS  ex - 23-02-2028 14:34:29
| exam_status        | string   | available status active, inactive, closed    
| created_by         | integer  | user id of the user who has created a this Exam
| created_at         | integer  | Exam created time 
 
## List All Exams

```shell
curl -X GET https://vedaay-api.mulika.in/exams
-H "Content-Type: application/json" \
-H Authorization: Bearer eyJ0eXAiOiJKNiJ9.B7Y3J9FWtgjby4P8-LX_Vkeob6CE
```
> Responce:

```json
'{
    "status": "success",
    "message": "2 exams retrieved successfully",
    "code": 200,
    "pagination": {
        "current_page": 1,
        "per_page": 2,
        "total_records": 17,
        "total_pages": 9
    },
    "data": [
        {
            "exam_id": "27",
            "exam_title": "inter class",
            "students": "[22,88]",
            "question": "[{\"type\": \"mcq\", \"difficulty\": \"hard\", \"no_of_questions\": 20}, {\"type\": \"true_false\", \"difficulty\": \"easy\", \"no_of_questions\": 10}]",
            "franchise": "[58,25]",
            "course_id": "165",
            "level_id": "25",
            "topic_id": "155",
            "lesson_id": "175",
            "scheduled_time": "23-02-2028 14:34:29",
            "exam_status": "active",
            "created_by": "294",
            "created_at": "2026-04-20 15:33:00"
        },
        {
            "exam_id": "26",
            "exam_title": "inter class",
            "students": "[22,88]",
            "question": "[{\"type\": \"mcq\", \"difficulty\": \"hard\", \"no_of_questions\": 20}, {\"type\": \"mcq\", \"difficulty\": \"hard\", \"no_of_questions\": 20}]",
            "franchise": "[58,25]",
            "course_id": "165",
            "level_id": "25",
            "topic_id": "155",
            "lesson_id": "175",
            "scheduled_time": "23-02-2028 14:34:29",
            "exam_status": "active",
            "created_by": "294",
            "created_at": "2026-04-20 15:18:03"
        }
    ]
}'


```
<span style="background: #000; color: white; padding: 10px 10px; border-radius: 4px;  width: 100%;display: block;">
<span  style="background: #27cf3d; color: white; padding: 8px 24px; border-radius: 2px; font-weight: bold; ">GET</span> /exams
</span>  
 
1.  GET /exams 
2.  GET /exams?page=1&per_page=10 
3.  GET /exams?search=sem  
4.  GET /exams?exclude=18,21 
5.  GET /exams?include=15,23 
6.  GET /exams?order=asc 
7.  GET /exams?order=desc 
8.  GET /exams?filters[exam_status]=active 
5.  GET /exams?column_count=exam_status 
5.  GET /exams?fields=exam_id,exam_title
5. GET /exams?course_id=100&level_id=200

### Available Parameters

| Parameters         | Type     | Discription                                                             |
|--------------------|----------|------------------------------------------------------------------------ |
| page               | integer  | Current page of the collection. Default is                              |
| per_page           | integer  | Maximum number of items to be returned in the result set. Default is 10 |
| search             | string   | Limit results to those matching a string.                               |
| exclude            | array    | Ensure the result set excludes specific IDs                             |
| include            | array    | Limit the result set to specific Ids.                                   |
| order              | string   | Order sort attribute ascending or descending. Options: asc, desc        |
| filters            | array    | retrive the records of value passed for particular column
| column_count       | string   | get count of the data values for the field
| fields             | string   | column filter applied to get columns details seperated by comma ,
 
## Get Single Exam

```shell
curl -X GET https://vedaay-api.mulika.in/exams/27
-H "Content-Type: application/json" \
-H Authorization: Bearer eyJ0eXAiOiJKNiJ9.B7Y3J9FWtgjby4P8-LX_Vkeob6CE
```
> Responce:

```json
 '{
    "status": "success",
    "message": "exam retrieved successfully",
    "code": 200,
    "data": {
        "exam_id": "27",
        "exam_title": "inter class",
        "students": "[22,88]",
        "question": "[{\"type\": \"mcq\", \"difficulty\": \"hard\", \"no_of_questions\": 20}, {\"type\": \"true_false\", \"difficulty\": \"easy\", \"no_of_questions\": 10}]",
        "franchise": "[58,25]",
        "course_id": "165",
        "level_id": "25",
        "topic_id": "155",
        "lesson_id": "175",
        "scheduled_time": "23-02-2028 14:34:29",
        "exam_status": "active",
        "created_by": "294",
        "created_at": "2026-04-20 15:33:00"
    }
}'
```

<span style="background: #000; color: white; padding: 10px 10px; border-radius: 4px;  width: 100%;display: block;">
<span  style="background: #27cf3d; color: white; padding: 8px 24px; border-radius: 2px; font-weight: bold; ">GET</span> /exams/{Id}  
</span> 

### Parameters

| Parameter | Type    | Description       
| --------- | ------- | ----------------- 
| exam_id   | integer | ID of the exam  

## Create Exam

```shell
curl -X POST https://vedaay-api.mulika.in/exams \
-H "Content-Type: application/json" \
-H Authorization: Bearer eyJ0eXAiOiJKNiJ9.B7Y3J9FWtgjby4P8-LX_Vkeob6CE
-d '{
    "exam_title":"inter class",
    "students":"[22,88]", 
    "question":[ 
    {
        "type":"mcq",
        "difficulty":"hard",
        "no_of_questions": 20
    },
    {
        "type":"true_false",
        "difficulty":"easy",
        "no_of_questions": 10
    } 
],
    "franchise":"[58,25]",
    "course_id":"165",
    "level_id":"25",
    "topic_id": 155,
    "lesson_id":"175",
    "scheduled_time":"23-02-2028 14:34:29",
    "exam_status":"active"
  }'
 ```
> Responce:

```json
   '{
    "status": "success",
    "message": "exam created successfully.",
    "code": 200,
    "data": {
        "exam_id": "27",
        "exam_title": "inter class",
        "students": "[22,88]",
        "question": "[{\"type\": \"mcq\", \"difficulty\": \"hard\", \"no_of_questions\": 20}, {\"type\": \"true_false\", \"difficulty\": \"easy\", \"no_of_questions\": 10}]",
        "franchise": "[58,25]",
        "course_id": "165",
        "level_id": "25",
        "topic_id": "155",
        "lesson_id": "175",
        "scheduled_time": "23-02-2028 14:34:29",
        "exam_status": "active",
        "created_by": "294",
        "created_at": "2026-04-20 15:33:00"
    }
}'
```
<span style="background: #000; color: white; padding: 10px 10px; border-radius: 4px;  width: 100%;display: block;">
<span  style="background: #08c0b7; color: white; padding: 8px 24px; border-radius: 2px; font-weight: bold; ">POST</span> /exams
</span> 
 
 
## Update Exam

```shell
curl -X PUT https://vedaay-api.mulika.in/exams/17
-H "Content-Type: application/json" \
-H Authorization: Bearer eyJ0eXAiOiJKNiJ9.B7Y3J9FWtgjby4P8-LX_Vkeob6CE
-d '{
    "exam_title":"inter class",
    "students":"[22,88]", 
    "question":[ 
    {
        "type":"mcq",
        "difficulty":"hard",
        "no_of_questions": 21
    },
    {
        "type":"true_false",
        "difficulty":"easy",
        "no_of_questions": 10
    } 
],
    "franchise":"[58,25]",
    "course_id":"165",
    "level_id":"25",
    "topic_id": 155,
    "lesson_id":"175",
    "scheduled_time":"23-02-2028 14:34:29",
    "exam_status":"active"
  }'
```
> Responce:

```json
   '{
    "status": "success",
    "message": "exam updated successfully.",
    "code": 200,
    "data": {
        "exam_id": "17",
        "exam_title": "inter class",
        "students": "[22,88]",
        "question": "[{\"type\": \"mcq\", \"difficulty\": \"hard\", \"no_of_questions\": 20}, {\"type\": \"true_false\", \"difficulty\": \"easy\", \"no_of_questions\": 10}]",
        "franchise": "[58,25]",
        "course_id": "165",
        "level_id": "25",
        "topic_id": "155",
        "lesson_id": "175",
        "scheduled_time": "23-02-2028 14:34:29",
        "exam_status": "active",
        "created_by": "294",
        "created_at": "2026-04-16 18:24:26"
    }
}'
  
```
<span style="background: #000; color: white; padding: 10px 10px; border-radius: 4px;  width: 100%;display: block;">
<span  style="background: #08c0b7; color: white; padding: 8px 24px; border-radius: 2px; font-weight: bold; ">PUT</span> /exams/{id} 
</span> 
 

### Attributes

| Attributes         | Type     | Description                                   
| ------------------ | -------- | ----------------- 
| exam_id            | integer  | ID of a exam                                   
 
  
## Delete Exam

```shell
curl -X DELETE https://vedaay-api.mulika.in/exams/16
-H "Content-Type: application/json" \
-H Authorization: Bearer eyJ0eXAiOiJKNiJ9.B7Y3J9FWtgjby4P8-LX_Vkeob6CE
```
> Responce:

```json
'{
    "status": "success",
    "message": "Exam deleted successfully.",
    "code": 200,
    "data": {
        "exam_id": "16",
        "exam_title": "Classtest",
        "students": "58,25", 
        "question": "mcq",
        "franchise": "[58,25]",
        "course_id": "165",
        "level_id": "25",
        "topic_id": "155",
        "lesson_id": "175",
        "scheduled_time": "23-02-2028 10:11:00",
        "exam_status": "active",
        "created_by": "294",
        "created_at": "2026-04-16 18:23:43"
    }
}'
```
<span style="background: #000; color: white; padding: 10px 10px; border-radius: 4px;  width: 100%;display: block;">
<span  style="background: #c91c05; color: white; padding: 8px 24px; border-radius: 2px; font-weight: bold; ">DELETE</span> /exams/{id}
</span>
  

# Live Exam

The Live Exam API allows you to create, view, update, and delete individual, or a batch, of Exam.

## Live Exam Properties 
 

| Attributes        | Type     | Description                                  
| ----------------- | -------- | -------------------------------------------- 
| live_exam_id      | integer  | ID of the Live Exam                               
| exam_id           | string   | ID of exam                          
| live_exam_title   | string   | Title of the Live Exam           
| students          | integer  | students id's in the array ex -[56,78,32,98]          
| course_id         | integer  | ID of the course                              
| level_id          | integer  | ID of the level                           
| topic_id          | integer  | ID of the topic                       
| lesson_id         | integer  | ID of the lesson 
| created_by        | integer  | user id of the user who has created a this Live Exam
| created_at        | integer  | user created time

## Get All Live Exam


```shell
curl -X GET https://vedaay-api.mulika.in/live_exams
-H "Content-Type: application/json" \
-H Authorization: Bearer eyJ0eXAiOiJKNiJ9.B7Y3J9FWtgjby4P8-LX_Vkeob6CE
```
> Responce:

```json
'{
    "status": "success",
    "message": "all 2 live exams retrieved successfully",
    "code": 200,
    "pagination": {
        "current_page": 1,
        "per_page": 2,
        "total_records": 6,
        "total_pages": 3
    },
    "data": [
        {
            "live_exam_id": "5",
            "exam_id": "21",
            "live_exam_title": "new exam",
            "students": "156,45",
            "course_id": "165",
            "level_id": "25",
            "topic_id": "155",
            "lesson_id": "175",
            "created_by": "294",
            "created_at": "2026-04-18 11:30:57"
        },
        {
            "live_exam_id": "1",
            "exam_id": "21",
            "live_exam_title": "new exam",
            "students": "156,45",
            "course_id": "165",
            "level_id": "25",
            "topic_id": "155",
            "lesson_id": "175",
            "created_by": "294",
            "created_at": "2026-04-17 18:09:00"
        }
    ]
}'
```
 <span style="background: #000; color: white; padding: 10px 10px; border-radius: 4px;  width: 100%;display: block;">
<span  style="background: #27cf3d; color: white; padding: 8px 24px; border-radius: 2px; font-weight: bold; ">GET</span> /live_exams 
</span> 
 
1. GET /live_exams 
2. GET /live_exams?page=1&per_page=10 
3. GET /live_exams?search=  
4. GET /live_exams?exclude=188,201 
5. GET /live_exams?include=165,253 
6. GET /live_exams?order=asc 
7. GET /live_exams?order=desc 
8. GET /live_exams?filters[students]= 
8. GET /live_exams?column_count=course_id 
9. GET /live_exams?fields=live_exam_id,live_exam_title 

### Available Parameters

| Parameters         | Type     | Description                           
| ------------------ | -------- | ----------------------------------- 
| page               | integer  | Current page of the collection. Default is 1.    
| per_page           | integer  | Maximum number of items to be returned in the result set. Default is 10.  
| search             | string   | Limit results to those matching a  string.                 
| exclude            | array    | Ensure the result set excludes specific  IDs.               
| include            | array    | Limit the result set to specific  IDs.


## Get Single Live Exam

```shell
curl -X GET https://vedaay-api.mulika.in/liveexams/20
-H "Content-Type: application/json" \
-H Authorization: Bearer eyJ0eXAiOiJKNiJ9.B7Y3J9FWtgjby4P8-LX_Vkeob6CE
```
> Responce:

```json
 '{
    "status": "success",
    "message": "live_exam retrieved successfully",
    "code": 200,
    "data": {
        "live_exam_id": "20",
        "exam_id": "23",
        "live_exam_title": "mahabharat exam live",
        "students": "21,75",
        "course_id": "165",
        "level_id": "25",
        "topic_id": "155",
        "lesson_id": "175",
        "created_by": "302",
        "created_at": "2026-04-27 17:06:52"
    }
}'
```

<span style="background: #000; color: white; padding: 10px 10px; border-radius: 4px;  width: 100%;display: block;">
<span  style="background: #27cf3d; color: white; padding: 8px 24px; border-radius: 2px; font-weight: bold; ">GET</span> /liveexams/{id}  
</span> 

### Parameters

| Parameter    | Type    | Description       
| ------------ | ------- | -------------------- 
| live_exam_id | integer | ID of the live exam  

## Create Live Exam

```shell
curl -X POST https://vedaay-api.mulika.in/liveexams \
-H "Content-Type: application/json" \
-H Authorization: Bearer eyJ0eXAiOiJKNiJ9.B7Y3J9FWtgjby4P8-LX_Vkeob6CE
-d '{
    "exam_id":"23",
    "live_exam_title":"mahabharat exam live",
    "students":"21,75", 
    "course_id":"165",
    "level_id":"25",
    "topic_id": "155",
    "lesson_id":"175"
  }'
 ```
> Responce:

```json
   '{
    "status": "success",
    "message": "live exam created successfully.",
    "code": 200,
    "data": {
        "live_exam_id": "20",
        "exam_id": "23",
        "live_exam_title": "mahabharat exam live",
        "students": "21,75",
        "course_id": "165",
        "level_id": "25",
        "topic_id": "155",
        "lesson_id": "175",
        "created_by": "302",
        "created_at": "2026-04-27 17:06:52"
    }
}'
```
<span style="background: #000; color: white; padding: 10px 10px; border-radius: 4px;  width: 100%;display: block;">
<span  style="background: #08c0b7; color: white; padding: 8px 24px; border-radius: 2px; font-weight: bold; ">POST</span> /liveexams
</span> 
 


## Delete Live Exam

 
```shell
curl -X DELETE https://vedaay-api.mulika.in/liveexams/21
-H "Content-Type: application/json" \
-H Authorization: Bearer eyJ0eXAiOiJKNiJ9.B7Y3J9FWtgjby4P8-LX_Vkeob6CE
```
> Responce:

```json
'{
    "status": "success",
    "message": "Live exam deleted successfully.",
    "code": 200,
    "data": {
        "live_exam_id": "21",
        "exam_id": "23",
        "live_exam_title": "ramayan exam live",
        "students": "21,75",
        "course_id": "165",
        "level_id": "25",
        "topic_id": "155",
        "lesson_id": "175",
        "created_by": "302",
        "created_at": "2026-04-27 17:29:27"
    }
}'
```
<span style="background: #000; color: white; padding: 10px 10px; border-radius: 4px;  width: 100%;display: block;">
<span  style="background: #c91c05; color: white; padding: 8px 24px; border-radius: 2px; font-weight: bold; ">DELETE</span> /live_exams/{id}
</span>

# Exam Questions


## Exam Questions Properties

The Exam API allows you to create, view, update, and delete individual, or a batch, of Exams.

| Attributes    | Type     | Description                                   
| --------------| -------- | --------------------------------------------- 
| eq_id         | integer  | ID of a Exam Question                                
| exam_id       | string   | Name of the Exam                            
| question_id   | integer  | question id's in the array ex -[56,78,32,98]    
| created_at    | integer  | Exam Question created time 
 
## List All Exam Questions

```shell
curl -X GET https://vedaay-api.mulika.in/exams
-H "Content-Type: application/json" \
-H Authorization: Bearer eyJ0eXAiOiJKNiJ9.B7Y3J9FWtgjby4P8-LX_Vkeob6CE
```
> Responce:

```json
'{
    "status": "success",
    "message": "all 4 exam questions retrieved successfully",
    "code": 200,
    "pagination": {
        "current_page": 1,
        "per_page": 10,
        "total_records": 4,
        "total_pages": 1
    },
    "data": [
        {
            "eq_id": "1",
            "exam_id": "12",
            "question_id": "11",
            "created_at": "2026-04-28 15:33:42"
        },
        {
            "eq_id": "2",
            "exam_id": "12",
            "question_id": "11",
            "created_at": "2026-04-28 15:34:20"
        },
        {
            "eq_id": "3",
            "exam_id": "12",
            "question_id": "11",
            "created_at": "2026-04-28 15:36:06"
        },
        {
            "eq_id": "9",
            "exam_id": "12",
            "question_id": "11,21",
            "created_at": "2026-04-28 15:40:38"
        }
    ]
}'

```
<span style="background: #000; color: white; padding: 10px 10px; border-radius: 4px;  width: 100%;display: block;">
<span  style="background: #27cf3d; color: white; padding: 8px 24px; border-radius: 2px; font-weight: bold; ">GET</span> /exam_questions
</span>  
 
1. GET /exam_questions 
2. GET /exam_questions?page=1&per_page=10 
3. GET /exam_questions?search=sem  
4. GET /exam_questions?exclude=18,21 
5. GET /exam_questions?include=15,23 
6. GET /exam_questions?order=asc 
7. GET /exam_questions?order=desc 
8. GET /exam_questions?filters[exam_status]=active 
8. GET /exam_questions?column_count=exam_status 
9. GET /exam_questions?fields=eq_id,exam_id 

### Available Parameters

| Parameters         | Type     | Discription                                                             
|--------------------|----------|------------------------------------------------------------------------ 
| page               | integer  | Current page of the collection. Default is                              
| per_page           | integer  | Maximum number of items to be returned in the result set. Default is 10 
| search             | string   | Limit results to those matching a string.                               
| exclude            | array    | Ensure the result set excludes specific IDs                             
| include            | array    | Limit the result set to specific Ids.                                   
| order              | string   | Order sort attribute ascending or descending. Options: asc, desc        
| filters            | array    | retrive the records of value passed for particular column
| column_count       | string   | get count of the data values for the field
| fields             | string   | column filter applied to get columns details seperated by comma ,
  

## Get Single Exam Questions

```shell
curl -X GET https://vedaay-api.mulika.in/exam_questions/9
-H "Content-Type: application/json" \
-H Authorization: Bearer eyJ0eXAiOiJKNiJ9.B7Y3J9FWtgjby4P8-LX_Vkeob6CE
```
> Responce:

```json
 '{
    "status": "success",
    "message": "exam question retrieved successfully",
    "code": 200,
    "data": {
        "eq_id": "9",
        "exam_id": "12",
        "question_id": "11,21",
        "created_at": "2026-04-28 15:40:38"
    }
}'
```

<span style="background: #000; color: white; padding: 10px 10px; border-radius: 4px;  width: 100%;display: block;">
<span  style="background: #27cf3d; color: white; padding: 8px 24px; border-radius: 2px; font-weight: bold; ">GET</span> /exam_questions/{Id}  
</span> 

### Parameters

| Parameter | Type    | Description       
| --------- | ------- | ------------------------
| eq_id     | integer | ID of the Exam Questions 

## Create Exam Questions

```shell
curl -X POST https://vedaay-api.mulika.in/exam_questions \
-H "Content-Type: application/json" \
-H Authorization: Bearer eyJ0eXAiOiJKNiJ9.B7Y3J9FWtgjby4P8-LX_Vkeob6CE
-d '{
    "exam_id":"12",
    "question_id":"11,21" 
  }'
 ```
> Responce:

```json
   '{
    "status": "success",
    "message": "exam question created successfully.",
    "code": 200,
    "data": {
        "eq_id": "9",
        "exam_id": "12",
        "question_id": "11,21",
        "created_at": "2026-04-28 15:40:38"
    }
}'
```
<span style="background: #000; color: white; padding: 10px 10px; border-radius: 4px;  width: 100%;display: block;">
<span  style="background: #08c0b7; color: white; padding: 8px 24px; border-radius: 2px; font-weight: bold; ">POST</span> /exams
</span> 
 
  
## Delete Exam Questions

```shell
curl -X DELETE https://vedaay-api.mulika.in/exam_questions/8
-H "Content-Type: application/json" \
-H Authorization: Bearer eyJ0eXAiOiJKNiJ9.B7Y3J9FWtgjby4P8-LX_Vkeob6CE
```
> Responce:

```json
'{
    "status": "success",
    "message": "exam_question deleted successfully.",
    "code": 200,
    "data": {
        "eq_id": "8",
        "exam_id": "12",
        "question_id": "11,2",
        "created_at": "2026-04-28 15:40:31"
    }
}'
```
<span style="background: #000; color: white; padding: 10px 10px; border-radius: 4px;  width: 100%;display: block;">
<span  style="background: #c91c05; color: white; padding: 8px 24px; border-radius: 2px; font-weight: bold; ">DELETE</span> /exam_questions/{id}
</span>

# Exam Answers

The Live Exam API allows you to create, view, update, and delete individual, or a batch, of Exam.

## Exam Answers Properties 
 

| Attributes        | Type     | Description                                  
| ----------------- | -------- | -------------------------------------------- 
| answer_id         | integer  | ID of the answer                               
| eq_id             | integer  | ID of exam question                       
| students          | integer  | students id's in the array ex -[56,78,32,98]                   
| answer            | json     | answer json                     
| created_at        | integer  | answer created time

## Get All Exam Answers

```shell
curl -X GET https://vedaay-api.mulika.in/exam_answers
-H "Content-Type: application/json" \
-H Authorization: Bearer eyJ0eXAiOiJKNiJ9.B7Y3J9FWtgjby4P8-LX_Vkeob6CE
```
> Responce:

```json
'{
    "status": "success",
    "message": "all 4 exam answers retrieved successfully",
    "code": 200,
    "pagination": {
        "current_page": 1,
        "per_page": 10,
        "total_records": 4,
        "total_pages": 1
    },
    "data": [
        {
            "answer_id": "3",
            "eq_id": "14",
            "students": "11,21",
            "answer": "answer",
            "created_at": "2026-04-29 11:58:48"
        },
        {
            "answer_id": "5",
            "eq_id": "14",
            "students": "11,21",
            "answer": "answer",
            "created_at": "2026-04-29 12:26:31"
        },
        {
            "answer_id": "6",
            "eq_id": "65",
            "students": "54,32",
            "answer": "corect",
            "created_at": "2026-04-29 12:29:22"
        },
        {
            "answer_id": "7",
            "eq_id": "65",
            "students": "54,32",
            "answer": "corect",
            "created_at": "2026-04-30 10:52:36"
        }
    ]
}'
```
 <span style="background: #000; color: white; padding: 10px 10px; border-radius: 4px;  width: 100%;display: block;">
<span  style="background: #27cf3d; color: white; padding: 8px 24px; border-radius: 2px; font-weight: bold; ">GET</span> /exam_answers 
</span> 
 
1. GET /exam_answers 
2. GET /exam_answers?page=1&per_page=10 
3. GET /exam_answers?search=  
4. GET /exam_answers?exclude=188,201 
5. GET /exam_answers?include=165,253 
6. GET /exam_answers?order=asc 
7. GET /exam_answers?order=desc 
8. GET /exam_answers?filters[students]= 
8. GET /exam_answers?column_count=course_id 
9. GET /exam_answers?fields=answer_id,eq_id 

### Available Parameters

| Parameters         | Type     | Description                           
| ------------------ | -------- | ----------------------------------- 
| page               | integer  | Current page of the collection. Default is 1.    
| per_page           | integer  | Maximum number of items to be returned in the result set. Default is 10.  
| search             | string   | Limit results to those matching a  string.                 
| exclude            | array    | Ensure the result set excludes specific  IDs.               
| include            | array    | Limit the result set to specific  IDs.


## Get Single Exam Answers

```shell
curl -X GET https://vedaay-api.mulika.in/exam_answers/5
-H "Content-Type: application/json" \
-H Authorization: Bearer eyJ0eXAiOiJKNiJ9.B7Y3J9FWtgjby4P8-LX_Vkeob6CE
```
> Responce:

```json
 '{
    "status": "success",
    "message": "answer retrieved successfully",
    "code": 200,
    "data": {
        "answer_id": "5",
        "eq_id": "14",
        "students": "11,21",
        "answer": "answer",
        "created_at": "2026-04-29 12:26:31"
    }
}'
```

<span style="background: #000; color: white; padding: 10px 10px; border-radius: 4px;  width: 100%;display: block;">
<span  style="background: #27cf3d; color: white; padding: 8px 24px; border-radius: 2px; font-weight: bold; ">GET</span> /exam_answers/{id}  
</span> 

### Parameters

| Parameter   | Type    | Description       
| ------------| ------- | ------------------
| answer_id   | integer | ID of the answer 

## Create Exam Answers

```shell
curl -X POST https://vedaay-api.mulika.in/exam_answers \
-H "Content-Type: application/json" \
-H Authorization: Bearer eyJ0eXAiOiJKNiJ9.B7Y3J9FWtgjby4P8-LX_Vkeob6CE
-d '{
    "eq_id":"65",
    "students":"54,32",
    "answer" : "correct"
  }'
 ```
> Responce:

```json
   '{
    "status": "success",
    "message": "exam_answer created successfully.",
    "code": 200,
    "data": {
        "answer_id": "7",
        "eq_id": "65",
        "students": "54,32",
        "answer": "correct",
        "created_at": "2026-04-30 10:52:36"
    }
}'
```
<span style="background: #000; color: white; padding: 10px 10px; border-radius: 4px;  width: 100%;display: block;">
<span  style="background: #08c0b7; color: white; padding: 8px 24px; border-radius: 2px; font-weight: bold; ">POST</span> /exam_answers
</span> 
  
## Delete Exam Answers

```shell
curl -X DELETE https://vedaay-api.mulika.in/exam_answers/4
-H "Content-Type: application/json" \
-H Authorization: Bearer eyJ0eXAiOiJKNiJ9.B7Y3J9FWtgjby4P8-LX_Vkeob6CE
```
> Responce:

```json
'{
    "status": "success",
    "message": "exam_answer deleted successfully.",
    "code": 200,
    "data": {
        "answer_id": "4",
        "eq_id": "14",
        "students": "11,211",
        "answer": "answer",
        "created_at": "2026-04-29 12:07:18"
    }
}'
```
<span style="background: #000; color: white; padding: 10px 10px; border-radius: 4px;  width: 100%;display: block;">
<span  style="background: #c91c05; color: white; padding: 8px 24px; border-radius: 2px; font-weight: bold; ">DELETE</span> /exam_answers/{id}
</span>

# Class Room Practice Test 

The Live Exam API allows you to create, view, update, and delete individual, or a batch, of Class Room Practice Test.

## Class Room Practice Test
 
|     Attributes         | Type     | Description                                  
| -----------------------| -------- | --------------------------------- 
| class_room_practice_id | integer  | ID of Class Room Practice Test                             
| question_answer        | json     | question and answer                                 
| course_id              | integer  | ID of the course                              
| level_id               | integer  | ID of the level                           
| topic_id               | integer  | ID of the topic                       
| lesson_id              | integer  | ID of the lesson 
| start_date             | string   | start date of Class Room Practice Test
| end_date               | string   | end date of Class Room Practice Test 
| created_by             | integer  | user id of the user who has created a this Class Room Practice Test
| created_at             | integer  | Class Room Test created time

## Get All Class Room Practice Test


```shell
curl -X GET https://vedaay-api.mulika.in/class_room_practice_test
-H "Content-Type: application/json" \
-H Authorization: Bearer eyJ0eXAiOiJKNiJ9.B7Y3J9FWtgjby4P8-LX_Vkeob6CE
```
> Responce:

```json
'{
    "status": "success",
    "message": "all 2 class_room_tests retrieved successfully",
    "code": 200,
    "pagination": {
        "current_page": 1,
        "per_page": 10,
        "total_records": 2,
        "total_pages": 1
    },
    "data": [
        {
            "class_room_practice_id": "6",
            "question_answer": "[{\"type\": \"mcq\", \"difficulty\": \"hard\", \"no_of_questions\": 21}, {\"type\": \"true_false\", \"difficulty\": \"easy\", \"no_of_questions\": 10}]",
            "course_id": "165",
            "level_id": "25",
            "topic_id": "155",
            "lesson_id": "175", 
            "created_by": "294",
            "created_at": "2026-05-04 17:56:58",
            "course_title": "Vedaay Abacus",
            "level_name": "DOMS "
        },
        {
            "class_room_practice_id": "7",
            "question_answer": "[{\"type\": \"mcq\", \"difficulty\": \"hard\", \"no_of_questions\": 21}, {\"type\": \"true_false\", \"difficulty\": \"easy\", \"no_of_questions\": 10}]",
            "course_id": "165",
            "level_id": "25",
            "topic_id": "155",
            "lesson_id": "175", 
            "created_by": "294",
            "created_at": "2026-05-04 18:09:18",
            "course_title": "Vedaay Abacus",
            "level_name": "DOMS "
        }
    ]
}'
```
 <span style="background: #000; color: white; padding: 10px 10px; border-radius: 4px;  width: 100%;display: block;">
<span  style="background: #27cf3d; color: white; padding: 8px 24px; border-radius: 2px; font-weight: bold; ">GET</span> /class_room_practice_test 
</span> 
 
1. GET /class_room_practice_test 
2. GET /class_room_practice_test?page=1&per_page=10 
3. GET /class_room_practice_test?search=  
4. GET /class_room_practice_test?exclude=188,201 
5. GET /class_room_practice_test?include=165,253 
6. GET /class_room_practice_test?order=asc 
7. GET /class_room_practice_test?order=desc 
8. GET /class_room_practice_test?filters[course_id]= 
8. GET /class_room_practice_test?column_count=course_id 
9. GET /class_room_practice_test?fields=class_room_practice_id,question_answer 

### Available Parameters

| Parameters         | Type     | Description                           
| ------------------ | -------- | ----------------------------------- 
| page               | integer  | Current page of the collection. Default is 1.    
| per_page           | integer  | Maximum number of items to be returned in the result set. Default is 10.  
| search             | string   | Limit results to those matching a  string.                 
| exclude            | array    | Ensure the result set excludes specific  IDs.               
| include            | array    | Limit the result set to specific  IDs.


## Get Single Class Room Practice Test

```shell
curl -X GET https://vedaay-api.mulika.in/class_room_practice_test/2
-H "Content-Type: application/json" \
-H Authorization: Bearer eyJ0eXAiOiJKNiJ9.B7Y3J9FWtgjby4P8-LX_Vkeob6CE
```
> Responce:

```json
 '{
    "status": "success",
    "message": "class_room_test retrieved successfully",
    "code": 200,
    "data": {
        "class_room_practice_id": "7",
        "question_answer": "[{\"type\": \"mcq\", \"difficulty\": \"hard\", \"no_of_questions\": 21}, {\"type\": \"true_false\", \"difficulty\": \"easy\", \"no_of_questions\": 10}]",
        "course_id": "165",
        "level_id": "25",
        "topic_id": "155",
        "lesson_id": "175",
        "start_date": "23-02-2028 14:34:29",
        "end_date": "23-02-2028 14:34:29", 
        "created_by": "294",
        "created_at": "2026-05-04 18:09:18"
    }
}'
```

<span style="background: #000; color: white; padding: 10px 10px; border-radius: 4px;  width: 100%;display: block;">
<span  style="background: #27cf3d; color: white; padding: 8px 24px; border-radius: 2px; font-weight: bold; ">GET</span> /class_room_practice_test/{id}  
</span> 

### Parameters

|    Parameter           | Type    | Description       
|----------------------- | ------- | ---------------------
| class_room_practice_id | integer | ID of the class room practice id  


## Questions for Class Room Practice Test

```shell
curl -X GET https://vedaay-api.mulika.in/class_room_practice_test/question/2
-H "Content-Type: application/json" \
-H Authorization: Bearer eyJ0eXAiOiJKNiJ9.B7Y3J9FWtgjby4P8-LX_Vkeob6CE
```
> Responce:

```json
 '{
    "status": "success",
    "message": "4 questions for class room test retrieved successfully.",
    "code": 200, 
    "total_questions": 4,
    "data": [
        {
            "type": "text",
            "difficulty": "easy",
            "questions": [
                {
                    "question_id": "636",
                    "question_text": "what is today ?",
                    "sub_question": "",
                    "answer_type": "fill_blank",
                    "question_type": "text",
                    "question_tags": "hello",
                    "answer": "Tuesday",
                    "solving_time": null,
                    "question_difficulty": "easy",
                    "question_marks": "5",
                    "question_created_at": "2026-05-30 11:18:32",
                    "course_id": "6",
                    "lesson_id": "175",
                    "level_id": "25",
                    "topic_id": null,
                    "options": "fghyjn",
                    "created_by": null
                },
                {
                    "question_id": "637",
                    "question_text": "who is besides me ?",
                    "sub_question": "",
                    "answer_type": "fill_blank",
                    "question_type": "text",
                    "question_tags": "kilo",
                    "answer": "abhayy",
                    "solving_time": null,
                    "question_difficulty": "easy",
                    "question_marks": "7",
                    "question_created_at": "2026-05-30 12:18:35",
                    "course_id": "4",
                    "lesson_id": "171",
                    "level_id": "25",
                    "topic_id": null,
                    "options": "sderfgt",
                    "created_by": null
                }
            ]
        },
        {
            "type": "abacus_flashcard",
            "difficulty": "easy",
            "questions": [
                {
                    "question_id": "639",
                    "question_text": "test appli new",
                    "sub_question": "",
                    "answer_type": "mcq",
                    "question_type": "abacus_flashcard",
                    "question_tags": "crown",
                    "answer": "",
                    "solving_time": null,
                    "question_difficulty": "easy",
                    "question_marks": "1",
                    "question_created_at": "2026-05-30 12:18:30",
                    "course_id": "73",
                    "lesson_id": "175",
                    "level_id": "25",
                    "topic_id": null,
                    "options": [
                        "option1",
                        "option2",
                        "option3",
                        "option4"
                    ],
                    "created_by": null
                },
                {
                    "question_id": "640",
                    "question_text": "test appli new",
                    "sub_question": "",
                    "answer_type": "fill_blank",
                    "question_type": "abacus_flashcard",
                    "question_tags": "siera3",
                    "answer": "iPhone",
                    "solving_time": null,
                    "question_difficulty": "easy",
                    "question_marks": "1",
                    "question_created_at": "2026-05-30 12:22:45",
                    "course_id": "73",
                    "lesson_id": "175",
                    "level_id": "25",
                    "topic_id": null,
                    "options": [
                        "option1",
                        "option2",
                        "option3",
                        "option4"
                    ],
                    "created_by": "152"
                }
            ]
        }
    ]
}'
```

<span style="background: #000; color: white; padding: 10px 10px; border-radius: 4px;  width: 100%;display: block;">
<span  style="background: #27cf3d; color: white; padding: 8px 24px; border-radius: 2px; font-weight: bold; ">GET</span> /class_room_practice_test/question/{id}  
</span> 



## Create Class Room Practice Test

```shell
curl -X POST https://vedaay-api.mulika.in/class_room_practice_test \
-H "Content-Type: application/json" \
-H Authorization: Bearer eyJ0eXAiOiJKNiJ9.B7Y3J9FWtgjby4P8-LX_Vkeob6CE
-d '{
    "question_answer":[ 
    {
        "type":"mcq",
        "difficulty":"hard",
        "no_of_questions": 21
    },
    {
        "type":"true_false",
        "difficulty":"easy",
        "no_of_questions": 10
    } 
],
    "start_date":"23-02-2028 14:34:29",
    "end_date":"23-02-2028 14:34:29",
    "course_id":"165",
    "level_id":"25",
    "topic_id": "155",
    "lesson_id":"175"
  }'
 ```
> Responce:

```json
   '{
    "status": "success",
    "message": "class room test created successfully.",
    "code": 200,
    "data": {
        "class_room_practice_id": "6",
        "question_answer": "[{\"type\": \"mcq\", \"difficulty\": \"hard\", \"no_of_questions\": 21}, {\"type\": \"true_false\", \"difficulty\": \"easy\", \"no_of_questions\": 10}]",
        "course_id": "165",
        "level_id": "25",
        "topic_id": "155",
        "lesson_id": "175",
        "start_date": "23-02-2028 14:34:29",
        "end_date": "23-02-2028 14:34:29", 
        "created_by": "294",
        "created_at": "2026-05-04 17:56:58"
    }
}'
```
<span style="background: #000; color: white; padding: 10px 10px; border-radius: 4px;  width: 100%;display: block;">
<span  style="background: #08c0b7; color: white; padding: 8px 24px; border-radius: 2px; font-weight: bold; ">POST</span> /class_room_practice_test
</span> 
 

## Delete Class Room Practice Test
 
```shell
curl -X DELETE https://vedaay-api.mulika.in/class_room_practice_test/4
-H "Content-Type: application/json" \
-H Authorization: Bearer eyJ0eXAiOiJKNiJ9.B7Y3J9FWtgjby4P8-LX_Vkeob6CE
```
> Responce:

```json
'{
    "status": "success",
    "message": "class_room_test deleted successfully.",
    "code": 200,
    "data": {
        "class_room_practice_id": "8",
        "question_answer": "[{\"type\": \"mcq\", \"difficulty\": \"hard\", \"no_of_questions\": 21}, {\"type\": \"true_false\", \"difficulty\": \"easy\", \"no_of_questions\": 10}]",
        "course_id": "165",
        "level_id": "25",
        "topic_id": "155",
        "lesson_id": "175",
        "start_date": "23-02-2028 14:34:29",
        "end_date": "23-02-2028 14:34:29", 
        "created_by": "294",
        "created_at": "2026-05-04 18:11:19"
    }
}'
```
<span style="background: #000; color: white; padding: 10px 10px; border-radius: 4px;  width: 100%;display: block;">
<span  style="background: #c91c05; color: white; padding: 8px 24px; border-radius: 2px; font-weight: bold; ">DELETE</span> /class_room_practice_test/{id}
</span>
