Custom routes under prc-schema-seo/v1 for redirects, QR uploads, and Google Search Console refresh. Core post SEO fields also ride on wp/v2 via registered REST fields — this page covers only register_rest_route endpoints.
Base path: /wp-json/prc-schema-seo/v1/
Auth summary
| Capability | Routes |
|---|---|
edit_posts | DELETE /redirect/{id}, GET /redirect-notice/{post_id} |
edit_post for target post | POST /qr-attachment/{post_id}, POST /gsc-inspect/{id} |
Route index
| Method | Path | Source | Purpose |
|---|---|---|---|
DELETE | /redirect/{id} | class-redirect-on-slug-change.php | Undo a slug-change redirect |
GET | /redirect-notice/{post_id} | same | Poll once for pending redirect notice after save |
POST | /qr-attachment/{post_id} | class-qr-attachment.php | Upload / regenerate QR PNG attachment |
POST | /gsc-inspect/{id} | class-search-console.php | Refresh Search Console URL Inspection cache |
GET /redirect-notice/{post_id}
After save, the editor polls this route. On hit it returns redirect metadata and consumes the transient so the notice shows once.
Reference
1 field
Path parameters
Typed options, defaults, and constraints in one scannable reference.
-
post_idnumber required -
Post that may have received a slug-change redirect.
No fields match this filter.
Response (example when present): { hasRedirect, redirectId, fromUrl, toUrl, deleteUrl }
DELETE /redirect/{id}
Removes the redirect post created for a slug change (undo).
POST /qr-attachment/{post_id}
Reference
2 fields
Body parameters
Typed options, defaults, and constraints in one scannable reference.
-
image_datastring required -
Base64-encoded PNG (data URI or raw base64).
-
forceboolean -
Regenerate and replace an existing QR attachment.
No fields match this filter.
POST /gsc-inspect/{id}
Forces inspect-and-cache for the post. Requires edit_post on {id}.