PUT api/Hotels?userName={userName}&token={token}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
userName

string

Default value is

token

string

Default value is

Body Parameters

Hotel
NameDescriptionTypeAdditional information
ID

integer

None.

Name

string

None.

Street

string

None.

PostalCode

string

None.

City

string

None.

PhoneNumber

string

None.

Email

string

None.

Webpage

string

None.

ContactPerson

string

None.

ContactPersonPhoneNumber

string

None.

ContactPersonEmail

string

None.

Comment

string

None.

ShowBusinessField

boolean

None.

IsActive

boolean

None.

TypeOfRegistration

integer

None.

HotelType

integer

None.

SeveralRegistrationsPrCountry

boolean

None.

RestKey

string

None.

RestId

string

None.

ChangedBy

string

None.

Changed

date

None.

Address

string

None.

DailyRegistrations

boolean

None.

HotelTypeName

string

None.

Request Formats

application/json, text/json

Sample:
{
  "ID": 1,
  "Name": "sample string 2",
  "Street": "sample string 3",
  "PostalCode": "sample string 4",
  "City": "sample string 5",
  "PhoneNumber": "sample string 6",
  "Email": "sample string 7",
  "Webpage": "sample string 8",
  "ContactPerson": "sample string 9",
  "ContactPersonPhoneNumber": "sample string 10",
  "ContactPersonEmail": "sample string 11",
  "Comment": "sample string 12",
  "ShowBusinessField": true,
  "IsActive": true,
  "TypeOfRegistration": 1,
  "HotelType": 1,
  "SeveralRegistrationsPrCountry": true,
  "RestKey": "sample string 13",
  "RestId": "sample string 14",
  "ChangedBy": "sample string 15",
  "Changed": "2026-04-06T01:15:22.0361144+01:00",
  "Address": "sample string 3 sample string 4 sample string 5",
  "DailyRegistrations": false,
  "HotelTypeName": "sample string 16"
}

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

Response Information

Resource Description

None.