Contents
Schema #
The schema defines all the fields that exist within a course group record. Any response from these endpoints can be expected to contain the fields below unless the `_filter` query parameter is used or the schema field only appears in a specific context.
id integer |
Unique identifier for the object. Read only Context: |
group_ids array |
The group IDs. Context: |
List Course Groups #
Query this endpoint to retrieve a collection of course groups. The response you receive can be controlled and filtered using the URL query parameters below.
Definition #
GET /ldlms/v1/sfwd-courses/<id>/groups
Example Request #
$ curl https://example.com/wp-json/ldlms/v1/sfwd-courses/<id>/groups
Arguments #
id |
Course ID to enroll into. Required: 1 |
context |
Scope under which the request is made; determines fields present in response.
Default: One of: |
fields |
Returned values.
Default: One of: |
exclude |
Ensure result set excludes specific IDs. |
include |
Limit result set to specific IDs. |
offset |
Offset the result set by a specific number of items. |
order |
Order sort attribute ascending or descending.
Default: One of: |
orderby |
Sort collection by object attribute.
Default: One of: |
per_page |
Maximum number of items to be returned in result set.
Default: |
page |
Current page of the collection.
Default: |
search |
Limit results to those matching a string. |