ott_home_get
Reads the home editor slides, sections and line banners in the OTT app (pApp C00002). Read only; changes go through the matching apply tool.
Inputs
| Field | Required here | Contract |
|---|---|---|
view |
Yes | object |
view.kind |
Yes | ott-home |
view.action |
No | one of: section-edit, banner-image, logo-clear, background-video, background-video-clear, section-visibility, banner-create, class-add, slide-edit, line-edit, banner-class, slide-visibility, slide-duration-step, item-position, item-delete (by kind) or object |
view.action.sectionId |
Yes | When view.action is alternative 1 and view.action.kind is section-edit: integer; greater than 0 |
view.action.fields |
Yes | When view.action is alternative 1 and view.action.kind is section-edit: object |
view.action.fields.title |
Yes | When view.action is alternative 1 and view.action.kind is section-edit: string; max length 40 |
view.action.sectionId |
Yes | When view.action is alternative 1 and view.action.kind is banner-image: integer; greater than 0 |
view.action.itemId |
Yes | When view.action is alternative 1 and view.action.kind is banner-image: integer; greater than 0 |
view.action.field |
Yes | When view.action is alternative 1 and view.action.kind is banner-image: alternativeLogoSrc, backgroundDesktopImgSrc, backgroundMobileImgSrc, bannerImgSrc |
view.action.imageTaskId |
Yes | When view.action is alternative 1 and view.action.kind is banner-image: string; pattern ^[A-Za-z0-9_-]{8,80}$ |
view.action.sectionId |
Yes | When view.action is alternative 1 and view.action.kind is logo-clear: integer; greater than 0 |
view.action.itemId |
Yes | When view.action is alternative 1 and view.action.kind is logo-clear: integer; greater than 0 |
view.action.sectionId |
Yes | When view.action is alternative 1 and view.action.kind is background-video: integer; greater than 0 |
view.action.itemId |
Yes | When view.action is alternative 1 and view.action.kind is background-video: integer; greater than 0 |
view.action.uploadTaskId |
Yes | When view.action is alternative 1 and view.action.kind is background-video: string; pattern ^[A-Za-z0-9_-]{8,80}$ |
view.action.sectionId |
Yes | When view.action is alternative 1 and view.action.kind is background-video-clear: integer; greater than 0 |
view.action.itemId |
Yes | When view.action is alternative 1 and view.action.kind is background-video-clear: integer; greater than 0 |
view.action.sectionId |
Yes | When view.action is alternative 1 and view.action.kind is section-visibility: integer; greater than 0 |
view.action.visible |
Yes | When view.action is alternative 1 and view.action.kind is section-visibility: boolean |
view.action.sectionId |
Yes | When view.action is alternative 1 and view.action.kind is banner-create: integer; greater than 0 |
view.action.itemType |
Yes | When view.action is alternative 1 and view.action.kind is banner-create: MAIN_BANNER_SLIDES, LINE_BANNER |
view.action.bannerType |
Yes | When view.action is alternative 1 and view.action.kind is banner-create: SERIES, WEB_LINK |
view.action.sectionId |
Yes | When view.action is alternative 1 and view.action.kind is class-add: integer; greater than 0 |
view.action.seriesId |
Yes | When view.action is alternative 1 and view.action.kind is class-add: integer; greater than 0 |
view.action.sectionId |
Yes | When view.action is alternative 1 and view.action.kind is slide-edit: integer; greater than 0 |
view.action.itemId |
Yes | When view.action is alternative 1 and view.action.kind is slide-edit: integer; greater than 0 |
view.action.fields |
Yes | When view.action is alternative 1 and view.action.kind is slide-edit: object |
view.action.fields.title |
No | When view.action is alternative 1 and view.action.kind is slide-edit: string; max length 30 |
view.action.fields.description |
No | When view.action is alternative 1 and view.action.kind is slide-edit: string; max length 50 |
view.action.fields.webLink |
No | When view.action is alternative 1 and view.action.kind is slide-edit: string; max length 4096 |
view.action.sectionId |
Yes | When view.action is alternative 1 and view.action.kind is line-edit: integer; greater than 0 |
view.action.itemId |
Yes | When view.action is alternative 1 and view.action.kind is line-edit: integer; greater than 0 |
view.action.fields |
Yes | When view.action is alternative 1 and view.action.kind is line-edit: object |
view.action.fields.webLink |
No | When view.action is alternative 1 and view.action.kind is line-edit: string; max length 4096 |
view.action.fields.backgroundColor |
No | When view.action is alternative 1 and view.action.kind is line-edit: string; pattern ^#[0-9a-fA-F]{8}$ |
view.action.sectionId |
Yes | When view.action is alternative 1 and view.action.kind is banner-class: integer; greater than 0 |
view.action.itemType |
Yes | When view.action is alternative 1 and view.action.kind is banner-class: MAIN_BANNER_SLIDES, LINE_BANNER |
view.action.itemId |
Yes | When view.action is alternative 1 and view.action.kind is banner-class: integer; greater than 0 |
view.action.seriesId |
Yes | When view.action is alternative 1 and view.action.kind is banner-class: integer; greater than 0 |
view.action.sectionId |
Yes | When view.action is alternative 1 and view.action.kind is slide-visibility: integer; greater than 0 |
view.action.itemId |
Yes | When view.action is alternative 1 and view.action.kind is slide-visibility: integer; greater than 0 |
view.action.visible |
Yes | When view.action is alternative 1 and view.action.kind is slide-visibility: boolean |
view.action.sectionId |
Yes | When view.action is alternative 1 and view.action.kind is slide-duration-step: integer; greater than 0 |
view.action.itemId |
Yes | When view.action is alternative 1 and view.action.kind is slide-duration-step: integer; greater than 0 |
view.action.seconds |
Yes | When view.action is alternative 1 and view.action.kind is slide-duration-step: 5 or 10 or 15 or 30 |
view.action.sectionId |
Yes | When view.action is alternative 1 and view.action.kind is item-position: integer; greater than 0 |
view.action.itemType |
Yes | When view.action is alternative 1 and view.action.kind is item-position: MAIN_BANNER_SLIDES, LINE_BANNER, SERIES_LIST |
view.action.itemId |
Yes | When view.action is alternative 1 and view.action.kind is item-position: integer; greater than 0 |
view.action.previousItemId |
Yes | When view.action is alternative 1 and view.action.kind is item-position: integer; greater than 0 or null |
view.action.nextItemId |
Yes | When view.action is alternative 1 and view.action.kind is item-position: integer; greater than 0 or null |
view.action.sectionId |
Yes | When view.action is alternative 1 and view.action.kind is item-delete: integer; greater than 0 |
view.action.itemType |
Yes | When view.action is alternative 1 and view.action.kind is item-delete: MAIN_BANNER_SLIDES, LINE_BANNER, SERIES_LIST |
view.action.itemId |
Yes | When view.action is alternative 1 and view.action.kind is item-delete: integer; greater than 0 |
view.action.confirmation |
Yes | When view.action is alternative 1 and view.action.kind is item-delete: DELETE_HOME_ITEM |
view.action.kind |
Yes | When view.action is alternative 2: restore-edit |
view.action.sectionId |
Yes | When view.action is alternative 2: integer; greater than 0 |
view.action.sourceTaskId |
Yes | When view.action is alternative 2: string; pattern ^[A-Za-z0-9_-]{8,80}$ |
view.duration |
No | object |
view.duration.sectionId |
Yes | integer; greater than 0 |
view.duration.seconds |
Yes | 5 or 10 or 15 or 30 |
view.duration.itemIds |
No | array; items: integer; greater than 0; min items 1; max items 5 |