Skip to main content

Update CMS locales

PATCH /v1/projects/me/cms-locales
devhttps://api.sandbox.ovok.com

Replace the list of locales the project offers. The first entry becomes the project default. Admin-only.

Request body

Content-Type: application/json

  • locales: array (required)

Responses

CodeDescription
200Success.
400The request could not be operated by the server.
401The resource owner or authorization server denied the request.
404The requested resource could not be found.
422The request could not be validated by the server.
500The server encountered an unexpected condition. Please try again later.

200CmsLocalesResponseDto (application/json)

CMS locale configuration for the caller’s current project. Public content delivery falls back to default when a requested locale has no value on file.

  • locales: string[] (required) — BCP-47 codes ordered as configured. Empty when the project has none set yet.
  • default: string (required) — The project default locale — equal to locales[0] (or "" when no locales are configured).

Example

{
"locales": [
"en",
"de",
"fr"
],
"default": "en"
}