v3

latestOpenAPI 3.0.3GPL-2.0-or-laterraw.githubusercontent.com2026-03-115726123.8 KB
Languages

Update a single language

put/languages/{id}

Headers

If-Matchstring required

Clients need to provide the If-Match parameter on update operations (PUT and PATCH) with the ETag obtained in the request from which data are being updated. Requests missing this header will be rejected with HTTP response code 428. Requests trying to update outdated content will be rejected with HTTP response code 412.

Request body

_metaobject
codestring required
defaultboolean
descriptionstring required

Example request

{
  "code": "fr_CA",
  "description": "French (Canada)"
}

Response

Confirms successful replacement of the resource's data, returning the new data of the resource.

_metaobject
codestring required
defaultboolean
descriptionstring required

Example response

{
  "code": "fr_CA",
  "description": "French (Canada)"
}