POST v1/media

This method requires authentication.

Create a new Media.

Request Information

Parameters

NameDescriptionAdditional information
resource Media resource.

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "media": {
    "id": 1,
    "creationDate": "2017-03-30T07:40:45.5708353-05:00",
    "dispositionDate": "2017-03-30T07:40:45.5708353-05:00",
    "disposition": 1,
    "format": 1,
    "location": 1,
    "mediaName": "sample string 2",
    "preAssignedDevice": 1,
    "preAssignedDeviceSlot": 1,
    "overrideAspectRatio": 1
  }
}

application/xml, text/xml

Sample:
<Resources xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CablecastAPI.DTOs">
  <Media>
    <CreationDate>2017-03-30T07:40:45.5708353-05:00</CreationDate>
    <Disposition>1</Disposition>
    <DispositionDate>2017-03-30T07:40:45.5708353-05:00</DispositionDate>
    <Format>1</Format>
    <Id>1</Id>
    <Location>1</Location>
    <MediaName>sample string 2</MediaName>
    <OverrideAspectRatio>1</OverrideAspectRatio>
    <PreAssignedDevice>1</PreAssignedDevice>
    <PreAssignedDeviceSlot>1</PreAssignedDeviceSlot>
  </Media>
</Resources>