Schedule Profiles
Save a stream's schedule as a profile
POST
https://api.tunio.ai/ v1/ schedule-profilesCaptures the stream's current music and/or content schedule into a new private profile of the caller's library, with self-contained playlist snapshots. Apply it later with POST /v1/schedule-profiles/{profile_id}/apply, for example to roll a schedule back.
Request body
Stream and profile name
| Name | Type | Description |
|---|---|---|
| layers | array | What to capture: music, content, or both (default both when absent or empty). |
| [item]Required | string | - |
| nameRequired | string | Display name of the profile. |
| stream_idRequired | string | UUID of the stream whose schedule is captured; it must be the caller's. |
Request example
01{02 "layers": [03 "music",04 "content"05 ],06 "name": "Before holiday changes",07 "stream_id": "5a0c8a52-2f7e-4c1b-8d3e-9f0a1b2c3d4e"08}
Responses
| Name | Type | Description |
|---|---|---|
| profile | object | The profile. |
| content_slots | integer | Number of content slots stored in the profile. |
| created_at | string (date-time) | When the profile was first saved (RFC3339). |
| has_content | boolean | Whether the profile carries a content schedule layer; a stored but empty layer clears the
stream's content schedule on apply. |
| has_music | boolean | Whether the profile carries a music schedule layer at all, which music_slots cannot tell: a
stored but empty layer clears the stream's music schedule on apply. |
| is_auto_snapshot | boolean | true for a snapshot taken automatically before a schedule replace (PUT); only the last 20 per
stream are kept. Always false in the public catalog. |
| music_slots | integer | Number of music slots stored in the profile. |
| name | string | Display name of the profile. |
| profile_id | string | UUID of the profile. |
| updated_at | string (date-time) | When the profile was last overwritten or renamed (RFC3339). |
| success | boolean | Always true on success. |
| Name | Type | Description |
|---|---|---|
| message | string | Error code or human-readable error details. |
| success | boolean | Always false for error payloads. |
| Name | Type | Description |
|---|---|---|
| message | string | Error code or human-readable error details. |
| success | boolean | Always false for error payloads. |
| Name | Type | Description |
|---|---|---|
| message | string | Error code or human-readable error details. |
| success | boolean | Always false for error payloads. |
| Name | Type | Description |
|---|---|---|
| message | string | Error code or human-readable error details. |
| success | boolean | Always false for error payloads. |
| Name | Type | Description |
|---|---|---|
| message | string | Error code or human-readable error details. |
| success | boolean | Always false for error payloads. |