serial_schedules_apply
Creates, replaces or cancels scheduled publication, or schedules several series or episodes at once in the Serial VOD app (pApp C00006). Shows a preview first; the change runs only after confirmation. Called without confirmToken it previews and returns a confirmToken; repeating the same input with it executes once.
Inputs
| Field | Required here | Contract |
|---|---|---|
targetModel |
Yes | one of: POST, SERIES, POST, SERIES |
targetId |
Yes | When targetModel is POST or SERIES: integer; greater than 0 |
action |
Yes | When targetModel is POST or SERIES: one of: create, replace, cancel (by kind) |
action.scheduledAt |
Yes | When targetModel is POST or SERIES and action.kind is create: string; pattern ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$; format date-time |
action.taskId |
Yes | When targetModel is POST or SERIES and action.kind is replace: string; pattern ^[A-Za-z0-9_-]{1,128}$ |
action.scheduledAt |
Yes | When targetModel is POST or SERIES and action.kind is replace: string; pattern ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$; format date-time |
action.taskId |
Yes | When targetModel is POST or SERIES and action.kind is cancel: string; pattern ^[A-Za-z0-9_-]{1,128}$ |
confirmToken |
No | When targetModel is POST or SERIES: string; pattern ^ct[a-f\d]{32}$; The confirmToken from this tool's preview result. Omit it to preview; repeat the same input with it to execute. |
targetIds |
Yes | When targetModel is POST or SERIES: array; items: integer; greater than 0; min items 2; max items 100; 2–100 distinct OTT or serial episode post IDs or series IDs, in the seller list order. |
action |
Yes | When targetModel is POST or SERIES: object |
action.kind |
Yes | When targetModel is POST or SERIES: bulk-create |
action.scheduledAt |
Yes | When targetModel is POST or SERIES: string; pattern ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$; format date-time |
confirmToken |
No | When targetModel is POST or SERIES: string; pattern ^ct[a-f\d]{32}$; The confirmToken from this tool's preview result. Omit it to preview; repeat the same input with it to execute. |