
# Courses

## Courses Properties

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

| Attributes         | Type     | Description                                   
| ------------------ | -------- | --------------------------------------------- 
| course_id          | integer  | ID of a course                                
| course_title       | string   | Name of the course   
| short_description  | string   | short description of the course                        
| course_description | string   | Description of the course                     
| course_price       | integer  | Price of the course                            
| course_status      | enum     | Active or Inactive status of the course   
| course_icon        | integer  | course_icon of the course                     
| course_img         | integer  | course_img of the course                            
| course_gallary     | array    | multiple media course    
| created_by         | integer  | user id of the user who has created a this user
| created_at         | integer  | user created time
| updated_at         | integer  | user updated time
 
## List All Courses

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

```json
'{
    "status": "success",
    "message": "1 courses retrieved successfully",
    "code": 200,
    "pagination": {
        "current_page": 1,
        "per_page": 1,
        "total_records": 7,
        "total_pages": 7
    },
    "data": [
        {
            "course_id": "297",
            "course_title": "Spider Man",
            "short_description": "Famous spiders",
            "course_description": "Spider Man is a popular character",
            "course_status": "active",
            "course_icon": {
                "media_id": "70",
                "media_src": "https://vedaay-api.mulika.in/media/src/70/1772189405_logo_03.png",
                "media_alt": "pinga",
                "media_title": "hokua",
                "media_description": "apksd"
            },
            "course_img": {
                "media_id": "75",
                "media_src": "https://vedaay-api.mulika.in/media/src/75/1772262928_Bell-Gif%20%285%29.gif",
                "media_alt": "pinkflowr",
                "media_title": "purple",
                "media_description": "yelloflr"
            },
            "course_gallary": [
                {
                    "media_id": "68",
                    "media_src": "https://vedaay-api.mulika.in/media/src/68/1772189071_ex_marketing_catlog.sql.zip",
                    "media_alt": "pinga",
                    "media_title": "hokua",
                    "media_description": "apksd"
                },
                {
                    "media_id": "69",
                    "media_src": "https://vedaay-api.mulika.in/media/src/69/1772189212_Routes.php%281%29.zip",
                    "media_alt": "pinga",
                    "media_title": "hokua",
                    "media_description": "apksd"
                },
                {
                    "media_id": "70",
                    "media_src": "https://vedaay-api.mulika.in/media/src/70/1772189405_logo_03.png",
                    "media_alt": "pinga",
                    "media_title": "hokua",
                    "media_description": "apksd"
                },
                {
                    "media_id": "71",
                    "media_src": "https://vedaay-api.mulika.in/media/src/71/1772257802_logo_03.png",
                    "media_alt": "pinga",
                    "media_title": "hokua",
                    "media_description": "apksd"
                }
            ],
            "created_by": "497",
            "created_at": "2026-04-02 09:36:39",
            "updated_at": "2026-04-02 09:36:39"
        }
    ]
}'


```
<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> /courses
</span>  
 
1. GET /courses 
2. GET /courses?page=1&per_page=10 
3. GET /courses?search=courses  
4. GET /courses?exclude=188,201 
5. GET /courses?include=165,253 
6. GET /courses?order=asc 
7. GET /courses?order=desc 
8. GET /courses?filters[course_status]=active 
8. GET /courses?column_count=course_status 
9. GET /courses?fields=course_id,course_title 

### 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 Course

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

```json
 '{
    "status": "success",
    "message": "Course retrieved successfully",
    "code": 200,
    "data": {
        "course_id": "287",
        "course_title": "Fightr Pilot",
        "short_description": "Famous spiders",
        "course_description": "Fightr Aeroplane pilot in is a hard job",
        "course_status": "active",
        "course_icon": {
            "media_id": "66",
            "media_src": "https://vedaay-api.mulika.in/media/src/66/1772189037_product.txt.zip",
            "media_alt": "pinga",
            "media_title": "hokua",
            "media_description": "apksd"
        },
        "course_img": {
            "media_id": "67",
            "media_src": "https://vedaay-api.mulika.in/media/src/67/1772189047_product.txt.zip",
            "media_alt": "pinga",
            "media_title": "hokua",
            "media_description": "apksd"
        },
        "course_gallary": [
            {
                "media_id": "68",
                "media_src": "https://vedaay-api.mulika.in/media/src/68/1772189071_ex_marketing_catlog.sql.zip",
                "media_alt": "pinga",
                "media_title": "hokua",
                "media_description": "apksd"
            },
            {
                "media_id": "69",
                "media_src": "https://vedaay-api.mulika.in/media/src/69/1772189212_Routes.php%281%29.zip",
                "media_alt": "pinga",
                "media_title": "hokua",
                "media_description": "apksd"
            },
            {
                "media_id": "70",
                "media_src": "https://vedaay-api.mulika.in/media/src/70/1772189405_logo_03.png",
                "media_alt": "pinga",
                "media_title": "hokua",
                "media_description": "apksd"
            },
            {
                "media_id": "71",
                "media_src": "https://vedaay-api.mulika.in/media/src/71/1772257802_logo_03.png",
                "media_alt": "pinga",
                "media_title": "hokua",
                "media_description": "apksd"
            }
        ],
        "created_by": "302",
        "created_at": "2026-03-24 10:45:25",
        "updated_at": "2026-03-24 10:45:25"
    }
}'
```

