Replace semantic keyword labels
/branding/semanticsSets the token organisation's labels for the keywords listed and returns the full list as GET does; it merges by id, so keywords not sent are left untouched. It needs super admin (else 403 missing_permission) and a service identity cannot. All or nothing: an unknown id is 422 exists and nothing is written. dry_run shows the result without saving it. Emits branding_semantics.updated naming the keywords that changed, only when one did; no email. Sending the earlier labels undoes it.
Query parameters
Validate and run the call without committing it, returning what the real call would return with
meta.dry_runset.
Headers
Makes a retry safe. Send a new UUID for each new request and reuse it only to retry that request; the first response is replayed for 24 hours.
Request body
application/json, required · SemanticsReplace
The keywords to set, each with its labels. Keywords left out keep what they have.
{
"items": [
{
"id": 1,
"singular_label": "opportunity",
"plural_label": "opportunities",
"indefinite_modifier": "an"
}
]
}Responses
{
"data": [
{
"id": 1,
"name": "deal",
"singular_label": "opportunity",
"plural_label": "opportunities",
"indefinite_modifier": "an",
"is_overridden": true
},
{
"id": 2,
"name": "investor",
"singular_label": "investor",
"plural_label": "investors",
"indefinite_modifier": "an",
"is_overridden": false
}
]
}Authorization failed. error.code is one of org_disabled,
ip_blocked, missing_scope, scope_disabled, user_disabled.
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 PUT https://your-org-domain/kong/core/api/v2/branding/semantics\
-H "Authorization: Bearer $HELM_API_KEY"\
-H "Content-Type: application/json"\
-d '{
"items": [
{
"id": 1,
"singular_label": "opportunity",
"plural_label": "opportunities",
"indefinite_modifier": "an"
}
]
}'