PUT api/UserHotels

Request Information

URI Parameters

None.

Body Parameters

Collection of UserHotel
NameDescriptionTypeAdditional information
HotelName

string

None.

RoleName

string

None.

Exists

boolean

None.

ID

integer

None.

RoleId

integer

None.

UserName

string

None.

HotelId

integer

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "$id": "1",
    "HotelName": "sample string 1",
    "RoleName": "Eingi rættindi",
    "Exists": true,
    "ID": 3,
    "RoleId": 4,
    "UserName": "sample string 5",
    "HotelId": 6
  },
  {
    "$ref": "1"
  }
]

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 'UserHotel[]'.

Response Information

Resource Description

Collection of UserHotel
NameDescriptionTypeAdditional information
HotelName

string

None.

RoleName

string

None.

Exists

boolean

None.

ID

integer

None.

RoleId

integer

None.

UserName

string

None.

HotelId

integer

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "$id": "1",
    "HotelName": "sample string 1",
    "RoleName": "Eingi rættindi",
    "Exists": true,
    "ID": 3,
    "RoleId": 4,
    "UserName": "sample string 5",
    "HotelId": 6
  },
  {
    "$ref": "1"
  }
]