<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> /courses/{courseId}  
</span> 

### Parameters

| Parameter | Type    | Description       |
| --------- | ------- | ----------------- |
| course_id | integer | ID of the courses | 

## Create Course

```shell
curl -X POST https://vedaay-api.mulika.in/courses \
-H "Content-Type: application/json" \
-H Authorization: Bearer eyJ0eXAiOiJKNiJ9.B7Y3J9FWtgjby4P8-LX_Vkeob6CE
-d '{
    "course_title":"Spider Man",
    "short_description": "Famous spiders",
    "course_description":"Spider Man is a popular character",
    "course_status":"active",
    "course_icon": "56",
    "course_img": "56",
    "course_gallary": [77,69,70,71]
  }'
 ```
> Responce:

```json
   '{
    "status": "success",
    "message": "Course created successfully.",
    "code": 200,
    "data": {
        "course_id": "304",
        "course_title": "Spider Man",
        "short_description": "Famous spiders",
        "course_description": "Spider Man is a popular character",
        "course_status": "active",
        "course_icon": {
            "media_id": "56",
            "media_src": "https://vedaay-api.mulika.in/media/src/56/1769861870_MainH1.png",
            "media_alt": "om storage",
            "media_title": "om storage",
            "media_description": "om storage"
        },
        "course_img": {
            "media_id": "56",
            "media_src": "https://vedaay-api.mulika.in/media/src/56/1769861870_MainH1.png",
            "media_alt": "om storage",
            "media_title": "om storage",
            "media_description": "om storage"
        },
        "course_gallary": [
            {
                "media_id": "69",
                "media_src": "https://vedaay-api.mulika.in/media/src/69/1772189212_Routes.php%281%29.zip",
                "media_alt": "pinga",
                "media_title": "hokua",
                "media_description": "apksd"
            },
            {
                "media_id": "70",
                "media_src": "https://vedaay-api.mulika.in/media/src/70/1772189405_logo_03.png",
                "media_alt": "pinga",
                "media_title": "hokua",
                "media_description": "apksd"
            },
            {
                "media_id": "71",
                "media_src": "https://vedaay-api.mulika.in/media/src/71/1772257802_logo_03.png",
                "media_alt": "pinga",
                "media_title": "hokua",
                "media_description": "apksd"
            },
            {
                "media_id": "77",
                "media_src": "https://dev-api.vedaay.mulika.in/media/src/77/1772447043_sample_640x360.mkv",
                "media_alt": "video",
                "media_title": "check2",
                "media_description": "apksd3"
            }
        ],
        "created_by": "497",
        "created_at": "2026-04-09 09:50:35",
        "updated_at": "2026-04-09 09:50:35"
    }
}'
```
<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> /courses
</span> 
 
 
## Update Course

```shell
curl -X PUT https://vedaay-api.mulika.in/courses/304
-H "Content-Type: application/json" \
-H Authorization: Bearer eyJ0eXAiOiJKNiJ9.B7Y3J9FWtgjby4P8-LX_Vkeob6CE
-d '{
    "course_title":"Hatim",
    "short_description": "Famous spiders",
    "course_description":"Hatim is a greatest TV show of all times",
    "course_status":"active",
    "course_icon": "73",
    "course_img": "56",
    "course_gallary": [77,69,70,71]
  }'
```
> Responce:

```json
   '{
    "status": "success",
    "message": "Course updated successfully.",
    "code": 200,
    "data": {
        "course_id": "304",
        "course_title": "Hatim",
        "short_description": "Famous spiders",
        "course_description": "Hatim is a greatest TV show of all times",
        "course_status": "active",
        "course_icon": {
            "media_id": "73",
            "media_src": "https://vedaay-api.mulika.in/media/src/73/1772259000_questions_errors.csv",
            "media_alt": "check",
            "media_title": "check2",
            "media_description": "apksd3"
        },
        "course_img": {
            "media_id": "56",
            "media_src": "https://vedaay-api.mulika.in/media/src/56/1769861870_MainH1.png",
            "media_alt": "om storage",
            "media_title": "om storage",
            "media_description": "om storage"
        },
        "course_gallary": [
            {
                "media_id": "69",
                "media_src": "https://vedaay-api.mulika.in/media/src/69/1772189212_Routes.php%281%29.zip",
                "media_alt": "pinga",
                "media_title": "hokua",
                "media_description": "apksd"
            },
            {
                "media_id": "70",
                "media_src": "https://vedaay-api.mulika.in/media/src/70/1772189405_logo_03.png",
                "media_alt": "pinga",
                "media_title": "hokua",
                "media_description": "apksd"
            },
            {
                "media_id": "71",
                "media_src": "https://vedaay-api.mulika.in/media/src/71/1772257802_logo_03.png",
                "media_alt": "pinga",
                "media_title": "hokua",
                "media_description": "apksd"
            },
            {
                "media_id": "77",
                "media_src": "https://dev-api.vedaay.mulika.in/media/src/77/1772447043_sample_640x360.mkv",
                "media_alt": "video",
                "media_title": "check2",
                "media_description": "apksd3"
            }
        ],
        "created_by": "497",
        "created_at": "2026-04-09 09:50:35",
        "updated_at": "2026-04-09 09:59:53"
    }
}'
    
  
```
<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> /courses/{courseId} 
</span> 
 

