Contents
On this page

Update Review - Plugixa Recipe

PUT /plugixa-recipe/v1/reviews/{id}

Change the fields you send, reply publicly, or change the status.

Needs the plugixa_recipe_edit capability, or WordPress’s edit_posts (Contributor and up). When status changes, it also needs the publish capability: plugixa_recipe_publish or publish_posts. The Reviews app must be on.

Request

PUT https://your-site.example/wp-json/plugixa-recipe/v1/reviews/41

Path parameters

Name Type Description
id integer The review’s id

Request body

Content type: application/json

Field Type Required Description
admin_reply string No Your public reply, HTML. Sets admin_reply_at to now; an empty reply removes it.
status string No pending, approved, rejected or spam, lower case exactly.
rating integer No 1 to 5.
review_text string No HTML.
author_name string No Plain text.
author_email string No An e-mail address.
is_verified integer No 1 or 0.
images integer[] No Attachment ids. Replaces the stored list.

The recipe’s average rating and rating count are worked out again after the save. Only approved reviews count.

{
  "admin_reply": "Thanks Lucas, berries are the way to go."
}

Responses

200 OK. data is the updated review.

{
  "success": true,
  "message": "",
  "data": {
    "id": "41",
    "recipe_id": "12",
    "user_id": null,
    "author_name": "Lucas Bernard",
    "author_email": "lucas@example.com",
    "author_ip": "203.0.113.7",
    "rating": 5,
    "review_text": "Made these on Sunday, perfect with berries.",
    "images": null,
    "status": "approved",
    "is_verified": false,
    "helpful_count": 2,
    "admin_reply": "Thanks Lucas, berries are the way to go.",
    "admin_reply_at": "2026-11-12 10:15:00",
    "created_at": "2026-11-10 18:04:00",
    "modified_at": "2026-11-12 10:15:00",
    "recipe_title": "Lemon Pancakes"
  }
}
Field Type Meaning
data.id string The review’s id
data.admin_reply string|null Your reply
data.admin_reply_at string|null Site-time datetime of the reply
data.modified_at string Site-time datetime of this change

Errors

Status Code When
404 rest_error No review with that id.
400 rest_error rating is outside 1 to 5, or status is not one of the four values.
403 rest_forbidden status changes and you lack the publish capability.

Plus the errors every endpoint can return.

Examples

curl -s -X PUT "https://your-site.example/wp-json/plugixa-recipe/v1/reviews/41" \
  -u "admin:$WP_APP_PASSWORD" \
  -H "Content-Type: application/json" \
  -d '{"admin_reply":"Thanks Lucas, berries are the way to go."}'
<?php
$ch = curl_init('https://your-site.example/wp-json/plugixa-recipe/v1/reviews/41');
curl_setopt_array($ch, [
    CURLOPT_CUSTOMREQUEST  => 'PUT',
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_USERPWD        => 'admin:' . getenv('WP_APP_PASSWORD'),
    CURLOPT_HTTPHEADER     => ['Content-Type: application/json'],
    CURLOPT_POSTFIELDS     => json_encode([
        'admin_reply' => 'Thanks Lucas, berries are the way to go.',
    ]),
]);
$response = json_decode(curl_exec($ch), true);
curl_close($ch);
const auth = 'Basic ' + btoa(`admin:${process.env.WP_APP_PASSWORD}`);
const response = await fetch('https://your-site.example/wp-json/plugixa-recipe/v1/reviews/41', {
  method: 'PUT',
  headers: {
    'Authorization': auth,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({"admin_reply": "Thanks Lucas, berries are the way to go."}),
});
const { data } = await response.json();

Quick Links

Share