Contents
Schema #
The schema defines all the fields that exist within a quiz 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.
datestring, null, datetime (details) |
The date the object was published, in the site's timezone. Context: |
date_gmtstring, null, datetime (details) |
The date the object was published, as GMT. Context: |
guidobject |
The globally unique identifier for the object. Read only Context: |
idinteger |
Unique identifier for the object. Read only Context: |
linkstring, uri |
URL to the object. Read only Context: |
modifiedstring, datetime (details) |
The date the object was last modified, in the site's timezone. Read only Context: |
modified_gmtstring, datetime (details) |
The date the object was last modified, as GMT. Read only Context: |
slugstring |
An alphanumeric identifier for the object unique to its type. Context: |
statusstring |
A named status for the object. Context: One of: |
typestring |
Type of Post for the object. Read only Context: |
passwordstring |
A password to protect access to the content and excerpt. Context: |
permalink_templatestring |
Permalink template for the object. Read only Context: |
generated_slugstring |
Slug automatically generated from the object title. Read only Context: |
titleobject |
The title for the object. Context: |
contentobject |
The content for the object. Context: |
authorinteger |
The ID for the author of the object. Context: |
featured_mediainteger |
The ID of the featured media for the object. Context: |
comment_statusstring |
Whether or not comments are open on the object. Context: One of: |
ping_statusstring |
Whether or not the object can be pinged. Context: One of: |
menu_orderinteger |
The order of the object in relation to other object of its type. Context: |
templatestring |
The theme file to use to display the object. Context: |
categoriesarray |
The terms assigned to the object in the category taxonomy. Context: |
tagsarray |
The terms assigned to the object in the post_tag taxonomy. Context: |
ld_quiz_categoryarray |
The terms assigned to the object in the ld_quiz_category taxonomy. Context: |
ld_quiz_tagarray |
The terms assigned to the object in the ld_quiz_tag taxonomy. Context: |
courseinteger |
Associated Course Context: |
lessoninteger |
Associated Lesson Context: |
prerequisitesarray |
Quiz Prerequisites Context: |
registered_users_onlyboolean |
Allowed Users Context: |
passing_percentagefloat |
Passing Score Percentage Context: |
certificate_award_thresholdfloat |
Certificate Awarded for Context: |
retry_restrictions_enabledboolean |
Restrict Quiz Retakes Context: |
retry_repeatsstring |
Number of repeats allowed. blank is unlimited, 0 is 1 repeats, 1 is 2 repeats, etc. Context: |
answer_all_questions_enabledboolean |
All Questions required to complete Context: |
time_limit_enabledboolean |
Time Limit Enabled Context: |
time_limit_timeinteger |
Automatically Submit After Context: |
materials_enabledboolean |
Materials Eabled Context: |
materialsstring |
Materials Context: |
auto_startboolean |
Autostart Context: |
quiz_modusstring |
Question Display Context: One of: |
review_table_enabledboolean |
Question Overview Table Context: |
summary_hideboolean |
Quiz Summary Context: |
skip_question_disabledboolean |
Skip Question Context: |
custom_sortingboolean |
Custom Question Ordering Context: |
sort_categoriesboolean |
Sort by Category Context: |
question_randomboolean |
Randomize Order Context: |
show_max_questionboolean |
Context: |
show_pointsboolean |
Point Value Context: |
show_categoryboolean |
Question Category Context: |
hide_question_position_overviewboolean |
Question Position Context: |
hide_question_numberingboolean |
Question Numbering Context: |
numbered_answerboolean |
Number Answers Context: |
answer_randomboolean |
Randomize Answers Context: |
restart_button_hideboolean |
Restart Quiz button Context: |
show_average_resultboolean |
Average Score Context: |
show_category_scoreboolean |
Category Score Context: |
hide_result_pointsboolean |
Overall Score Context: |
hide_result_correct_questionboolean |
No. of Correct Answers Context: |
hide_result_quiz_timeboolean |
Time Spent Context: |
custom_answer_feedbackboolean |
Custom Answer Feedback Context: |
hide_answer_message_boxboolean |
Correct / Incorrect Messages Context: |
disabled_answer_markboolean |
Correct / Incorrect Answer Marks Context: |
toplist_enabledboolean |
Leaderboard Context: |
toplist_data_add_permissionsstring |
Who can apply? Context: One of: |
toplist_data_add_multipleboolean |
Multiple Applications per user Context: |
toplist_data_add_automaticboolean |
Automatic user entry Context: |
toplist_data_show_limitinteger |
Number of displayed entries Context: |
toplist_data_sortstring |
Sort list by? Context: One of: |
toplist_data_showin_enabledboolean |
Display on Quiz results page Context: |
statistics_enabledboolean |
Quiz Statistics Context: |
view_profile_statistics_enabledboolean |
Front-end Profile Display Context: |
statistics_ip_lock_enabledboolean |
Statistics IP-lock Context: |
email_enabledboolean |
Email Notifications Context: |
email_admin_enabledboolean |
Admin Context: |
email_user_enabledboolean |
User Context: |
certificateinteger |
Quiz Certificate Context: |
List Quizzes #
Query this endpoint to retrieve a collection of Quizzes. The response you receive can be controlled and filtered using the URL query parameters below.
Definition #
GET /ldlms/v2/sfwd-quiz
Example Request #
$ curl https://example.com/wp-json/ldlms/v2/sfwd-quiz
Arguments #
context |
Scope under which the request is made; determines fields present in response.
Default: One of: |
page |
Current page of the collection.
Default: |
per_page |
Maximum number of items to be returned in result set.
Default: |
search |
Limit results to those matching a string. |
after |
Limit response to posts published after a given ISO8601 compliant date. |
modified_after |
Limit response to posts modified after a given ISO8601 compliant date. |
author |
Limit result set to posts assigned to specific authors. |
author_exclude |
Ensure result set excludes posts assigned to specific authors. |
before |
Limit response to posts published before a given ISO8601 compliant date. |
modified_before |
Limit response to posts modified before a given ISO8601 compliant date. |
exclude |
Ensure result set excludes specific IDs. |
include |
Limit result set to specific IDs. |
menu_order |
Limit result set to posts with a specific menu_order value. |
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: |
slug |
Limit result set to posts with one or more specific slugs. |
status |
Limit result set to posts assigned one or more statuses.
Default: |
tax_relation |
Limit result set based on relationship between multiple taxonomies. One of: |
categories |
Limit result set to items with specific terms assigned in the categories taxonomy. |
categories_exclude |
Limit result set to items except those with specific terms assigned in the categories taxonomy. |
tags |
Limit result set to items with specific terms assigned in the tags taxonomy. |
tags_exclude |
Limit result set to items except those with specific terms assigned in the tags taxonomy. |
ld_quiz_category |
Limit result set to items with specific terms assigned in the ld_quiz_category taxonomy. |
ld_quiz_category_exclude |
Limit result set to items except those with specific terms assigned in the ld_quiz_category taxonomy. |
ld_quiz_tag |
Limit result set to items with specific terms assigned in the ld_quiz_tag taxonomy. |
ld_quiz_tag_exclude |
Limit result set to items except those with specific terms assigned in the ld_quiz_tag taxonomy. |
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. |
Create a Quiz #
Arguments #
date |
The date the object was published, in the site's timezone. |
date_gmt |
The date the object was published, as GMT. |
slug |
An alphanumeric identifier for the object unique to its type. |
status |
A named status for the object. One of: |
password |
A password to protect access to the content and excerpt. |
title |
The title for the object. |
content |
The content for the object. |
author |
The ID for the author of the object. |
featured_media |
The ID of the featured media for the object. |
comment_status |
Whether or not comments are open on the object. One of: |
ping_status |
Whether or not the object can be pinged. One of: |
menu_order |
The order of the object in relation to other object of its type. |
template |
The theme file to use to display the object. |
categories |
The terms assigned to the object in the category taxonomy. |
tags |
The terms assigned to the object in the post_tag taxonomy. |
ld_quiz_category |
The terms assigned to the object in the ld_quiz_category taxonomy. |
ld_quiz_tag |
The terms assigned to the object in the ld_quiz_tag taxonomy. |
course |
Associated Course |
lesson |
Associated Lesson |
prerequisites |
Quiz Prerequisites |
registered_users_only |
Allowed Users |
passing_percentage |
Passing Score Percentage |
certificate |
Quiz Certificate |
certificate_award_threshold |
Certificate Awarded for |
retry_restrictions_enabled |
Restrict Quiz Retakes |
retry_repeats |
Number of repeats allowed. blank is unlimited, 0 is 1 repeats, 1 is 2 repeats, etc. |
answer_all_questions_enabled |
All Questions required to complete
Default: |
time_limit_enabled |
Time Limit Enabled |
time_limit_time |
Automatically Submit After |
materials_enabled |
Materials Eabled |
materials |
Materials |
auto_start |
Autostart |
quiz_modus |
Question Display
Default: One of: |
review_table_enabled |
Question Overview Table |
summary_hide |
Quiz Summary |
skip_question_disabled |
Skip Question |
custom_sorting |
Custom Question Ordering |
sort_categories |
Sort by Category |
question_random |
Randomize Order |
show_max_question |
|
show_points |
Point Value |
show_category |
Question Category |
hide_question_position_overview |
Question Position |
hide_question_numbering |
Question Numbering |
numbered_answer |
Number Answers |
answer_random |
Randomize Answers |
title_hidden |
Quiz Title |
restart_button_hide |
Restart Quiz button
Default: |
show_average_result |
Average Score
Default: |
show_category_score |
Category Score
Default: |
hide_result_points |
Overall Score
Default: |
hide_result_correct_question |
No. of Correct Answers
Default: |
hide_result_quiz_time |
Time Spent
Default: |
custom_answer_feedback |
Custom Answer Feedback
Default: |
hide_answer_message_box |
Correct / Incorrect Messages
Default: |
disabled_answer_mark |
Correct / Incorrect Answer Marks
Default: |
view_question_button_hidden |
View Questions Button
Default: |
toplist_enabled |
Leaderboard |
toplist_data_add_permissions |
Who can apply?
Default: One of: |
toplist_data_add_multiple |
Multiple Applications per user |
toplist_data_add_automatic |
Automatic user entry |
toplist_data_show_limit |
Number of displayed entries
Default: |
toplist_data_sort |
Sort list by?
Default: One of: |
toplist_data_showin_enabled |
Display on Quiz results page |
statistics_enabled |
Quiz Statistics
Default: |
view_profile_statistics_enabled |
Front-end Profile Display
Default: |
statistics_ip_lock_enabled |
Statistics IP-lock |
email_enabled |
Email Notifications |
email_admin_enabled |
Admin |
email_user_enabled |
User |
Definition #
POST /ldlms/v2/sfwd-quiz
List Quizzes #
Query this endpoint to retrieve a collection of Quizzes. The response you receive can be controlled and filtered using the URL query parameters below.
Definition #
GET /ldlms/v2/sfwd-quiz/<id>
Example Request #
$ curl https://example.com/wp-json/ldlms/v2/sfwd-quiz/<id>
Arguments #
context |
Scope under which the request is made; determines fields present in response.
Default: One of: |
page |
Current page of the collection.
Default: |
per_page |
Maximum number of items to be returned in result set.
Default: |
search |
Limit results to those matching a string. |
after |
Limit response to posts published after a given ISO8601 compliant date. |
modified_after |
Limit response to posts modified after a given ISO8601 compliant date. |
author |
Limit result set to posts assigned to specific authors. |
author_exclude |
Ensure result set excludes posts assigned to specific authors. |
before |
Limit response to posts published before a given ISO8601 compliant date. |
modified_before |
Limit response to posts modified before a given ISO8601 compliant date. |
exclude |
Ensure result set excludes specific IDs. |
include |
Limit result set to specific IDs. |
menu_order |
Limit result set to posts with a specific menu_order value. |
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: |
slug |
Limit result set to posts with one or more specific slugs. |
status |
Limit result set to posts assigned one or more statuses.
Default: |
tax_relation |
Limit result set based on relationship between multiple taxonomies. One of: |
categories |
Limit result set to items with specific terms assigned in the categories taxonomy. |
categories_exclude |
Limit result set to items except those with specific terms assigned in the categories taxonomy. |
tags |
Limit result set to items with specific terms assigned in the tags taxonomy. |
tags_exclude |
Limit result set to items except those with specific terms assigned in the tags taxonomy. |
ld_quiz_category |
Limit result set to items with specific terms assigned in the ld_quiz_category taxonomy. |
ld_quiz_category_exclude |
Limit result set to items except those with specific terms assigned in the ld_quiz_category taxonomy. |
ld_quiz_tag |
Limit result set to items with specific terms assigned in the ld_quiz_tag taxonomy. |
ld_quiz_tag_exclude |
Limit result set to items except those with specific terms assigned in the ld_quiz_tag taxonomy. |
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. |
Update a Quiz #
Arguments #
date |
The date the object was published, in the site's timezone. |
date_gmt |
The date the object was published, as GMT. |
slug |
An alphanumeric identifier for the object unique to its type. |
status |
A named status for the object. One of: |
password |
A password to protect access to the content and excerpt. |
title |
The title for the object. |
content |
The content for the object. |
author |
The ID for the author of the object. |
featured_media |
The ID of the featured media for the object. |
comment_status |
Whether or not comments are open on the object. One of: |
ping_status |
Whether or not the object can be pinged. One of: |
menu_order |
The order of the object in relation to other object of its type. |
template |
The theme file to use to display the object. |
categories |
The terms assigned to the object in the category taxonomy. |
tags |
The terms assigned to the object in the post_tag taxonomy. |
ld_quiz_category |
The terms assigned to the object in the ld_quiz_category taxonomy. |
ld_quiz_tag |
The terms assigned to the object in the ld_quiz_tag taxonomy. |
course |
Associated Course |
lesson |
Associated Lesson |
prerequisites |
Quiz Prerequisites |
registered_users_only |
Allowed Users |
passing_percentage |
Passing Score Percentage |
certificate |
Quiz Certificate |
certificate_award_threshold |
Certificate Awarded for |
retry_restrictions_enabled |
Restrict Quiz Retakes |
retry_repeats |
Number of repeats allowed. blank is unlimited, 0 is 1 repeats, 1 is 2 repeats, etc. |
answer_all_questions_enabled |
All Questions required to complete |
time_limit_enabled |
Time Limit Enabled |
time_limit_time |
Automatically Submit After |
materials_enabled |
Materials Eabled |
materials |
Materials |
auto_start |
Autostart |
quiz_modus |
Question Display One of: |
review_table_enabled |
Question Overview Table |
summary_hide |
Quiz Summary |
skip_question_disabled |
Skip Question |
custom_sorting |
Custom Question Ordering |
sort_categories |
Sort by Category |
question_random |
Randomize Order |
show_max_question |
|
show_points |
Point Value |
show_category |
Question Category |
hide_question_position_overview |
Question Position |
hide_question_numbering |
Question Numbering |
numbered_answer |
Number Answers |
answer_random |
Randomize Answers |
title_hidden |
Quiz Title |
restart_button_hide |
Restart Quiz button |
show_average_result |
Average Score |
show_category_score |
Category Score |
hide_result_points |
Overall Score |
hide_result_correct_question |
No. of Correct Answers |
hide_result_quiz_time |
Time Spent |
custom_answer_feedback |
Custom Answer Feedback |
hide_answer_message_box |
Correct / Incorrect Messages |
disabled_answer_mark |
Correct / Incorrect Answer Marks |
view_question_button_hidden |
View Questions Button |
toplist_enabled |
Leaderboard |
toplist_data_add_permissions |
Who can apply? One of: |
toplist_data_add_multiple |
Multiple Applications per user |
toplist_data_add_automatic |
Automatic user entry |
toplist_data_show_limit |
Number of displayed entries |
toplist_data_sort |
Sort list by? One of: |
toplist_data_showin_enabled |
Display on Quiz results page |
statistics_enabled |
Quiz Statistics |
view_profile_statistics_enabled |
Front-end Profile Display |
statistics_ip_lock_enabled |
Statistics IP-lock |
email_enabled |
Email Notifications |
email_admin_enabled |
Admin |
email_user_enabled |
User |