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
Path Parameters
Body ()
Root Schema : Patch Operations
Type: array
Title: Patch Operations
The array of operations.
Show Source
Nested Schema : Company Translation Operation
Type: object
Title: Company Translation Operation
Show Source
Nested Schema : Company Translation Request
Type: object
Title: Company Translation Request
Show Source
Nested Schema : Language Details
Type: object
Title: Language Details
Show Source
Back to Top

Response

Supported Media Types

Default Response

List of company translation details.
Body ()
Root Schema : Company Translations
Type: object
Title: Company Translations
Show Source
Nested Schema : Company Translations List
Type: array
Title: Company Translations List
Show Source
Nested Schema : Company Translation
Type: object
Title: Company Translation
Show Source
Nested Schema : Translation Language
Type: object
Title: Translation Language
Show Source
Back to Top

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"
    }
  ]
}
Back to Top