Contents
On this page
Get Question History - Plugixa Exam
GET /plugixa-exam/v1/questions/{id}/history
List a question’s saved versions, newest first, with who saved each one and how many options it had. No snapshots: this is the light list behind the History screen.
Not reachable with an API token: since 1.4.1 a token request to this route answers 403 plugixa_exam_token_route. Call it as a signed-in WordPress user (from a script, with an Application Password) who holds the questions:view permission. It needs Plugixa Exam Pro with the Version history app on in Plugixa Exam -> App Manager: with the app off, the route answers 404.
Note. An unknown question id answers
200with an empty list, not404.
Request
GET https://your-site.example/wp-json/plugixa-exam/v1/questions/12/history
Path parameters
| Name | Type | Description |
|---|---|---|
id |
integer |
The question’s id |
Responses
200 OK. data is the history, newest first.
{
"success": true,
"data": [
{
"id": 205,
"version": 2,
"created_at": "2026-11-12 09:30:00",
"created_by": 1,
"author_name": "Sarah Martin",
"option_count": 3
},
{
"id": 198,
"version": 1,
"created_at": "2026-11-10 14:05:00",
"created_by": 1,
"author_name": "Sarah Martin",
"option_count": 2
}
]
}
| Field | Type | Meaning |
|---|---|---|
data[].id |
integer |
The id of this saved version |
data[].version |
integer |
The question’s version number |
data[].created_at |
string |
UTC datetime the version was saved |
data[].created_by |
integer |
WordPress user id of whoever saved it |
data[].author_name |
string |
That user’s display name, or Unknown when the user no longer exists |
data[].option_count |
integer |
How many options the question had at that version |
To read one version in full, use Get Question Version.
Errors
Plus the errors every endpoint can return.
Examples
curl -s "https://your-site.example/wp-json/plugixa-exam/v1/questions/12/history" \
-u "$WP_USER:$WP_APP_PASSWORD"
<?php
$ch = curl_init('https://your-site.example/wp-json/plugixa-exam/v1/questions/12/history');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Basic ' . base64_encode(getenv('WP_USER') . ':' . getenv('WP_APP_PASSWORD')),
],
]);
$response = json_decode(curl_exec($ch), true);
curl_close($ch);
const response = await fetch('https://your-site.example/wp-json/plugixa-exam/v1/questions/12/history', {
headers: {
'Authorization': 'Basic ' + btoa(`${process.env.WP_USER}:${process.env.WP_APP_PASSWORD}`),
},
});
const { data } = await response.json();
Quick Links
Share