### Attributes

| Attributes         | Type     | Description                                   |
| ------------------ | -------- | --------------------------------------------- |
| course_id          | integer  | ID of a course                                | 
 
 

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

```json
{
    "status": "success",
    "message": "Course and all related data deleted successfully",
    "code": 200,
    "data": {
        "course_id": "193"
    }
}
```
<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> /courses/{id}
</span>

# Levels

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

## Levels Properties
 

| Attributes               | Type     | Description                                  
| ------------------------ | -------- | ------------------------------- 
| level_id                 | integer  | ID of the level                              
| level_name               | string   | Name of the level                            
| level_description        | string   | Description of the level                     
| daily_practice_question  | json     | daily_practice_question for the level
| level_exam_question      | json     | level_exam_question for the level        
| course_id                | integer  | ID of the course                             
| level_order              | integer  | Order of the level                           

## Get All Levels


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

```json
'{
    "status": "success",
    "message": "2 levels retrieved successfully",
    "code": 200,
    "pagination": {
        "current_page": 1,
        "per_page": 2,
        "total_records": 7,
        "total_pages": 4
    },
    "data": [
        {
            "level_id": "45",
            "level_name": "bingo man",
            "level_description": "courses learners with some experience",
            "daily_practice_question": "[{\"type\": \"mcq\", \"difficulty\": \"hard\", \"no_of_questions\": 50}, {\"type\": \"mcq\", \"difficulty\": \"hard\", \"no_of_questions\": 50}]",
            "level_exam_question": "[{\"type\": \"mcq\", \"difficulty\": \"hard\", \"no_of_questions\": 50}, {\"type\": \"mcq\", \"difficulty\": \"hard\", \"no_of_questions\": 50}]",
            "course_id": "165",
            "created_at": "2026-05-05 15:32:49",
            "updated_at": "2026-05-05 16:16:05",
            "level_order": "8"
        },
        {
            "level_id": "46",
            "level_name": "jonirgo lev",
            "level_description": "vedpad three",
            "daily_practice_question": "[{\"type\": \"mcq\", \"difficulty\": \"hard\", \"no_of_questions\": 20}, {\"type\": \"true_false\", \"difficulty\": \"easy\", \"no_of_questions\": 10}]",
            "level_practice_questions": "[{\"type\": \"mcq\", \"difficulty\": \"hard\", \"no_of_questions\": 50}, {\"type\": \"mcq\", \"difficulty\": \"hard\", \"no_of_questions\": 50}]",
            "course_id": "165",
            "created_at": "2026-05-05 16:14:37",
            "updated_at": "2026-05-05 16:14:37",
            "level_order": "14"
        }
    ]
}'
```
 <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> /courses/{courseId}/levels 
</span> 
 
1. GET /courses/{courseId}/levels 
2. GET /courses/{courseId}/levels?page=1&per_page=10
3. GET /courses/{courseId}/levels?search=username
4. GET /courses/{courseId}/levels?include=165,253 
5. GET /courses/{courseId}/levels?exclude=56,23 
6. GET /courses/{courseId}/levels?order=asc
7. GET /courses/{courseId}/levels?order=desc
8. GET /courses/{courseId}/levels?orderby=slug

### 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.
| order              | string   | Order sort attribute ascending or descending. Options: asc, desc. Default is desc
| orderby            | string   | Sort collection by object attribute. Options: date, modified, id, title, and slug 

## Get Single Level


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

