Replace all content locales

patch

/km/api/v1/users/{id}/contentLocales

This method replaces the Locale relationship of the User object with the list of Locale objects.

Request

Supported Media Types
Path Parameters
Body ()
The List of Locale objects
Root Schema : List LocaleKey
Type: object
Title: List LocaleKey
Show Source
Nested Schema : items
Type: array
Show Source
Nested Schema : LocaleKey
Match All
Show Source
Nested Schema : Singular Resource
Type: object
Title: Singular Resource
Oracle base singular resource schema definition.
Show Source
Nested Schema : LocaleKey-allOf[1]
Type: object
Show Source
Back to Top

Response

204 Response

No Content.
Back to Top

Examples

The following example shows how to replace the locale relationship of the user object with the list of locale objects by submitting a patch request on the REST resource using cURL.

cURL Command

curl -X "PATCH" "http://<IM_REST_API_HOST>/km/api/latest/users/{id}/contentLocales"

Example of Request Header

The following shows an example of the request header.

-H "kmauthtoken: {\"siteName\":\"ORACLE_KNOWLEDGE\",\"integrationUserToken\":\"\"+eCJYkxKwj5HUaIiJYun0/TpatwT1LmtcsF05W33xnEojifV/AsLDj9RpN0lKuorTMNKeSE1tgC7svVL+BzntqDON4KiM1HFlpxvXEUCB0P2w0Xrs75McygqxdVaDSE9"}" \
-H "Accept: application/json"

Example of Request Body

The following shows an example of the request body in JSON format.

{
  "items" : [ {
    "links" : [ {
      "rel" : "canonical",
      "href" : "http://<IM_REST_API_HOST>/km/api/{version}/{resourceURI}",
      "mediaType" : "application/json, application/xml",
      "templated" : true,
      "method" : "GET",
      "profile" : "http://<IM_REST_API_HOST>/km/api/{version}/metadata-catalog/{resourceName}"
    } ]
  } ]
}
Back to Top