Skip to content

Update redemption type (Admin)

Request

Update an existing redemption type configuration

Security
authJWT
Path
idnumberrequired
Bodyapplication/jsonrequired
namestringrequired

Redemption type name

descriptionstring

Redemption type description

imageUrlstring

Redemption type image url

baseRequiredUserFieldsArray of strings

Base required user fields for all redemptions of this type. Can include built-in field keys (email, firstName) or custom field definition UUIDs.

Default:[]
bookingRequirementobject or null(BookingRequirementConfigDTO)

Default booking requirement config for all redemptions of this type. Individual redemptions can override.

translationsobject

Per-locale translations keyed by locale (e.g. "de", "ar-sa"). Translatable fields: name, description.

Example:
{ "de": { "name": "..." }, "fr": null }
curl -i -X PUT \
  'https://docs.pers.ninja/_mock/swagger/redemptions/types/{id}' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "name": "string",
    "description": "string",
    "imageUrl": "string",
    "baseRequiredUserFields": [],
    "bookingRequirement": {
      "type": "active",
      "eligibleBusinessIds": [
        "string"
      ],
      "eligibleBusinessTypeIds": [
        0
      ]
    },
    "translations": {
      "de": {
        "name": "..."
      },
      "fr": null
    }
  }'

Responses

Redemption type updated successfully

Bodyapplication/json
namestringrequired

Redemption type name

descriptionstring

Redemption type description

imageUrlstring

Redemption type image url

baseRequiredUserFieldsArray of strings

Base required user fields for all redemptions of this type. Can include built-in field keys (email, firstName) or custom field definition UUIDs.

Default:[]
bookingRequirementobject or null(BookingRequirementConfigDTO)

Default booking requirement config for all redemptions of this type. Individual redemptions can override.

translationsobject

Per-locale translations of the translatable fields, keyed by locale. Only returned with include=translations.

Example:
{ "de": { "name": "..." }, "fr": null }
idnumberrequired

Redemption type id

localizedFieldsArray of strings

Fields whose value comes from a stored translation for the request locale (x-locale); absent when none do

availableLocalesArray of strings

Locales this entity has stored translations for, independent of the request locale; absent when none

Response
{ "name": "string", "description": "string", "imageUrl": "string", "baseRequiredUserFields": [], "bookingRequirement": { "type": "active", "eligibleBusinessIds": [ … ], "eligibleBusinessTypeIds": [ … ] }, "translations": { "de": { … }, "fr": null }, "id": 0, "localizedFields": [ "string" ], "availableLocales": [ "string" ] }