PUT api/Admin/Areas/{id}/Seats

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

AreaSeatsDTO
NameDescriptionTypeAdditional information
SpecifySeats

boolean

None.

Seats

Collection of AreaSeatDTO

None.

Request Formats

application/json, text/json

Sample:
{
  "SpecifySeats": true,
  "Seats": [
    {
      "Id": 1,
      "Name": "sample string 1",
      "XCoord": 1.0,
      "YCoord": 1.0,
      "Active": true,
      "Temperature": 1.1,
      "Humidity": 1.1,
      "Light": 1.1,
      "EInkDeskTag": "sample string 3",
      "Reservations": null,
      "Sensor": {
        "SensorId": 1,
        "SensorName": "sample string 2"
      }
    },
    {
      "Id": 1,
      "Name": "sample string 1",
      "XCoord": 1.0,
      "YCoord": 1.0,
      "Active": true,
      "Temperature": 1.1,
      "Humidity": 1.1,
      "Light": 1.1,
      "EInkDeskTag": "sample string 3",
      "Reservations": null,
      "Sensor": {
        "SensorId": 1,
        "SensorName": "sample string 2"
      }
    }
  ]
}

application/xml, text/xml

Sample:
<AreaSeatsDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Bluedock.Booking.Rest.Models">
  <Seats>
    <AreaSeatDTO>
      <Active>true</Active>
      <EInkDeskTag>sample string 3</EInkDeskTag>
      <Humidity>1.1</Humidity>
      <Id>1</Id>
      <Light>1.1</Light>
      <Name>sample string 1</Name>
      <Reservations xmlns:d4p1="http://schemas.datacontract.org/2004/07/Bluedock.Booking.Rest.Models.Area" i:nil="true" />
      <Sensor xmlns:d4p1="http://schemas.datacontract.org/2004/07/Bluedock.Booking.Rest.Models.Sensor">
        <d4p1:SensorId>1</d4p1:SensorId>
        <d4p1:SensorName>sample string 2</d4p1:SensorName>
      </Sensor>
      <Temperature>1.1</Temperature>
      <XCoord>1</XCoord>
      <YCoord>1</YCoord>
    </AreaSeatDTO>
    <AreaSeatDTO>
      <Active>true</Active>
      <EInkDeskTag>sample string 3</EInkDeskTag>
      <Humidity>1.1</Humidity>
      <Id>1</Id>
      <Light>1.1</Light>
      <Name>sample string 1</Name>
      <Reservations xmlns:d4p1="http://schemas.datacontract.org/2004/07/Bluedock.Booking.Rest.Models.Area" i:nil="true" />
      <Sensor xmlns:d4p1="http://schemas.datacontract.org/2004/07/Bluedock.Booking.Rest.Models.Sensor">
        <d4p1:SensorId>1</d4p1:SensorId>
        <d4p1:SensorName>sample string 2</d4p1:SensorName>
      </Sensor>
      <Temperature>1.1</Temperature>
      <XCoord>1</XCoord>
      <YCoord>1</YCoord>
    </AreaSeatDTO>
  </Seats>
  <SpecifySeats>true</SpecifySeats>
</AreaSeatsDTO>

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 'AreaSeatsDTO'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.