Schema #
The schema defines all the fields that exist within a user quiz progress 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.
quiz integer |
Quiz ID Read only Context: |
course integer |
Course ID Read only Context: |
lesson integer |
Lesson ID Read only Context: |
topic integer |
Topic ID Read only Context: |
user integer |
User ID Read only Context: |
percentage number |
Percentage passed Read only Context: |
timespent number |
Timespent Read only Context: |
has_graded boolean |
Has Graded Read only Context: |
started string, null, datetime (details) |
Started timestamp Read only Context: |
completed string, null, datetime (details) |
Completed timestamp Read only Context: |
points_scored integer |
Points scored Read only Context: |
points_total integer |
Points total Read only Context: |
statistic integer |
Statistic ID Read only Context: |
List User Quiz Progress #
Query this endpoint to retrieve a collection of user quiz progress. The response you receive can be controlled and filtered using the URL query parameters below.
Definition #
GET /ldlms/v2/users/<id>/quiz-progress
Example Request #
$ curl https://example.com/wp-json/ldlms/v2/users/<id>/quiz-progress
Arguments #
id |
User ID Required: 1 |
quiz |
Limit results to be within a specific Quiz. Required for non-admin users. |
course |
Limit results to be within a specific Course. Required for non-admin users. |
lesson |
Limit results to be within a specific Lesson. Pass zero to show global Course Quizzes. Must be used with Course parameter. |
topic |
Limit results to be within a specific Topic. Must be used with Course parameter. |
context |
Scope under which the request is made; determines fields present in response.
Default: One of: |
orderby |
Default: One of: |
offset |
Offset the result set by a specific number of items. |
order |
Order sort attribute ascending or descending.
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. |