UnitGroup

Replace a unit group

Use this call to modify a unit group.<br>You must have at least one of these scopes: 'unitgroups.manage, setup.manage'.

put/inventory/v1/unit-groups/{id}

Path parameters

idstring required

The id of the unit group.

Request body

nameobject required

The name for the unit group

descriptionobject required

The description for the unit group

maxPersonsinteger

Maximum number of persons for the unit group. If this value is increased, the surcharges for the related rate plans must be specified in order for the rate plans to be sellable for the new possible occupancies.

rankinteger nullable

The unit group rank Restrictions:

  • Should be greater or equal to one

Example request

{
  "name": {
    "en": "Double Room",
    "de": "Doppelzimmer"
  },
  "description": {
    "en": "This is a nice room with as kingsize bed and flat screen",
    "de": "Dies ist ein schönes Zimmer mit Kingsize-Bett und Flachbildschirm"
  },
  "maxPersons": 4,
  "rank": 2
}

Response

Replace of the unit group was successful.

Changes

No recorded changes to this endpoint across all 1 revision of this API.