Contents
On this page
Update Tag - Plugixa Exam
PUT /plugixa-exam/v1/tags/{id}
Change a tag’s title, published state or position. Only the fields you send are written.
Scope questions:write; the token’s user needs the questions:edit permission.
The Tags app must be on in Plugixa Exam -> App Manager. With it off, this endpoint answers 404 rest_no_route.
Request
PUT https://your-site.example/wp-json/plugixa-exam/v1/tags/9
Path parameters
| Name | Type | Description |
|---|---|---|
id |
integer |
The tag’s id |
Request body
Content type: application/json
| Field | Type | Required | Description |
|---|---|---|---|
title |
string |
No | Must not be blank when sent. Renaming a tag also makes its slug again from the new title. |
published |
boolean |
No | Any non-empty value publishes the tag. |
ordering |
integer |
No | Sort position, 0 or more. |
A field you leave out keeps its stored value.
{
"title": "Final exam 2026",
"ordering": 1
}
Responses
200 OK. data is the updated tag.
{
"success": true,
"data": {
"id": 9,
"title": "Final exam 2026",
"slug": "final-exam-2026",
"published": true,
"ordering": 1,
"created_at": "2026-11-12 09:30:00",
"modified_at": "2026-11-12 10:05:00",
"created_by": 1,
"modified_by": 1,
"deleted_at": null
}
}
| Field | Type | Meaning |
|---|---|---|
data.title |
string |
Label |
data.slug |
string |
Unique slug, made from the title |
data.published |
boolean |
Whether the tag is published |
data.ordering |
integer |
Sort position |
data.modified_at |
string |
UTC datetime of the last change |
Errors
| Status | Code | When |
|---|---|---|
404 |
plugixa_exam_not_found |
No tag with that id, or the tag is in the trash. |
400 |
plugixa_exam_title_required |
title is sent blank. |
Plus the errors every endpoint can return.
Examples
curl -s -X PUT "https://your-site.example/wp-json/plugixa-exam/v1/tags/9" \
-H "Authorization: Bearer $PLUGIXA_EXAM_TOKEN" \
-H "Content-Type: application/json" \
-d '{"title":"Final exam 2026","ordering":1}'
<?php
$ch = curl_init('https://your-site.example/wp-json/plugixa-exam/v1/tags/9');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'PUT',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('PLUGIXA_EXAM_TOKEN'),
'Content-Type: application/json',
],
CURLOPT_POSTFIELDS => json_encode([
'title' => 'Final exam 2026',
'ordering' => 1,
]),
]);
$response = json_decode(curl_exec($ch), true);
curl_close($ch);
const response = await fetch('https://your-site.example/wp-json/plugixa-exam/v1/tags/9', {
method: 'PUT',
headers: {
'Authorization': `Bearer ${process.env.PLUGIXA_EXAM_TOKEN}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({ title: 'Final exam 2026', ordering: 1 }),
});
const { data } = await response.json();
Quick Links
Share