scele category¶
List courses inside a category.
category lists the courses inside one category id, as opposed to categories, which
lists sub-categories.
This is how you find a course you are not enrolled in yet: get its id here, then hand that
id to enrol.
Usage¶
Arguments¶
| Argument | Required |
|---|---|
category_id |
yes |
Example¶
Output¶

Returns:
Course
| Field | Type |
|---|---|
id |
string |
name |
string |
url |
string |
category |
string |
shortname |
string |
progress |
number? |
Notes¶
- Only courses visible to you are returned.
- A course id from here works with
course-detaileven before you enrol, so you can preview it.