POST api/widgouts/{widgoutId}/widgocks

Create new widget block

Request Information

URI Parameters

NameDescriptionTypeAdditional information
widgoutId

string

None.

Body Parameters

Widget block data transfer object

WidgockDto
NameDescriptionTypeAdditional information
Id

Widget block id

globally unique identifier

None.

OrderNumber

First, second, third block

byte

Required

ColumnCount

Places in four column - 6 (of 12) First block - 3, Third block - 3 (3+6+3 = 12)

byte

Required

WidgoutId

Widget layout (parent) id

globally unique identifier

None.

WidgetDtoList

List of widget for this block

Collection of WidgetDto

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": "5a46e014-9890-4528-a672-48079d4ffe1e",
  "OrderNumber": 64,
  "ColumnCount": 64,
  "WidgoutId": "41a11ea4-7d22-4a1a-8212-e9abf0a53ac5",
  "WidgetDtoList": [
    {
      "Id": "0441bf30-0166-4ae9-aea5-fe7d9906a8e8",
      "Name": "sample string 2",
      "IdOfSectionPattern": "sample string 3",
      "WidgockId": "c6d15889-09f8-4869-8eb0-e331a5a06ddb",
      "Opts": "sample string 5",
      "OrderNumber": 64,
      "IdOfCntxStage": "sample string 7"
    },
    {
      "Id": "0441bf30-0166-4ae9-aea5-fe7d9906a8e8",
      "Name": "sample string 2",
      "IdOfSectionPattern": "sample string 3",
      "WidgockId": "c6d15889-09f8-4869-8eb0-e331a5a06ddb",
      "Opts": "sample string 5",
      "OrderNumber": 64,
      "IdOfCntxStage": "sample string 7"
    }
  ]
}

application/xml, text/xml

Sample:
<WidgockDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Reyvart.WellFileManager.Web.Models">
  <ColumnCount>64</ColumnCount>
  <Id>5a46e014-9890-4528-a672-48079d4ffe1e</Id>
  <OrderNumber>64</OrderNumber>
  <WidgetDtoList>
    <WidgetDto>
      <Id>0441bf30-0166-4ae9-aea5-fe7d9906a8e8</Id>
      <IdOfCntxStage>sample string 7</IdOfCntxStage>
      <IdOfSectionPattern>sample string 3</IdOfSectionPattern>
      <Name>sample string 2</Name>
      <Opts>sample string 5</Opts>
      <OrderNumber>64</OrderNumber>
      <WidgockId>c6d15889-09f8-4869-8eb0-e331a5a06ddb</WidgockId>
    </WidgetDto>
    <WidgetDto>
      <Id>0441bf30-0166-4ae9-aea5-fe7d9906a8e8</Id>
      <IdOfCntxStage>sample string 7</IdOfCntxStage>
      <IdOfSectionPattern>sample string 3</IdOfSectionPattern>
      <Name>sample string 2</Name>
      <Opts>sample string 5</Opts>
      <OrderNumber>64</OrderNumber>
      <WidgockId>c6d15889-09f8-4869-8eb0-e331a5a06ddb</WidgockId>
    </WidgetDto>
  </WidgetDtoList>
  <WidgoutId>41a11ea4-7d22-4a1a-8212-e9abf0a53ac5</WidgoutId>
</WidgockDto>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'WidgockDto'.

Response Information

Resource Description

Created widget block plus location

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.