```json
'{
    "status": "success",
    "message": "level found.",
    "code": 200,
    "data": {
        "level_id": 52,
        "level_name": "boni levelz",
        "level_description": "vedpad obe",
        "daily_practice_question": [
            {
                "type": "mcq",
                "difficulty": "hard",
                "no_of_questions": 20
            },
            {
                "type": "true_false",
                "difficulty": "easy",
                "no_of_questions": 10
            }
        ],
        "level_exam_question": [
            {
                "type": "mcq",
                "difficulty": "hard",
                "no_of_questions": 20
            },
            {
                "type": "true_false",
                "difficulty": "easy",
                "no_of_questions": 10
            }
        ],
        "course_id": "165",
        "level_order": "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> /courses/{courseId}/levels/{levelId} 
</span>

### Parameters

| Parameter | Type    | Description       |
| --------- | ------- | ----------------- |
| course_id | integer | ID of the courses |
| level_id  | integer | ID of the levels  | 
  

 

## Create Level


```shell
curl -X POST https://vedaay-api.mulika.in/courses/165/levels
-H "Content-Type: application/json" \
-H Authorization: Bearer eyJ0eXAiOiJKNiJ9.B7Y3J9FWtgjby4P8-LX_Vkeob6CE
-d '  {
    "level_name":"boni levelz",
    "level_description":"vedpad obe",
    "daily_practice_question": [ 
    {
        "type":"mcq",
        "difficulty":"hard",
        "no_of_questions": 20
    },
    {
        "type":"true_false",
        "difficulty":"easy",
        "no_of_questions": 10
    } 
],
     "level_exam_question": [ 
    {
        "type":"mcq",
        "difficulty":"hard",
        "no_of_questions": 20
    },
    {
        "type":"true_false",
        "difficulty":"easy",
        "no_of_questions": 10
    } 
],
    "level_order":"18"
  }'

 ```
> Responce:

```json
   '{
    "status": "success",
    "message": "Level added successfully.",
    "code": 200,
    "data": {
        "level_id": 52,
        "level_name": "boni levelz",
        "level_description": "vedpad obe",
        "daily_practice_question": [
            {
                "type": "mcq",
                "difficulty": "hard",
                "no_of_questions": 20
            },
            {
                "type": "true_false",
                "difficulty": "easy",
                "no_of_questions": 10
            }
        ],
        "level_exam_question": [
            {
                "type": "mcq",
                "difficulty": "hard",
                "no_of_questions": 20
            },
            {
                "type": "true_false",
                "difficulty": "easy",
                "no_of_questions": 10
            }
        ],
        "course_id": "165",
        "level_order": "18"
    }
}'
```
<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> /courses/{courseId}/levels
</span> 
  
 
## Update Level

```shell
curl -X POST https://vedaay-api.mulika.in/courses/165/levels/31
-H "Content-Type: application/json" \
-H Authorization: Bearer eyJ0eXAiOiJKNiJ9.B7Y3J9FWtgjby4P8-LX_Vkeob6CE
-d '  {
    "level_name":"boni levelz",
    "level_description":"vedpad obe",
    "daily_practice_question": [ 
    {
        "type":"mcq",
        "difficulty":"hard",
        "no_of_questions": 20
    },
    {
        "type":"true_false",
        "difficulty":"easy",
        "no_of_questions": 10
    } 
],
     "level_exam_question": [ 
    {
        "type":"mcq",
        "difficulty":"hard",
        "no_of_questions": 20
    },
    {
        "type":"true_false",
        "difficulty":"easy",
        "no_of_questions": 10
    } 
],
    "level_order":"18"
  }'

  ```
> Responce:

```json
  '{
    "status": "success",
    "message": "Level updated successfully.",
    "code": 200,
    "data": {
        "level_id": "45",
        "level_name": "bingo man",
        "level_description": "courses learners with some experience",
        "daily_practice_question": "[{\"type\": \"mcq\", \"difficulty\": \"hard\", \"no_of_questions\": 20}, {\"type\": \"true_false\", \"difficulty\": \"easy\", \"no_of_questions\": 10}]",
        "level_exam_question": "[{\"type\": \"mcq\", \"difficulty\": \"hard\", \"no_of_questions\": 20}, {\"type\": \"true_false\", \"difficulty\": \"easy\", \"no_of_questions\": 10}]",
        "course_id": "165",
        "created_at": "2026-05-05 15:32:49",
        "updated_at": "2026-05-09 16:20:15",
        "level_order": "14"
    }
}'
```
<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> /courses/{courseId}/levels/{levelId}
</span> 

### Available Parameters

| Parameters        | Type     | Description                                  |
| ----------------- | -------- | -------------------------------------------- |
| level_id          | integer  | ID of the level                              | 

 


## Delete Level

 

DELETE /courses/{courseId}/levels/{levelId}

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

```json
 '{
    "status": "success",
    "message": "level deleted successfully.",
    "code": 200,
    "data": {
        "level_id": "31",
        "level_name": "vedpad",
        "course_id": "165"
    }
}'
```
<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> /courses/{courseId}/levels/{levelId}
</span>

# Topics

## Topics Properties

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

| Attributes        | Type     | Description                                  |
| ----------------- | -------- | -------------------------------------------- |
| topic_name        | string   | Name of the topic                            |
| topic_description | string   | Description of the topic                     |
| course_id         | integer  | ID of the course                             |
| created_at        | datetime | Timestamp of when the topic was created      |
| updated_at        | datetime | Timestamp of when the topic was last updated |
| topic_order       | integer  | Order of the topic                           |
| level_id          | integer  | ID of the level                              |


## Get All Topics

<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> /courses/{courseId}/levels/{levelId}/topics   
</span> 

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

```json
 '{
    "status": "success",
    "message": "Topics retrieved successfully",
    "code": 200,
    "pagination": {
        "current_page": 1,
        "per_page": 10,
        "total_records": 2,
        "total_pages": 1
    },
    "data": [
        {
            "topic_id": "162",
            "topic_name": "topicfour",
            "topic_description": "Add New Topic Add New Topic ",
            "course_id": "165",
            "created_at": "2025-12-19 05:50:36",
            "updated_at": "2025-12-19 05:50:36",
            "topic_order": "4",
            "level_id": "31"
        },
        {
            "topic_id": "163",
            "topic_name": "ew Cours",
            "topic_description": "jhad fjuh afhj uikef",
            "course_id": "165",
            "created_at": "2025-12-19 05:51:30",
            "updated_at": "2025-12-19 05:51:30",
            "topic_order": "7",
            "level_id": "31"
        }
    ]
}'
```

1. GET /courses/{courseId}/levels/{levelId}/topics  
2. GET /courses/{courseId}/levels/{levelId}/topics?page=1&per_page=10
3. GET /courses/{courseId}/levels/{levelId}/topics?search=username
4. GET /courses/{courseId}/levels/{levelId}/topics?exclude=52,37
5. GET /courses/{courseId}/levels/{levelId}/topics?include=165,253 
6. GET /courses/{courseId}/levels/{levelId}/topics?order=asc
7. GET /courses/{courseId}/levels/{levelId}/topics?order=desc
8. GET /courses/{courseId}/levels/{levelId}/topics?orderby=slug

### Available Attruibutes

| Attruibutes        | Type     |     Description  
|--------------------|----------|----------------------
| 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 string.   
| exclude            | array    | Ensure the result set excludes pecificIDs. 
| include            | array    | Limit the result set to specific IDs.
| order              | string   | Order sort attribute ascending or descending. Options: asc, desc. Default desc 
| orderby            | string   | Sort collection by object attribute. Options: date, modified, id, title, and slug
 

## Get Single Topic


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

```json
 '{
    "status": "success",
    "message": "topic found.",
    "code": 200,
    "data": {
        "topic_id": "155",
        "topic_name": "vedpad  happy ",
        "topic_description": "vedpad vedpad vedpad",
        "course_id": "165",
        "created_at": "2025-12-18 10:35:39",
        "updated_at": "2025-12-20 10:28:11",
        "topic_order": "5",
        "level_id": "25"
    }
}'
```

<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> /courses/{courseId}/levels/{levelId}/topics/{topicId} 
</span> 

### Parameters

| Parameter | Type    | Description       |
| --------- | ------- | ----------------- |
| course_id | integer | ID of the courses |
| level_id  | integer | ID of the levels  |
| topicId   | integer | ID of the topics  |

 

 

## Create Topic

```shell
curl -X POST https://vedaay-api.mulika.in/courses/12/levels/27/topics
-H "Content-Type: application/json" \
-H  Authorization: Bearer eyJ0eXAiOiJKNiJ9.B7Y3J9FWtgjby4P8-LX_Vkeob6CE
-d '{
    "topic_name": "vedpad", 
    "topic_description": "vedpad successfully",
    "topic_order": "53"
  }

  ```
> Responce:

```json
   {
    "status": "success",
    "message": "topic added successfully.",
    "code": 200,
    "data": {
        "topic_id": 184,
        "topic_name": "vedpad",
        "topic_description": "vedpad successfully",
        "topic_order": "53",
        "level_id": "27",
        "course_id": "165"
    }
}'
```
<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> /courses/{courseId}/levels/{levelId}/topics
</span> 
 
 
## Update Topic

```shell
curl -X POST https://vedaay-api.mulika.in/courses/165/levels/25/topics/155
-H "Content-Type: application/json" \
-H  Authorization: Bearer eyJ0eXAiOiJKNiJ9.B7Y3J9FWtgjby4P8-LX_Vkeob6CE
-d '{
    "topic_name": "vedpad",
    "topic_description": "vedpad vedpad vedpad",
    "topic_order": "5"
  }
   ```
> Responce:

```json
   {
    "status": "success",
    "message": "Topic updated successfully.",
    "code": 200,
    "data": {
        "topic_name": "vedpad",
        "topic_description": "vedpad vedpad vedpad",
        "topic_order": "5"
    }
}'
```
<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> /courses/{courseId}/levels/{levelId}/topics/{topicId}
</span> 
 

### Available Parameters

| Parameters        | Type     | Description                               |
| ----------------- | -------- | ----------------------------------------- |
| topic_id          | integer  | ID of the topic                           | 


 
## Delete Topic 

```shell
curl -X DELETE https://vedaay-api.mulika.in/courses/165/levels/25/topics/170
-H "Content-Type: application/json" \
-H  Authorization: Bearer eyJ0eXAiOiJKNiJ9.B7Y3J9FWtgjby4P8-LX_Vkeob6CE
```
> Responce:

```json
 '{
    "status": "success",
    "message": "Topic deleted successfully.",
    "code": 200,
    "data": {
        "topic_id": "170",
        "topic_name": "fuyg",
        "topic_description": "ggggh",
        "topic_order": "5",
        "level_id": "25",
        "course_id": "165"
    }
}
```

<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> /courses/{courseId}/levels/{levelId}/topics/{topicId}
</span>

# Lessons

## Lessons Properties

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

| Attributes               | Type      | Description                           
| ------------------------ | --------- | ------------------------------------- 
| lesson_id                | integer   | ID of the lesson                      
| course_id                | integer   | ID of the course                      
| lesson_title             | string    | Name of the lesson                     
| lesson_content           | string    | Content of the lesson                 
| lesson_type              | enum      | Lesson type: 'video', 'text', 'audio' 
| lesson_media_source      | enum      | Lesson type:'youtube','vimeo','media' 
| lesson_media_source_value| string    | enter the source path/link             
| question_by              | enum      | Lesson type:'topic','lesson'  
| ex_question              | array     | array of questions
| lesson_order_no          | integer   | Order number of the lesson            
| lesson_status            | enum      | active or inactive                    
| created_at               | date/time | Timestamp when the lesson was created 
| topic_id                 | integer   | ID of the topic                       
| level_id                 | integer   | ID of the level                       

## Get All Lessons

```shell
curl -X GET https://vedaay-api.mulika.in/courses/165/levels/25/topics/164/lessons
-H "Content-Type: application/json" \
-H  Authorization: Bearer eyJ0eXAiOiJKNiJ9.B7Y3J9FWtgjby4P8-LX_Vkeob6CE
```
> Responce:

```json
 '{
    "status": "success",
    "message": "Lesson added successfully.",
    "code": 200,
    "data": {
        "lesson_id": 210,
        "lesson_title": "Walter White",
        "lesson_content": "Presenting Gehra Hua — a track that captures the magic of a new love story as this fresh jodi discovers their emotions. Brought to life by Shashwat Sachdev and beautifully sung by Arijit Singh and Armaan Khan",
        "lesson_type": "video",
        "lesson_media_source": "youtube",
        "lesson_media_source_value": "https://youtu.be/GX9x62kFsVU?si=vNy0wt_z9E6b9XuJ", 
        "lesson_order_no": "17",
        "lesson_status": "active",
        "topic_id": "155",
        "level_id": "25",
        "course_id": "165"
    },
    {
        "lesson_id": 211,
        "lesson_title": "Walter White",
        "lesson_content": "Presenting Gehra Hua — a track that captures the magic of a new love story as this fresh jodi discovers their emotions. Brought to life by Shashwat Sachdev and beautifully sung by Arijit Singh and Armaan Khan",
        "lesson_type": "video",
        "lesson_media_source": "youtube",
        "lesson_media_source_value": "https://youtu.be/GX9x62kFsVU?si=vNy0wt_z9E6b9XuJ",
        "lesson_duration": "90",
        "lesson_order_no": "17",
        "lesson_status": "active",
        "topic_id": "155",
        "level_id": "25",
        "course_id": "165"
    }
}

