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
"use strict";
export class LobbyContentItem {
    /** @param {{LobbyContentId?:number,Title?:string,Kind?:string,HasMedia?:boolean,MediaUrl?:string,Headline?:string,Body?:string,Accent?:string,Url?:string,DwellSec?:number,StartsAt?:string,EndsAt?:string,DaysMask?:number,HourFrom?:number,HourTo?:number,IsThirdParty?:boolean,Status?:string,AllBranches?:boolean,BranchIds?:string[],Plays7d?:number,OnNow?:boolean,SortOrder?:number,CreatedBy?:string,UpdatedAt?:string,Fit?:string,FitBg?:string,MediaWidth?:number,MediaHeight?:number,VideoSec?:number,CaptionsBurnedIn?:boolean,ShowLogo?:boolean,Caption?:string,ComputedStatus?:string,PlaysToday?:number,HiddenBranchIds?:string[],Hidden?:boolean}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {number} */
    LobbyContentId;
    /** @type {string} */
    Title;
    /** @type {string} */
    Kind;
    /** @type {boolean} */
    HasMedia;
    /** @type {string} */
    MediaUrl;
    /** @type {string} */
    Headline;
    /** @type {string} */
    Body;
    /** @type {string} */
    Accent;
    /** @type {string} */
    Url;
    /** @type {number} */
    DwellSec;
    /** @type {?string} */
    StartsAt;
    /** @type {?string} */
    EndsAt;
    /** @type {number} */
    DaysMask;
    /** @type {?number} */
    HourFrom;
    /** @type {?number} */
    HourTo;
    /** @type {boolean} */
    IsThirdParty;
    /** @type {string} */
    Status;
    /** @type {boolean} */
    AllBranches;
    /** @type {string[]} */
    BranchIds = [];
    /** @type {number} */
    Plays7d;
    /** @type {boolean} */
    OnNow;
    /** @type {number} */
    SortOrder;
    /** @type {string} */
    CreatedBy;
    /** @type {?string} */
    UpdatedAt;
    /** @type {string} */
    Fit;
    /** @type {string} */
    FitBg;
    /** @type {?number} */
    MediaWidth;
    /** @type {?number} */
    MediaHeight;
    /** @type {?number} */
    VideoSec;
    /** @type {boolean} */
    CaptionsBurnedIn;
    /** @type {boolean} */
    ShowLogo;
    /** @type {string} */
    Caption;
    /** @type {string} */
    ComputedStatus;
    /** @type {number} */
    PlaysToday;
    /** @type {string[]} */
    HiddenBranchIds = [];
    /** @type {boolean} */
    Hidden;
}
export class LobbyContentResponse {
    /** @param {{ResponseStatus?:ResponseStatus,Items?:LobbyContentItem[],Notified?:number}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {ResponseStatus} */
    ResponseStatus;
    /** @type {LobbyContentItem[]} */
    Items = [];
    /** @type {number} */
    Notified;
}
export class LobbyContentDuplicateRequest {
    /** @param {{LobbyContentId?:number,Item?:LobbyContentItem,TitleSuffix?:string,RequestReview?:boolean}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {number} */
    LobbyContentId;
    /** @type {LobbyContentItem} */
    Item;
    /** @type {string} */
    TitleSuffix;
    /** @type {boolean} */
    RequestReview;
}

JavaScript LobbyContentDuplicateRequest DTOs

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

HTTP + JSV

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: text/jsv
Content-Type: text/jsv
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-01,
		EndsAt: 0001-01-01,
		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-01,
		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: text/jsv
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-01,
			EndsAt: 0001-01-01,
			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-01,
			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
}