Delete an option preset
/option-presets/{id}Deletes the preset and returns 204. It can't be undone and has no dry run; create it again with POST /option-presets. A repeat call returns 404. A preset that a field of a live form still uses is refused with 409 conflict, with each field id in details as referenced_by: unlink it from those fields first. Emits option_preset.deleted and sends no email.
Path parameters
The option preset's id, a uuid. An unknown id returns 404.
Responses
The preset was deleted.
Authorization failed. error.code is one of org_disabled,
ip_blocked, missing_scope, scope_disabled, user_disabled.
The request conflicts with existing state (error.code = conflict),
e.g. a compliance flow with the requested name already exists.
The request can't be processed (HTTP 422): validation_failed with one ErrorDetail per
problem, or a code documented on the operation.
Examples
curl -X DELETE https://your-org-domain/kong/core/api/v2/option-presets/{id}\
-H "Authorization: Bearer $HELM_API_KEY"\
-H "Content-Type: application/json"