Contents
On this page

Delete My Review - Plugixa Stream

DELETE /plugixa-stream/v1/series/{id}/reviews/mine

Remove the caller’s rating and review of a title. The title’s average is worked out again.

Any signed-in user (an Application Password, or the login cookie with an X-WP-Nonce header). Signed out, it answers 401 plugixa_stream_login_required. It always acts on the caller’s own account.

Request

DELETE https://your-site.example/wp-json/plugixa-stream/v1/series/2681/reviews/mine

Path parameters

Name Type Description
id integer The title’s id

Responses

200 OK.

{
  "success": true,
  "data": {
    "deleted": true
  }
}
Field Type Meaning
data.deleted boolean false when the caller had no review of it

Errors

Status Code When
401 plugixa_stream_login_required Signed out.
404 plugixa_stream_not_found No published title with that id, or a kids profile may not see it.

Plus the errors every endpoint can return.

Examples

curl -s -X DELETE "https://your-site.example/wp-json/plugixa-stream/v1/series/2681/reviews/mine" \
  -u "$WP_USER:$WP_APP_PASSWORD"
<?php
$ch = curl_init('https://your-site.example/wp-json/plugixa-stream/v1/series/2681/reviews/mine');
curl_setopt_array($ch, [
    CURLOPT_CUSTOMREQUEST  => 'DELETE',
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_USERPWD        => 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-stream/v1/series/2681/reviews/mine', {
  method: 'DELETE',
  headers: {
    'Authorization': `Basic ${btoa(`${process.env.WP_USER}:${process.env.WP_APP_PASSWORD}`)}`,
  },
});
const { data } = await response.json();

Quick Links

Share