Login

Courses

Courses in Coassemble are the cornerstone of the platform. Using the API, you can search for, and create new courses.

Endpoints

Get courses

GET /api/v1/courses

Returns a list of the courses that your account has access to. The courses are returned sorted by creation date, with the most recently created courses appearing first. Filter courses using the query parameters listed in the table.

Query parameters

FieldTypeDescriptionRequiredDefaultPattern
ownerstringUser IDNonull\d+
groupstringGroup IDNonull\d+
categorystringCategory IDNonull\d+
searchstringSearch by course title or codeNo""[\w\-\s\:]+
sortstringSort byNo"created"(alpha|recent|created)
pagestringWhich page of items to display, starting with zeroNo"0"\d+
lengthstringItems per page (0-100)No"10"\d+

Responses

CodeDescription
200Returned when successful

Create a new course

POST /api/v1/courses

Use this endpoint to create new courses in your workspace.

Body properties

FieldTypeDescriptionRequired
titlestringTitle for the newly-created course.Yes
categoryintegerID of category in which to create the new course.Yes
codestringCourse code (optional, will be displayed prior to course title).No
overviewstringShort description of the course's content. May contain HTML formatting.No

Responses

CodeDescription
201Created successfully
422Title not specified.

Search for a specific course

GET /api/v1/courses/{course}

Search for a specific course using the course ID.

Path variables

FieldDescription
courseID of course.

Responses

CodeDescription
200Returned when successful