updateCustomTranslations
put
/ccadmin/v1/resources/{bundle}
Update Custom Translations. Update the custom translations for the specified resource bundle strings. Keys with blank values will be removed from the translations map
Request
Supported Media Types
- application/json
Path Parameters
-
bundle: string
The name of the resource bundle to store the custom values against.
Root Schema : updateCustomTranslations_request
Type:
Show Source
object
-
custom(optional):
array custom
Map of custom resource key/value pairs to update.
Example:
PUT /ccadminui/v1/resources/ns.common
Response
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Root Schema : updateCustomTranslations_response
Type:
Show Source
object
-
custom(optional):
array custom
Updated map of custom resource key/value pairs
Example Response (application/json)
{
"custom":{
"okText":"OK"
},
"links":[
{
"rel":"self",
"href":"http://localhost:9080/ccadminui/v1/resources/ns.common?custom=%5Bobject%20Object%5D"
}
]
}
Default Response
The error response.
The following are the internal error codes thrown by this API when the request processing fails in Oracle Commerce Cloud:
|Error Code|Description|
|------------------|------------------|
|71008|If a key is missing or not specified|
|71007|If an error occurs when trying to retrieve the custom translations|
|71004|If the locale is not specified and cannot be determined|
|71011|If an error occurs when removing a custom translation|
|71010|If an error occurs when saving a custom translation|
Root Schema : errorModel
Type:
Show Source
object
-
devMessage(optional):
string
An optional non-localized message containing technical information for developers
-
errorCode(optional):
string
The numerical code identifying the error
-
errors(optional):
array errors
An optional list of errors if multiple errors were encountered
-
message(optional):
string
The localized message describing the error
-
moreInfo(optional):
string
An optional non-localized message with more information
-
o:errorPath(optional):
string
An optional machine readable description of where the error occurred
-
status(optional):
string
The HTTP status code
-
type(optional):
string
The URI to the HTTP state code definition
Nested Schema : errors
Type:
array
An optional list of errors if multiple errors were encountered
Show Source
Nested Schema : items
Type:
Show Source
object
-
devMessage(optional):
string
An optional non-localized message containing technical information for developers
-
errorCode(optional):
string
The numerical code identifying the error
-
message(optional):
string
The localized message describing the error
-
moreInfo(optional):
string
An optional non-localized message with more information
-
o:errorPath(optional):
string
An optional machine readable description of where the error occurred
-
status(optional):
string
The HTTP status code