Update a Language Code
put
/content/management/api/v1.1/l10n/languageCodes/{code}
Updates a language code with the given payload.
Request
Supported Media Types
- application/json
Path Parameters
-
code: string
Code of the language. This is case sensitive
Query Parameters
-
links(optional): string
This parameter accepts a comma-separated list of link names. By default, this parameter gives all the links applicable. Possible values are: self, canonical, describedby
Header Parameters
-
X-Requested-With: string
A custom header to mitigate CSRF attacks.Allowed Values:
[ "XMLHttpRequest" ]
Updates a language code details with the given information in the payload. Only description will be updated, all other fields will be ignored even if given in the payload. Description should be maximum of 128 characters.
Root Schema : LanguageBean
Type:
Show Source
object
-
code(optional):
string
locale code
-
createdBy(optional):
string
Created by.
-
createdDate(optional):
object date
date
-
description(optional):
string
Locale description
-
language(optional):
string
Locale language
-
languageType(optional):
string
lindicates if this is custom locale or default locale
-
links(optional):
array links
-
script(optional):
string
Script from language code
-
territory(optional):
string
Language code territory
-
updatedBy(optional):
string
Updated by.
-
updatedDate(optional):
object date
date
Nested Schema : Link
Type:
object
Link of the resource.
Show Source
-
href(optional):
string
The target resource's URI. It could be template URI. It is a required property in the get response.
-
mediaType(optional):
string
Media type.
-
method(optional):
string
What HTTP method can be used to access the target resource.
-
profile(optional):
string
Link to the metadata that describes the target resource.
-
rel(optional):
string
Relation type. It is a required property in the get response.
-
templated(optional):
boolean
Whether the URI is a template.
Response
Supported Media Types
- application/json
200 Response
OK.
Root Schema : LanguageBean
Type:
Show Source
object
-
code(optional):
string
locale code
-
createdBy(optional):
string
Created by.
-
createdDate(optional):
object date
date
-
description(optional):
string
Locale description
-
language(optional):
string
Locale language
-
languageType(optional):
string
lindicates if this is custom locale or default locale
-
links(optional):
array links
-
script(optional):
string
Script from language code
-
territory(optional):
string
Language code territory
-
updatedBy(optional):
string
Updated by.
-
updatedDate(optional):
object date
date
Nested Schema : Link
Type:
object
Link of the resource.
Show Source
-
href(optional):
string
The target resource's URI. It could be template URI. It is a required property in the get response.
-
mediaType(optional):
string
Media type.
-
method(optional):
string
What HTTP method can be used to access the target resource.
-
profile(optional):
string
Link to the metadata that describes the target resource.
-
rel(optional):
string
Relation type. It is a required property in the get response.
-
templated(optional):
boolean
Whether the URI is a template.
400 Response
Bad request.
404 Response
Not found.
500 Response
Internal server error.