- Update redemption type (Admin)
Update an existing redemption type configuration
Base required user fields for all redemptions of this type. Can include built-in field keys (email, firstName) or custom field definition UUIDs.
Default booking requirement config for all redemptions of this type. Individual redemptions can override.
- Mock serverhttps://docs.pers.ninja/_mock/swagger/redemptions/types/{id}
- https://api.pers.ninja/v2https://api.pers.ninja/v2/redemptions/types/{id}
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
}
}'Redemption type updated successfully
Base required user fields for all redemptions of this type. Can include built-in field keys (email, firstName) or custom field definition UUIDs.
Default booking requirement config for all redemptions of this type. Individual redemptions can override.
Per-locale translations of the translatable fields, keyed by locale. Only returned with include=translations.
{ "de": { "name": "..." }, "fr": null }
Fields whose value comes from a stored translation for the request locale (x-locale); absent when none do
{ "name": "string", "description": "string", "imageUrl": "string", "baseRequiredUserFields": [], "bookingRequirement": { "type": "active", "eligibleBusinessIds": [ … ], "eligibleBusinessTypeIds": [ … ] }, "translations": { "de": { … }, "fr": null }, "id": 0, "localizedFields": [ "string" ], "availableLocales": [ "string" ] }