POST RoomsAPI/AddRoom

Request Information

URI Parameters

None.

Body Parameters

Rooms
NameDescriptionTypeAdditional information
RoomID

integer

None.

Active

boolean

None.

BuildingName

string

None.

RoomAcronym

string

None.

RoomCapacity

integer

None.

RoomLocation

string

None.

RoomName

string

None.

RoomNotes

string

None.

RoomType

string

None.

Request Formats

application/json, text/json

Sample:
{
  "RoomID": 1,
  "Active": true,
  "BuildingName": "sample string 3",
  "RoomAcronym": "sample string 4",
  "RoomCapacity": 5,
  "RoomLocation": "sample string 6",
  "RoomName": "sample string 7",
  "RoomNotes": "sample string 8",
  "RoomType": "sample string 9"
}

application/xml, text/xml

Sample:
<Rooms xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/QMA2020.Models">
  <Active>true</Active>
  <BuildingName>sample string 3</BuildingName>
  <RoomAcronym>sample string 4</RoomAcronym>
  <RoomCapacity>5</RoomCapacity>
  <RoomID>1</RoomID>
  <RoomLocation>sample string 6</RoomLocation>
  <RoomName>sample string 7</RoomName>
  <RoomNotes>sample string 8</RoomNotes>
  <RoomType>sample string 9</RoomType>
</Rooms>

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

Response Information

Resource Description

integer

Response Formats

application/json, text/json

Sample:
1

application/xml, text/xml

Sample:
<int xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</int>