Story Playlists

Create a story playlist

POST
https://api.tunio.ai/v1/story-playlists

A manual playlist (add stories to it next) or a filter playlist (every story matching a category, language, age range and longest length). Schedule it with POST /v1/stream-schedule/content/slot, content_type story_playlist and content_id the playlist's uuid.

Request body

The playlist

NameTypeDescription
filterobject
Picks the stories of a filter playlist; absent or empty fields do not narrow. Ignored for a manual playlist.
age_maxinteger
Highest age rating of the stories: 0, 6, 12, 16 or 18, not below age_min; absent for no upper bound.
age_mininteger
Lowest age rating of the stories: 0, 6, 12, 16 or 18; absent for no lower bound.
categorystring
Category slug (lowercase letters, digits and dashes, up to 40), as in the story library; absent or empty for any.
duration_maxinteger
Longest story to take, in seconds, 60-36000; absent or 0 for any length.
languagestring
Language code such as en or pt-BR; absent or empty for any.
intro_uuidstring
UUID of a file of the caller's library aired before a slot's stories; null or empty for none.
kindstring
manual (stories added one by one, in order) or filter (every story matching filter). Set on create only; the kind of a playlist does not change.
outro_uuidstring
UUID of a file of the caller's library aired after a slot's stories; null or empty for none.
titlestring
Title of the playlist, 1-200 characters.
Request example
01{
02 "filter": {
03 "age_max": 12,
04 "age_min": 0,
05 "category": "fantasy",
06 "duration_max": 1800,
07 "language": "en"
08 },
09 "intro_uuid": "",
10 "kind": "filter",
11 "outro_uuid": "",
12 "title": "Bedtime stories"
13}

Responses

NameTypeDescription
playlistobject
The playlist.
created_atstring
When the playlist was created.
filterobject
The filter of a filter playlist; empty for a manual one.
intro_asset_titlestring
Title of the intro file; absent when there is none.
intro_uuidstring
UUID of the file aired before a slot's stories, or null.
kindstring
manual or filter.
outro_asset_titlestring
Title of the outro file; absent when there is none.
outro_uuidstring
UUID of the file aired after a slot's stories, or null.
storiesinteger
Number of stories in a manual playlist; 0 for a filter playlist, and in create and update responses.
titlestring
Title of the playlist.
updated_atstring
When the playlist was last changed.
uuidstring
UUID of the playlist; use it as content_id of a story_playlist schedule slot.
successboolean
Always true on success.
NameTypeDescription
messagestring
Error code or human-readable error details.
successboolean
Always false for error payloads.
NameTypeDescription
messagestring
Error code or human-readable error details.
successboolean
Always false for error payloads.
NameTypeDescription
messagestring
Error code or human-readable error details.
successboolean
Always false for error payloads.
NameTypeDescription
messagestring
Error code or human-readable error details.
successboolean
Always false for error payloads.