PUT api/Admin/Areas/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

AreaPutDTO
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 AccessRolePutDTO

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": [
    {
      "GroupName": "sample string 1"
    },
    {
      "GroupName": "sample string 1"
    }
  ],
  "Facilities": [
    {
      "Id": 1
    },
    {
      "Id": 1
    }
  ]
}

application/xml, text/xml

Sample:
<AreaPutDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Bluedock.Booking.Rest.Models.Admin">
  <AccessRoles>
    <AccessRolePutDTO>
      <GroupName>sample string 1</GroupName>
    </AccessRolePutDTO>
    <AccessRolePutDTO>
      <GroupName>sample string 1</GroupName>
    </AccessRolePutDTO>
  </AccessRoles>
  <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>
</AreaPutDTO>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.