POST api/room/activeinactiveroom

Request Information

URI Parameters

None.

Body Parameters

Room
NameDescriptionTypeAdditional information
RoomId

integer

None.

ResortId

integer

None.

RoomName

string

None.

RoomTypeMasterId

integer

None.

ShortDescription

string

None.

LongDescription

string

None.

IsApproved

boolean

None.

Occupancy

integer

None.

ResortName

string

None.

ResortIsActive

boolean

None.

RoomType

string

None.

VendorRoomIdentifier

string

None.

Resort

Resort

None.

RoomTypeMaster

RoomTypeMaster

None.

RoomAmenities

Collection of RoomAmenity

None.

RoomAvailabilities

Collection of RoomAvailability

None.

RoomImages

Collection of RoomImage

None.

RoomRackRates

Collection of RoomRackRate

None.

RoomRestrictions

Collection of RoomRestriction

None.

AmenityMasterList

Collection of AmenityMaster

None.

ResortList

Collection of Resort

None.

RestrictionMasterList

Collection of RestrictionMaster

None.

CreatedDate

date

None.

ModifiedDate

date

None.

CreatedBy

integer

None.

ModifiedBy

integer

None.

IsActive

boolean

None.

IsDeleted

boolean

None.

Request Formats

application/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'application/json'. Exception message: Self referencing loop detected with type 'SRG.Core.Room'. Path 'Resort.RoomList'.

text/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'text/json'. Exception message: Self referencing loop detected with type 'SRG.Core.Room'. Path 'Resort.RoomList'.

text/html

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'text/html'. Exception message: Self referencing loop detected with type 'SRG.Core.Room'. Path 'Resort.RoomList'.

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Object graph for type 'System.Collections.Generic.List`1[[SRG.Core.Room, SRG.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]' contains cycles and cannot be serialized if reference tracking is disabled.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Object graph for type 'System.Collections.Generic.List`1[[SRG.Core.Room, SRG.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]' contains cycles and cannot be serialized if reference tracking is disabled.

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.