PUT v1/media/{id}

This method requires authentication.

Update an existing Media.

Request Information

Parameters

NameDescriptionAdditional information
id ID of Media to update.

Define this parameter in the request URI.

resource Media resource.

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "media": {
    "id": 1,
    "creationDate": "2017-12-11T13:06:25.6345673-06:00",
    "dispositionDate": "2017-12-11T13:06:25.6345673-06: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-12-11T13:06:25.6345673-06:00</CreationDate>
    <Disposition>1</Disposition>
    <DispositionDate>2017-12-11T13:06:25.6345673-06: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>