Update 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
Type: object
Title: LocaleKey
Show Source
Back to Top

Response

204 Response

No Content.
Back to Top

Examples

The following example shows how to replaces the Locale relationship of the User object with the list of Locale objects:

curl -X PATCH "https://<IM_REST_API_HOST>/km/api/latest/users/{id}/contentLocales" -u "<username:password>" -H "Accept: application/json" -H "Content-Type: application/json" -d "@<FilePath/RequestBody.json>"

Example of Request Body

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

{
  "items": [
    {
      "recordId": "en_US"
    },
 {
      "recordId": "en_GB"
    }
  ]
}
}

Example of Response Body

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

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