Get content type privileges for active user

get

/km/api/v1/contentTypes/privileges

This method returns list of names of privileges user is allowed in ContentTypes.

The complete list of ContentType privileges are :

  • BULK_CATEGORY_CHANGE
  • BULK_VIEW_CHANGE
  • DELETE
  • DELETE_HISTORY
  • IMPORT
  • MANAGE_CONTENT_REVIEW_TASKS
  • MANAGE_RATING_ANALYSIS_TASKS
  • MASTER_PUBLISH
  • MODIFY
  • PUBLISH
  • TRANSLATE
  • VIEW
  • CLEAR_CHECK_OUT
If user does not pass any URL parameter, then method returns the user's privileges for all ContentTypes. If user sets URL parameter contentTypeId, then the method returns the user's privilege of only the target ContentType.

Example URIs

The example URIs for this method are as follows:

  • http://<IM_REST_API_HOST>/km/api/latest/contentTypes/privileges

    The request returns list of all Content Type Privilege for the versioned Content.

  • http://<IM_REST_API_HOST>/km/api/latest/contentTypes/privileges?contentTypeId='CONTENT_TYPE_ID'

    The request returns list of all Content Type Privilege for the versioned Content.

Request

Supported Media Types
Query Parameters
Back to Top

Response

Supported Media Types

200 Response

OK.
Body ()
Root Schema : ResultList CompositeContentType
Type: object
Title: ResultList CompositeContentType
Match All
Show Source
Nested Schema : Collection Paging Resource
Title: Collection Paging Resource
Oracle base collection resource schema definition.
Match All
Show Source
Nested Schema : Base Collection Resource
Title: Base Collection Resource
Oracle base collection resource schema definition.
Match All
Show Source
Nested Schema : Singular Resource
Type: object
Title: Singular Resource
Oracle base singular resource schema definition.
Show Source
Nested Schema : Base Collection Resource-allOf[1]
Type: object
Show Source
Nested Schema : Collection Paging Resource-allOf[1]
Type: object
Show Source
Nested Schema : ResultList CompositeContentType-allOf[1]
Type: object
Show Source
Nested Schema : items
Type: array
Show Source
Nested Schema : items
Type: object
Nested Schema : items
Type: array
Show Source
Nested Schema : CompositeContentType
Type: object
Title: CompositeContentType
Show Source
Nested Schema : ContentTypeKey
Match All
Show Source
Nested Schema : listOfPrivilege
Type: array
List of Privileges for the ContentType
Show Source
Nested Schema : ContentTypeKey-allOf[1]
Type: object
Show Source
  • The description for the ContentType object. Content Types support multiple languages.

    This field identifies the object associated with the language specified by the user.

  • The name for the ContentType object. The name field can only be used for sorting.

    Content Types support multiple languages. This field identifies the object associated with the language specified by the user.

  • The unique identifier of the ContentType object.

  • The reference key for the ContentType object.

    ContentType objects support multiple languages. This field can be used to identify the associated objects for all languages.

Back to Top

Examples

The following example shows how to find a list of user privileges available for a Content Type by submitting a get request on the REST resource using cURL.

cURL Command

curl -X "GET" "http://<IM_REST_API_HOST>/km/api/latest/contentTypes/privileges"

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 Response Body

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

{
  "items" : [ {
    "contentTypeKeyBO" : {
      "recordId" : "048016503b35e6fc0144e01818e2007b87",
      "referenceKey" : "SAMPLE_CHANNEL_NAME"
    },
    "listOfPrivilege" : [ "IMPORT", "DELETE_HISTORY", "VIEW", "BULK_CATEGORY_CHANGE", "MASTER_PUBLISH", "MANAGE_CONTENT_REVIEW_TASKS", "MODIFY", "BULK_VIEW_CHANGE", "IMPORT", "MANAGE_RATING_ANALYSIS_TASKS", "DELETE", "TRANSLATE", "PUBLISH" ]
  } ]
  "hasMore" : false,
  "limit" : 20,
  "offset" : 0,
  "count" : 1
}
Back to Top