POST api/Registrations?hotelId={hotelId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
hotelId

integer

Default value is 0

Body Parameters

Registration
NameDescriptionTypeAdditional information
ID

integer

None.

From

date

None.

To

date

None.

LeisureGroups

integer

None.

LeisureSingle

integer

None.

BusinessGroups

integer

None.

BusinessSingle

integer

None.

Arrivals

integer

None.

NighlyStays

integer

None.

NightlyRooms

integer

None.

CountryCode

string

None.

HotelId

integer

None.

ChangedBy

string

None.

Changed

date

None.

Created

date

None.

Country

string

None.

Capacity

Capacity

None.

CurrentMonth

integer

None.

CurrentYear

integer

None.

CurrentDay

integer

None.

IsDayBefore

boolean

None.

MonthName

string

None.

Request Formats

application/json, text/json

Sample:
{
  "ID": 1,
  "From": "2026-04-06T01:21:11.7758108+01:00",
  "To": "2026-04-06T01:21:11.7758108+01:00",
  "LeisureGroups": 1,
  "LeisureSingle": 1,
  "BusinessGroups": 1,
  "BusinessSingle": 1,
  "Arrivals": 1,
  "NighlyStays": 1,
  "NightlyRooms": 1,
  "CountryCode": "sample string 2",
  "HotelId": 1,
  "ChangedBy": "sample string 3",
  "Changed": "2026-04-06T01:21:11.7758108+01:00",
  "Created": "2026-04-06T01:21:11.7758108+01:00",
  "Country": "sample string 4",
  "Capacity": {
    "$id": "2",
    "ID": 1,
    "Beds": 2,
    "Rooms": 3,
    "Houses": 4,
    "Flats": 5,
    "Tentplaces": 6,
    "Campingplaces": 7,
    "ChangedBy": "sample string 8",
    "Changed": "2026-04-06T01:21:11.7758108+01:00",
    "ValidTo": "2026-04-06T01:21:11.7758108+01:00",
    "ValidFrom": "2026-04-06T01:21:11.7758108+01:00",
    "HotelId": 12,
    "Month": 13,
    "Year": 14,
    "DisplayMonthYear": "sample string 15"
  },
  "CurrentMonth": 5,
  "CurrentYear": 6,
  "CurrentDay": 7,
  "IsDayBefore": true,
  "MonthName": "apríl"
}

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.