POST api/Capacities?userName={userName}&token={token}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
userName

string

Default value is

token

string

Default value is

Body Parameters

Capacity
NameDescriptionTypeAdditional information
ID

integer

None.

Beds

integer

None.

Rooms

integer

None.

Houses

integer

None.

Flats

integer

None.

Tentplaces

integer

None.

Campingplaces

integer

None.

ChangedBy

string

None.

Changed

date

None.

ValidTo

date

None.

ValidFrom

date

None.

HotelId

integer

None.

Month

integer

None.

Year

integer

None.

DisplayMonthYear

string

None.

Request Formats

application/json, text/json

Sample:
{
  "ID": 1,
  "Beds": 2,
  "Rooms": 3,
  "Houses": 4,
  "Flats": 5,
  "Tentplaces": 6,
  "Campingplaces": 7,
  "ChangedBy": "sample string 8",
  "Changed": "2026-04-06T01:14:52.1565916+01:00",
  "ValidTo": "2026-04-06T01:14:52.1565916+01:00",
  "ValidFrom": "2026-04-06T01:14:52.1565916+01:00",
  "HotelId": 12,
  "Month": 13,
  "Year": 14,
  "DisplayMonthYear": "sample string 15"
}

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

Response Information

Resource Description

Capacity
NameDescriptionTypeAdditional information
ID

integer

None.

Beds

integer

None.

Rooms

integer

None.

Houses

integer

None.

Flats

integer

None.

Tentplaces

integer

None.

Campingplaces

integer

None.

ChangedBy

string

None.

Changed

date

None.

ValidTo

date

None.

ValidFrom

date

None.

HotelId

integer

None.

Month

integer

None.

Year

integer

None.

DisplayMonthYear

string

None.

Response Formats

application/json, text/json

Sample:
{
  "ID": 1,
  "Beds": 2,
  "Rooms": 3,
  "Houses": 4,
  "Flats": 5,
  "Tentplaces": 6,
  "Campingplaces": 7,
  "ChangedBy": "sample string 8",
  "Changed": "2026-04-06T01:14:52.1565916+01:00",
  "ValidTo": "2026-04-06T01:14:52.1565916+01:00",
  "ValidFrom": "2026-04-06T01:14:52.1565916+01:00",
  "HotelId": 12,
  "Month": 13,
  "Year": 14,
  "DisplayMonthYear": "sample string 15"
}