Update Host Company or Partner Organization Translations
patch
/rest/v16/companies/{companyLoginName}/translations
This endpoint replaces (add, remove, or replace) the entire host company or partner organization translations with the translation values specified in the web services request.
Request
Supported Media Types
- application/json
Path Parameters
-
companyLoginName(required): string
Company login name.
Root Schema : Patch Operations
Type:
array
Title:
Patch Operations
The array of operations.
Show Source
-
Array of:
object Company Translation Operation
Title:
Company Translation Operation
Nested Schema : Company Translation Operation
Type:
object
Title:
Show Source
Company Translation Operation
-
op(required):
string
Title:
op
Allowed Values:[ "add", "remove", "replace" ]
The operation to be performed. -
path(required):
string
Title:
Path
The language code to update company translation. -
value:
object Company Translation Request
Title:
Company Translation Request
Nested Schema : Company Translation Request
Type:
object
Title:
Show Source
Company Translation Request
-
language(required):
object Language Details
Title:
Language Details
-
name(required):
string
Title:
Company Translated Name
Company translation name in specific language.
Nested Schema : Language Details
Type:
object
Title:
Show Source
Language Details
-
languageCode(required):
string
Title:
Language Code
Unique language code.
Response
Supported Media Types
- application/json
Default Response
List of company translation details.
Root Schema : Company Translations
Type:
object
Title:
Show Source
Company Translations
-
items:
array Company Translations List
Title:
Company Translations List
-
links:
array Links
Title:
Links
Links to current objects.
Nested Schema : Company Translations List
Type:
array
Title:
Show Source
Company Translations List
-
Array of:
object Company Translation
Title:
Company Translation
Nested Schema : Links
Type:
array
Title:
Links
Links to current objects.
Show Source
-
Array of:
object reference links
Title:
reference links
Reference links for the Parent, Self, Children and Related as applicable
Nested Schema : Company Translation
Type:
object
Title:
Show Source
Company Translation
-
language:
object Translation Language
Title:
Translation Language
-
links:
array Links
Title:
Links
Links to current objects. -
name:
string
Title:
Company Translation Name
Company translation name in specific language.
Nested Schema : Translation Language
Type:
object
Title:
Show Source
Translation Language
-
languageCode:
string
Title:
Language Code
Translation message language name. -
languageNumber:
string
Title:
Language Number
Language sequence number in supported language list. -
links:
array Links
Title:
Links
Links to current objects.
Nested Schema : Links
Type:
array
Title:
Links
Links to current objects.
Show Source
-
Array of:
object reference links
Title:
reference links
Reference links for the Parent, Self, Children and Related as applicable
Nested Schema : Links
Type:
array
Title:
Links
Links to current objects.
Show Source
-
Array of:
object reference links
Title:
reference links
Reference links for the Parent, Self, Children and Related as applicable
Nested Schema : reference links
Type:
object
Title:
reference links
Reference links for the Parent, Self, Children and Related as applicable
Show Source
-
href:
string
Title:
URL to the related object
URL to the related object -
name:
string
-
rel:
string
Title:
Link Relationship to the current object
Default Value:self
Link Relationship to the current object
Examples
The following example shows how replace (add, remove, or replace) the entire host company or partner organization translations with the translation values specified in the web services request by submitting a PATCH request to the REST resource using cURL. For more information about cURL, see Use cURL.
curl -X PATCH -i -H "Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQg" -H "Content-type: application/json" -H "Accept: application/json" https://sitename.oracle.com/rest/v16/companies/visionServices/translations
Request Body Sample
[{ "op": "add", "path": "/", "value": { "name": "Czech Company visionServices", "language": { "languageCode": "cs_CZ" } } }, { "op": "replace", "path": "/de", "value": { "name": "Company visionServices Update" } }, { "op": "remove", "path": "/da_DK" } ]
Response Body Sample
{ "items": [{ "name": "A1BM1", "language": { "languageCode": "en", "languageNumber": -1, "links": [{ "rel": "domain", "href": "http://sitename.oracle.com/rest/v16/languages" }, { "rel": "canonical", "href": "http://sitename.oracle.com/rest/v16/languages/en" } ] }, "links": [{ "rel": "self", "href": "http://sitename.oracle.com/rest/v16/companies/visionServices/translations/en" } ] }, { "name": "Company visionServices Update", "language": { "languageCode": "de", "languageNumber": 0, "links": [{ "rel": "domain", "href": "http://sitename.oracle.com/rest/v16/languages" }, { "rel": "canonical", "href": "http://sitename.oracle.com/rest/v16/languages/de" } ] }, "links": [{ "rel": "self", "href": "http://sitename.oracle.com/rest/v16/companies/visionServices/translations/de" } ] }, { "name": "Czech Company visionServices", "language": { "languageCode": "cs_CZ", "languageNumber": 7, "links": [{ "rel": "domain", "href": "http://sitename.oracle.com/rest/v16/languages" }, { "rel": "canonical", "href": "http://sitename.oracle.com/rest/v16/languages/cs_CZ" } ] }, "links": [{ "rel": "self", "href": "http://sitename.oracle.com/rest/v16/companies/visionServices/translations/cs_CZ" } ] } ], "links": [{ "rel": "self", "href": "http://sitename.oracle.com/rest/v16/companies/visionServices/translations" } ] }