Story Playlists
Preview a story playlist filter
POST
https://api.tunio.ai/ v1/ story-playlists/ previewThe stories a filter playlist would air, before it is saved, a page at a time.
查询参数
| 名称 | 类型 | 说明 |
|---|---|---|
| cursor | string | Cursor from the previous page |
| limit | string | Page size |
请求体
The filter (title and kind are not needed)
| 名称 | 类型 | 说明 |
|---|---|---|
| filter | object | Filter picks stories for a filter playlist; empty fields do not narrow. |
| age_max | integer | - |
| age_min | integer | Ages the book is rated for: AgeMin ≤ its age ≤ AgeMax (0, 6, 12, 16, 18). |
| category | string | - |
| duration_max | integer | The longest book, in seconds. |
| language | string | - |
| intro_uuid | string | IntroUUID and OutroUUID are files of the account's library aired before and after a slot's
stories; null for none. An update always sets both. |
| kind | string | Kind is manual (stories added one by one, in order) or filter (every story matching Filter). |
| outro_uuid | string | - |
| title | string | Title of the playlist, 1-200 characters. |
请求示例
01{02 "filter": {03 "age_max": 0,04 "age_min": 0,05 "category": "string",06 "duration_max": 0,07 "language": "string"08 },09 "intro_uuid": "string",10 "kind": "filter",11 "outro_uuid": "string",12 "title": "Bedtime stories"13}
响应
| 名称 | 类型 | 说明 |
|---|---|---|
| next_cursor | string | - |
| stories | array | - |
| [item]Required | object | - |
| success | boolean | - |
| total | integer | - |
| 名称 | 类型 | 说明 |
|---|---|---|
| message | string | Message contains human readable error details. |
| success | boolean | Success is always false for error payloads. |