Contents
On this page

Create Person - Plugixa Stream

POST /plugixa-stream/v1/admin/people

Add a person. Credit them on a title with Save Credits.

Needs a user with the plugixa_stream_edit capability (signed in with an Application Password or the login cookie). Administrators hold it; other roles only when you grant it.

Request

POST https://your-site.example/wp-json/plugixa-stream/v1/admin/people

Request body

Content type: application/json

Field Type Required Description
name string Yes on create Must not be blank. A name already used gets a different slug, not an error.
bio string No Plain text, up to 5,000 characters.
photo_id integer No A Media Library image; 0 or a non-image removes the photo.
{
  "name": "Buster Crabbe",
  "bio": "American actor and Olympic swimmer.",
  "photo_id": 3012
}

Responses

201 Created.

{
  "success": true,
  "data": {
    "id": 214,
    "name": "Buster Crabbe",
    "bio": "American actor and Olympic swimmer.",
    "photo": "https://your-site.example/wp-content/uploads/2026/10/buster-crabbe-150x150.jpg",
    "photo_id": 3012,
    "titles": 0,
    "tmdb": 0
  }
}
Field Type Meaning
data.id integer The person’s id
data.name string Raw name
data.bio string Plain text
data.photo string Photo URL, thumbnail size, or empty
data.photo_id integer Media Library id, 0 for none
data.titles integer Titles they are credited on
data.tmdb integer TMDB person id when imported, else 0

Errors

Status Code When
401 / 403 plugixa_stream_forbidden The caller lacks the capability.
422 plugixa_stream_invalid name is missing or blank.

Plus the errors every endpoint can return.

Examples

curl -s -X POST "https://your-site.example/wp-json/plugixa-stream/v1/admin/people" \
  -u "$WP_USER:$WP_APP_PASSWORD" \
  -H "Content-Type: application/json" \
  -d '{"name":"Buster Crabbe","bio":"American actor and Olympic swimmer.","photo_id":3012}'
<?php
$ch = curl_init('https://your-site.example/wp-json/plugixa-stream/v1/admin/people');
curl_setopt_array($ch, [
    CURLOPT_CUSTOMREQUEST  => 'POST',
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_USERPWD        => getenv('WP_USER') . ':' . getenv('WP_APP_PASSWORD'),
    CURLOPT_HTTPHEADER     => ['Content-Type: application/json'],
    CURLOPT_POSTFIELDS     => json_encode([
        'name'     => 'Buster Crabbe',
        'bio'      => 'American actor and Olympic swimmer.',
        'photo_id' => 3012,
    ]),
]);
$response = json_decode(curl_exec($ch), true);
curl_close($ch);
const response = await fetch('https://your-site.example/wp-json/plugixa-stream/v1/admin/people', {
  method: 'POST',
  headers: {
    'Authorization': `Basic ${btoa(`${process.env.WP_USER}:${process.env.WP_APP_PASSWORD}`)}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({ name: 'Buster Crabbe', bio: 'American actor and Olympic swimmer.', photo_id: 3012 }),
});
const { data } = await response.json();

Quick Links

Share