POST api/Admin/Areas

Request Information

URI Parameters

None.

Body Parameters

AreaPostDTO
NameDescriptionTypeAdditional information
Name

string

None.

Capacity

integer

None.

LocationId

integer

None.

Active

boolean

None.

AllowQueue

boolean

None.

Note

string

None.

SpecifySeats

boolean

None.

AccessRoles

Collection of AccessRoleInfoDTO

None.

Facilities

Collection of FacilityPostDTO

None.

Request Formats

application/json, text/json

Sample:
{
  "Name": "sample string 1",
  "Capacity": 2,
  "LocationId": 3,
  "Active": true,
  "AllowQueue": true,
  "Note": "sample string 6",
  "SpecifySeats": true,
  "AccessRoles": null,
  "Facilities": [
    {
      "Id": 1
    },
    {
      "Id": 1
    }
  ]
}

application/xml, text/xml

Sample:
<AreaPostDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Bluedock.Booking.Rest.Models.Admin">
  <AccessRoles i:nil="true" />
  <Active>true</Active>
  <AllowQueue>true</AllowQueue>
  <Capacity>2</Capacity>
  <Facilities>
    <FacilityPostDTO>
      <Id>1</Id>
    </FacilityPostDTO>
    <FacilityPostDTO>
      <Id>1</Id>
    </FacilityPostDTO>
  </Facilities>
  <LocationId>3</LocationId>
  <Name>sample string 1</Name>
  <Note>sample string 6</Note>
  <SpecifySeats>true</SpecifySeats>
</AreaPostDTO>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.