Schedule Profiles

Apply a schedule profile to a stream

POST
https://api.tunio.ai/v1/schedule-profiles/{profile_id}/apply

Replaces the selected schedules on the target stream with the profile's. The chosen layers are fully replaced, not merged. Slots whose playlist or content no longer exists are skipped and reported instead of failing the request.

Path parameters

NameTypeDescription
profile_idRequiredstringProfile ID

Request body

Target stream and layers to replace

NameTypeDescription
layersRequiredarray
Layers picks which schedules to replace: "music", "content", or both.
[item]Requiredstring
-
stream_idRequiredstring
StreamID is the stream whose schedule will be replaced.
Request example
01{
02 "layers": [
03 "string"
04 ],
05 "stream_id": "string"
06}

Responses

NameTypeDescription
applied_contentinteger
AppliedContent is the number of content slots written to the stream.
applied_musicinteger
AppliedMusic is the number of music slots written to the stream.
skippedarray
Skipped lists slots whose playlist or content no longer exists.
[item]Requiredobject
-
successboolean
Success indicates whether the profile was applied.
NameTypeDescription
messagestring
Message contains human readable error details.
successboolean
Success is always false for error payloads.
NameTypeDescription
messagestring
Message contains human readable error details.
successboolean
Success is always false for error payloads.
NameTypeDescription
messagestring
Message contains human readable error details.
successboolean
Success is always false for error payloads.
NameTypeDescription
messagestring
Message contains human readable error details.
successboolean
Success is always false for error payloads.
NameTypeDescription
messagestring
Message contains human readable error details.
successboolean
Success is always false for error payloads.