Trendsic Platform Service

<back to all web services

LobbyContentDuplicateRequest

Requires Authentication
The following routes are available for this service:
POST,OPTIONS/v1/lobby/content/{LobbyContentId}/duplicate
import datetime
import decimal
from marshmallow.fields import *
from servicestack import *
from typing import *
from dataclasses import dataclass, field
from dataclasses_json import dataclass_json, LetterCase, Undefined, config
from enum import Enum, IntEnum


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class LobbyContentItem:
    lobby_content_id: int = 0
    title: Optional[str] = None
    kind: Optional[str] = None
    has_media: bool = False
    media_url: Optional[str] = None
    headline: Optional[str] = None
    body: Optional[str] = None
    accent: Optional[str] = None
    url: Optional[str] = None
    dwell_sec: int = 0
    starts_at: Optional[datetime.datetime] = None
    ends_at: Optional[datetime.datetime] = None
    days_mask: int = 0
    hour_from: Optional[int] = None
    hour_to: Optional[int] = None
    is_third_party: bool = False
    status: Optional[str] = None
    all_branches: bool = False
    branch_ids: List[str] = field(default_factory=list)
    plays7d: int = 0
    on_now: bool = False
    sort_order: int = 0
    created_by: Optional[str] = None
    updated_at: Optional[datetime.datetime] = None
    fit: Optional[str] = None
    fit_bg: Optional[str] = None
    media_width: Optional[int] = None
    media_height: Optional[int] = None
    video_sec: Optional[Decimal] = None
    captions_burned_in: bool = False
    show_logo: bool = False
    caption: Optional[str] = None
    computed_status: Optional[str] = None
    plays_today: int = 0
    hidden_branch_ids: List[str] = field(default_factory=list)
    hidden: bool = False


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class LobbyContentResponse:
    response_status: Optional[ResponseStatus] = None
    items: List[LobbyContentItem] = field(default_factory=list)
    notified: int = 0


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class LobbyContentDuplicateRequest:
    lobby_content_id: int = 0
    item: Optional[LobbyContentItem] = None
    title_suffix: Optional[str] = None
    request_review: bool = False

Python LobbyContentDuplicateRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /v1/lobby/content/{LobbyContentId}/duplicate HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"LobbyContentId":0,"Item":{"LobbyContentId":0,"Title":"String","Kind":"String","HasMedia":false,"MediaUrl":"String","Headline":"String","Body":"String","Accent":"String","Url":"String","DwellSec":0,"StartsAt":"0001-01-01T00:00:00.0000000","EndsAt":"0001-01-01T00:00:00.0000000","DaysMask":0,"HourFrom":0,"HourTo":0,"IsThirdParty":false,"Status":"String","AllBranches":false,"BranchIds":["00000000000000000000000000000000"],"Plays7d":0,"OnNow":false,"SortOrder":0,"CreatedBy":"String","UpdatedAt":"0001-01-01T00:00:00.0000000","Fit":"String","FitBg":"String","MediaWidth":0,"MediaHeight":0,"VideoSec":0,"CaptionsBurnedIn":false,"ShowLogo":false,"Caption":"String","ComputedStatus":"String","PlaysToday":0,"HiddenBranchIds":["00000000000000000000000000000000"],"Hidden":false},"TitleSuffix":"String","RequestReview":false}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"Items":[{"LobbyContentId":0,"Title":"String","Kind":"String","HasMedia":false,"MediaUrl":"String","Headline":"String","Body":"String","Accent":"String","Url":"String","DwellSec":0,"StartsAt":"0001-01-01T00:00:00.0000000","EndsAt":"0001-01-01T00:00:00.0000000","DaysMask":0,"HourFrom":0,"HourTo":0,"IsThirdParty":false,"Status":"String","AllBranches":false,"BranchIds":["00000000000000000000000000000000"],"Plays7d":0,"OnNow":false,"SortOrder":0,"CreatedBy":"String","UpdatedAt":"0001-01-01T00:00:00.0000000","Fit":"String","FitBg":"String","MediaWidth":0,"MediaHeight":0,"VideoSec":0,"CaptionsBurnedIn":false,"ShowLogo":false,"Caption":"String","ComputedStatus":"String","PlaysToday":0,"HiddenBranchIds":["00000000000000000000000000000000"],"Hidden":false}],"Notified":0}