Trendsic Platform Service

<back to all web services

LobbyContentMediaRequest

Requires Authentication
The following routes are available for this service:
POST,OPTIONS/v1/lobby/content/{LobbyContentId}/media
namespace CRM.AgencyPlatform.API.Internal

open System
open System.IO
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations

    [<AllowNullLiteral>]
    type LobbyContentItem() = 
        member val LobbyContentId:Int32 = new Int32() with get,set
        member val Title:String = null with get,set
        member val Kind:String = null with get,set
        member val HasMedia:Boolean = new Boolean() with get,set
        member val MediaUrl:String = null with get,set
        member val Headline:String = null with get,set
        member val Body:String = null with get,set
        member val Accent:String = null with get,set
        member val Url:String = null with get,set
        member val DwellSec:Int32 = new Int32() with get,set
        member val StartsAt:Nullable<DateTime> = new Nullable<DateTime>() with get,set
        member val EndsAt:Nullable<DateTime> = new Nullable<DateTime>() with get,set
        member val DaysMask:Int32 = new Int32() with get,set
        member val HourFrom:Nullable<Int32> = new Nullable<Int32>() with get,set
        member val HourTo:Nullable<Int32> = new Nullable<Int32>() with get,set
        member val IsThirdParty:Boolean = new Boolean() with get,set
        member val Status:String = null with get,set
        member val AllBranches:Boolean = new Boolean() with get,set
        member val BranchIds:ResizeArray<Guid> = new ResizeArray<Guid>() with get,set
        member val Plays7d:Int32 = new Int32() with get,set
        member val OnNow:Boolean = new Boolean() with get,set
        member val SortOrder:Int32 = new Int32() with get,set
        member val CreatedBy:String = null with get,set
        member val UpdatedAt:Nullable<DateTime> = new Nullable<DateTime>() with get,set

    [<AllowNullLiteral>]
    type LobbyContentResponse() = 
        member val ResponseStatus:ResponseStatus = null with get,set
        member val Items:ResizeArray<LobbyContentItem> = new ResizeArray<LobbyContentItem>() with get,set

    [<AllowNullLiteral>]
    type LobbyContentMediaRequest() = 
        member val LobbyContentId:Int32 = new Int32() with get,set

F# LobbyContentMediaRequest DTOs

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

HTTP + OTHER

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

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

{"LobbyContentId":0}
HTTP/1.1 200 OK
Content-Type: text/jsonl
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"}]}