POST v1/blocks

This method requires authentication.

Creates a new Block.

Request Information

Parameters

NameDescriptionAdditional information
resource The new Block object.

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-03-24T10:50:03.9387526-05: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-03-24T10:50:03.9387526-05: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>