PUT v1/blocks/{id}

This method requires authentication.

Updates an existing Block.

Request Information

Parameters

NameDescriptionAdditional information
id ID of the Block to update

Define this parameter in the request URI.

resource Updated an existing Block

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "block": {
    "id": 1,
    "name": "sample string 2",
    "offsets": [
      1,
      2,
      3
    ],
    "location": 1,
    "defaultSourceTime": "2017-11-21T09:31:38.0665504-06:00"
  }
}

application/xml, text/xml

Sample:
<Resources xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CablecastAPI.DTOs">
  <Block>
    <DefaultSourceTime>2017-11-21T09:31:38.0665504-06:00</DefaultSourceTime>
    <Id>1</Id>
    <Location>1</Location>
    <Name>sample string 2</Name>
    <Offsets xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:int>1</d3p1:int>
      <d3p1:int>2</d3p1:int>
      <d3p1:int>3</d3p1:int>
    </Offsets>
  </Block>
</Resources>