Chapters

All Chapters

GET https://yoursite.mavenseed.com/api/v1/chapters

Retrieve all chapters.

Path Parameters

Name
Type
Description

page

integer

Results are paginated

Headers

Name
Type
Description

Authorization

string

Auth token

[
    {
        "id": 1030,
        "course_id": 424,
        "title": "Chapter One",
        "content": "<p>fdafdsa</p>",
        "created_at": "2020-07-29T11:28:31.494-04:00",
        "updated_at": "2020-07-29T11:28:49.451-04:00",
        "ordinal": 1
    },
    {
        "id": 949,
        "course_id": 384,
        "title": "chapter two",
        "content": "<p>fsda</p>",
        "created_at": "2020-06-08T12:07:54.724-04:00",
        "updated_at": "2020-06-08T12:07:54.724-04:00",
        "ordinal": 2
    }
]

Show Chapter

GET https://yoursite.mavenseed.com/api/v1/chapters/:id

Retrieve a single chapter.

Path Parameters

Name
Type
Description

string

Headers

Name
Type
Description

Authorization

string

Auth token

Create Chapter

POST https://yoursite.mavenseed.com/api/v1/chapters

Create a chapter.

Path Parameters

Name
Type
Description

string

Headers

Name
Type
Description

Authorization

string

Auth token

Request Body

Name
Type
Description

course_id

string

title

string

Title of the chapter. Displayed in lesson listing.

content

string

Chapter description. Displayed in lesson listing.

ordinal

integer

The position of the chapter in the course.

Update Chapter

PATCH https://yoursite.mavenseed.com/api/v1/chapters/:id

Update a single chapter. All of the above properties in create chapter are valid.

Headers

Name
Type
Description

Authorization

string

Auth token

Delete a Chapter

DELETE https://yoursite.mavenseed.com/api/v1/chapters/:id

Delete a chapter

Path Parameters

Name
Type
Description

string

Headers

Name
Type
Description

Authorization

string

Auth token

Last updated

Was this helpful?