```

<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> /courses/{courseId}/levels/{levelId}/topics/{topicId}/lessons 
</span> 

1. GET /courses/{courseId}/levels/{levelId}/topics/{topicId}/lessons 
2. GET /courses/{courseId}/levels/{levelId}/topics/{topicId}/lessons?page=1&per_page=10
3. GET /courses/{courseId}/levels/{levelId}/topics/{topicId}/lessons?search=username
4. GET /courses/{courseId}/levels/{levelId}/topics/{topicId}/lessons?include=176,177
5. GET /courses/{courseId}/levels/{levelId}/topics/{topicId}/lessons?exclude=173,174 
6. GET /courses/{courseId}/levels/{levelId}/topics/{topicId}/lessons?order=asc
7. GET /courses/{courseId}/levels/{levelId}/topics/{topicId}/lessons?order=desc
8. GET /courses/{courseId}/levels/{levelId}/topics/{topicId}/lessons?orderby=slug

### Available Parameter

| Parameter       | 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.                                              |
| order           | string    | Order sort attribute ascending or descending. Options: asc, desc. Default is desc. |
| orderby         | string    | Sort collection by object attribute. Options: date, modified, id, title,           |

## Get Single Lesson


```shell
curl -X GET https://vedaay-api.mulika.in/courses/165/levels/25/topics/164/lessons/182
-H "Content-Type: application/json" \
-H  Authorization: Bearer eyJ0eXAiOiJKNiJ9.B7Y3J9FWtgjby4P8-LX_Vkeob6CE
```
> Responce:

```json
 '{
    "status": "success",
    "message": "Lesson added successfully.",
    "code": 200,
    "data": {
        "lesson_id": 210,
        "lesson_title": "Walter White",
        "lesson_content": "Presenting Gehra Hua — a track that captures the magic of a new love story as this fresh jodi discovers their emotions. Brought to life by Shashwat Sachdev and beautifully sung by Arijit Singh and Armaan Khan",
        "lesson_type": "video",
        "lesson_media_source": "youtube",
        "lesson_media_source_value": "https://youtu.be/GX9x62kFsVU?si=vNy0wt_z9E6b9XuJ",
        "lesson_duration": "90",
        "lesson_order_no": "17",
        "lesson_status": "active",
        "topic_id": "155",
        "level_id": "25",
        "course_id": "165"
    }
}'
```

<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> /courses/{courseId}/levels/{levelId}/topics/{topicId}/lessons/{lessonId}
</span> 
 
### Parameters

| Parameter | Type    | Description       |
| --------- | ------- | ----------------- |
| course_id | integer | ID of the courses |
| level_id  | integer | ID of the levels  |
| topicId   | integer | ID of the topics  |
| lesson_id | integer | ID of the lessons |

## Create Lesson

```shell
curl -X POST https://vedaay-api.mulika.in/courses/165/levels/25/topics/155/lessons
-H "Content-Type: application/json" \
-H  Authorization: Bearer eyJ0eXAiOiJKNiJ9.B7Y3J9FWtgjby4P8-LX_Vkeob6CE
-d '{
    "lesson_title":"jaimii lanistar", 
    "lesson_type":"audio",
    "lesson_media_source":"youtube",
    "lesson_media_source_value":"https://youtube.com/features/video-library",
    "lesson_content":"Presenting Gehra Hua — a track Khan",
    "question_by": "lesson",
    "ex_question":[ 
    {
        "type":"mcq",
        "difficulty":"hard",
        "no_of_questions": 20
    } ,
    {
        "type":"true_false",
        "difficulty":"easy",
        "no_of_questions": 10
    } 
],
    "lesson_order_no":"17",
    "lesson_status": "active"
    }'

  ```
> Responce:

```json
   '{
    "status": "success",
    "message": "Lesson created successfully.",
    "code": 201,
    "data": {
        "lesson_id": 249,
        "lesson_title": "jaimii lanistar", 
        "lesson_content": "Presenting Gehra Hua — a track Khan",
        "lesson_type": "audio",
        "lesson_media_source": "youtube",
        "lesson_media_source_value": "https://youtube.com/features/video-library",
        "question_by": "lesson",
        "ex_question": "[{\"type\":\"mcq\",\"difficulty\":\"hard\",\"no_of_questions\":20},{\"type\":\"true_false\",\"difficulty\":\"easy\",\"no_of_questions\":10}]",
        "lesson_order_no": 17,
        "lesson_status": "active",
        "topic_id": "155",
        "level_id": "25",
        "course_id": "165"
    }
}'
```

<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> /courses/{courseId}/levels/{levelId}/topics/{topicId}/lessons
</span> 
 
 


 
## Update Lesson

```shell
curl -X POST https://vedaay-api.mulika.in/courses/165/levels/25/topics/164/lessons/182
-H "Content-Type: application/json" \
-H  Authorization: Bearer eyJ0eXAiOiJKNiJ9.B7Y3J9FWtgjby4P8-LX_Vkeob6CE
-d '{
    "lesson_title":"jaimii lanistar", 
    "lesson_type":"audio",
    "lesson_media_source":"youtube",
    "lesson_media_source_value":"https://youtube.com/features/video-library",
    "lesson_content":"Presenting Gehra Hua — a track Khan",
    "question_by": "lesson",
    "ex_question":[ 
    {
        "type":"mcq",
        "difficulty":"hard",
        "no_of_questions": 20
    } ,
    {
        "type":"true_false",
        "difficulty":"easy",
        "no_of_questions": 10
    } 
],
    "lesson_order_no":"17",
    "lesson_status": "active"
    }'
   ```
> Responce:

```json
   '{
    "status": "success",
    "message": "Lesson updated successfully.",
    "code": 200,
    "data": {
        "lesson_id": "218",
        "course_id": "165",
        "lesson_title": "jaimii lanistar", 
        "lesson_type": "audio",
        "lesson_media_source": "youtube",
        "lesson_media_source_value": "https://youtube.com/features/video-library",
        "lesson_content": "Presenting Gehra Hua — a track Khan",
        "question_by": "lesson",
        "ex_question": "[{\"type\": \"mcq\", \"difficulty\": \"hard\", \"no_of_questions\": 20}, {\"type\": \"true_false\", \"difficulty\": \"easy\", \"no_of_questions\": 10}]",
        "lesson_order_no": "17",
        "lesson_status": "active",
        "created_at": "2026-03-06 12:29:25",
        "topic_id": "155",
        "level_id": "25"
    }
}'
```

<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>  /courses/{courseId}/levels/{levelId}/topics/{topicId}/lessons/{lessonId}
</span>  

### Attributes

| Attribute       | Type      | Description                           |
| --------------- | --------- | ------------------------------------- |
| lesson_id       | integer   | ID of the lesson                      | 


 
 
## Delete Lesson

 
```shell
curl -X DELETE https://vedaay-api.mulika.in/courses/165/levels/25/topics/155/lessons/168
-H "Content-Type: application/json" \
-H  Authorization: Bearer eyJ0eXAiOiJKNiJ9.B7Y3J9FWtgjby4P8-LX_Vkeob6CE
```
> Responce:

```json
 '{
    "status": "success",
    "message": "Lesson deleted successfully.",
    "code": 200,
    "data": {
        "lesson_id": "168",
        "lesson_title": "Ophthalmic",
        "lesson_content": "Ophthalmic Ophthalmic Ophthalmic ",
        "lesson_type": "text",
        "lesson_duration": "11",
        "topic_id": "155",
        "level_id": "25",
        "course_id": "165"
    }
}
```
<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> /courses/{courseId}/levels/{levelId}/topics/{topicId}/lessons/{lessonId}
</span>
 
# Lessons (Topic Skipped)

## Get All Lessons


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

```json
 '{
    "status": "success",
    "message": "Lessons retrieved successfully",
    "code": 200,
    "pagination": {
        "current_page": 1,
        "per_page": 10,
        "total_items": 26,
        "total_pages": 3
    },
    "data": [
        {
            "lesson_id": "173",
            "course_id": "165",
            "lesson_title": "Physiotherapy",
            "lesson_type": "video",
            "lesson_content": " Master of Physiotherapy ",
            "lesson_attachment": null,
            "lesson_duration": "20",
            "lesson_order_no": "1",
            "lesson_status": "active",
            "created_at": "2025-12-19 12:31:17",
            "topic_id": "155",
            "level_id": "25"
        },
        {
            "lesson_id": "175",
            "course_id": "165",
            "lesson_title": "Happy luck   ",
            "lesson_type": "audio",
            "lesson_content": "<p><strong><em>Happy luck&nbsp;Happy luck&nbsp;&nbsp;Happy luck&nbsp;&nbsp;Happy luck&nbsp;&nbsp;Happy luck</em></strong></p>",
            "lesson_attachment": null,
            "lesson_duration": "20",
            "lesson_order_no": "1",
            "lesson_status": "active",
            "created_at": "2025-12-19 13:27:29",
            "topic_id": "155",
            "level_id": "25"
        }
    ]
}
```
<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> /courses/{courseId}/levels/{levelId}/lessons
</span> 

1. GET /courses/{courseId}/levels/{levelId}/lessons 
2. GET /courses/{courseId}/levels/{levelId}/lessons?page=1&per_page=10
3. GET /courses/{courseId}/levels/{levelId}/lessons?search=username
4. GET /courses/{courseId}/levels/{levelId}/lessons?exclude[]=1&exclude[]=2
5. GET /courses/{courseId}/levels/{levelId}/lessons?include[]=3&include[]=4
6. GET /courses/{courseId}/levels/{levelId}/lessons?order=asc
7. GET /courses/{courseId}/levels/{levelId}/lessons?order=desc
8. GET /courses/{courseId}/levels/{levelId}/lessons?orderby=slug

### Available Attributes

| Attributes      | 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.                                              |
| order           | string    | Order sort attribute ascending or descending. Options: asc, desc. Default is desc. |
| orderby         | string    | Sort collection by object attribute. Options: date, modified, id, title, and slug. |
| lesson_id       | integer   | ID of the lesson                                                                   |
| course_id       | integer   | ID of the course                                                                   |
| lesson_title    | string    | Name of the lesson                                                                 |
| lesson_content  | string    | Content of the lesson                                                              |
| lesson_type     | enum      | Lesson type should be 'video', 'text', 'audio'                                     |
| lesson_duration | integer   | Duration of the lesson                                                             |
| lesson_order_no | integer   | Order number of a lesson                                                           |
| created_at      | date/time | Timestamp when the lesson was created                                              |
| level_id        | integer   | ID of the level                                                                    |

 

## Get Single Lesson

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

```json
 '{
    "status": "success",
    "message": "Lesson found.",
    "code": 200,
    "data": {
        "lesson_id": "178",
        "course_id": "165",
        "lesson_title": "lessons",
        "lesson_type": "audio",
        "lesson_content": "Add New Lesson for topic",
        "lesson_attachment": null,
        "lesson_duration": "90",
        "lesson_order_no": "1",
        "lesson_status": "active",
        "created_at": "2025-12-20 15:37:32",
        "level_id": "25"
    }
}
```
<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> /courses/{courseId}/levels/{levelId}/lessons/{lessonId}
</span> 

### Parameters

| Parameter | Type    | Description       |
| --------- | ------- | ----------------- |
| course_id | integer | ID of the courses |
| level_id  | integer | ID of the levels  |
| lesson_id | integer | ID of the lessons |

## Create Lesson


```shell
curl -X POST https://vedaay-api.mulika.in/courses/165/levels/25/lessons
-H "Content-Type: application/json" \
-H  Authorization: Bearer eyJ0eXAiOiJKNiJ9.B7Y3J9FWtgjby4P8-LX_Vkeob6CE
-d '{
    "lesson_title":"Lesson test",
    "lesson_type":"video",
    "lesson_content":"kamlesh lesson kamlesh lesson",
    "lesson_duration":"50",
    "lesson_order_no":"6"
}

  ```
> Responce:

```json
   {
    "status": "success",
    "message": "Lesson added successfully.",
    "code": 200,
    "data": {
        "lesson_id": 200,
        "lesson_title": "Lesson test",
        "lesson_content": "kamlesh lesson kamlesh lesson",
        "lesson_type": "video",
        "lesson_duration": "50",
        "lesson_order_no": "6",
        "level_id": "25",
        "course_id": "165"
    }
}
```
<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> /courses/{courseId}/levels/{levelId}/lessons
</span> 
 
 
## Update Lesson

```shell
curl -X POST https://vedaay-api.mulika.in/courses/165/levels/25/lessons/197
-H "Content-Type: application/json" \
-H  Authorization: Bearer eyJ0eXAiOiJKNiJ9.B7Y3J9FWtgjby4P8-LX_Vkeob6CE
-d '{
    "lesson_title":"kamlesh sir",
    "lesson_type":"video",
    "lesson_content":"my name is kamlesh sir",
    "lesson_duration":"95",
    "lesson_order_no":"47"
}
   ```
> Responce:

```json
   {
    "status": "success",
    "message": "Lesson updated successfully.",
    "code": 200,
    "data": {
        "lesson_title": "kamlesh sir",
        "lesson_content": "my name is kamlesh sir",
        "lesson_type": "video",
        "lesson_duration": "95"
    }
}'
```
<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> /courses/{courseId}/levels/{levelId}/lessons/{lessonId}
</span> 
 

### Attributes

| Attributes      | Type      | Description                                    |
| --------------- | --------- | ---------------------------------------------- |
| lesson_id       | integer   | ID of the lesson                               | 


 
## Delete Lesson

 
 
```shell
curl -X DELETE https://vedaay-api.mulika.in/courses/165/levels/25/lessons/184
-H "Content-Type: application/json" \
-H  Authorization: Bearer eyJ0eXAiOiJKNiJ9.B7Y3J9FWtgjby4P8-LX_Vkeob6CE
```
> Responce:

```json
 '{
    "status": "success",
    "message": "Lesson deleted successfully.",
    "code": 200,
    "data": {
        "lesson_id": "184",
        "lesson_title": " KYK YKYKY",
        "lesson_content": "KYK YKYKY  KYK YKYKY",
        "lesson_type": "text",
        "lesson_duration": "20",
        "level_id": "25",
        "course_id": "165"
    }
}
```
<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> /courses/{courseId}/levels/{levelId}/lessons/{lessonId}
</span> 
