AgeCategory

Create an age category

Use this call to create a new age category. The age ranges for categories must not overlap each other and the allowed values span from 0 to 17. <br>You must have at least one of these scopes: 'settings.manage, setup.manage'.

post/settings/v1/age-categories

Headers

Idempotency-Keystring

Unique key for safely retrying requests without accidentally performing the same operation twice. We'll always send back the same response for requests made with the same key, and keys can't be reused with different request parameters. Keys expire after 24 hours.

Request body

codestring required

The code for the age category

propertyIdstring required

The id of the property for which the age category will be created

nameobject required

The name for the age category

minAgeinteger required

The minimum age for the age category. The specified value is included in the age range

maxAgeinteger required

The maximum age for the age category. The specified value is included in the age range and the maximum value is 17

Example request

{
  "code": "BABY",
  "propertyId": "MUC",
  "name": {
    "en": "Baby",
    "de": "Kind"
  },
  "minAge": 0,
  "maxAge": 2
}

Response

Creation of the new age category was successful.

idstring required

The age category id

Example response

{
  "id": "MUC-BABY"
}

Changes

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