Unpublish all version in this locale with comments

post

/km/api/v1/content/{id}/unpublishAllVersionInThisLocaleWithComments/{localeCode}

This method unpublishes all versions with comments of the specified Content translation as specified by the locale. When a Content version is unpublished, it becomes unavailable to end-users.

Response Errors

The possible error responses for this method are as follows:

  • OKDOM-GEN0001

    The error occurs when you pass an invalid id or an invalid localeId parameter value with the HTTP request.

Request

Supported Media Types
Path Parameters
Body ()
The comments to be provided for unpublish action.
Root Schema : Comments
Type: object
Title: Comments
Show Source
Back to Top

Response

Supported Media Types

200 Response

OK.
Body ()
Root Schema : ResultList ActionResult ContentKey
Type: object
Title: ResultList ActionResult ContentKey
Match All
Show Source
Nested Schema : Collection Paging Resource
Title: Collection Paging Resource
Oracle base collection resource schema definition.
Match All
Oracle base collection resource schema definition.
Oracle base collection resource schema definition.
Show Source
Nested Schema : Base Collection Resource
Title: Base Collection Resource
Oracle base collection resource schema definition.
Match All
Oracle base collection resource schema definition.
Oracle base collection resource schema definition.
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
  • Number of resource instances returned in the current range.
  • Boolean value that is set to true if more resources are available on the server than the subset returned in current page.
  • Actual paging size used by the server.
  • Offset value used in the current page.
  • Total count of the resource instances, including both the instances in the current range and the instances on the server that satisfy the request.
Nested Schema : ResultList ActionResult ContentKey-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 : ActionResult ContentKey
Type: object
Title: ActionResult ContentKey
Match All
Show Source
Nested Schema : ActionResult
Type: object
Title: ActionResult
Show Source
Nested Schema : ActionResult ContentKey-allOf[1]
Type: object
Show Source
Nested Schema : KMError Collection
Type: array
Title: KMError Collection
Collection of KMErrors
Show Source
Nested Schema : KMError
Type: object
Title: KMError
Show Source
Nested Schema : ContentKey
Match All
Show Source
Nested Schema : ContentKey-allOf[1]
Type: object
Show Source
Nested Schema : allTranslations
Type: array

This field will return list of all translated content that the user can view

This field will only be populated if allTranslations query parameter is passed in with value true.

Show Source
Nested Schema : LocaleKey
Match All
Show Source
Nested Schema : LocaleKey-allOf[1]
Type: object
Show Source
Back to Top

Examples

The following example shows how to unpublish all versions with comments of the specified Content translation in the specified locale by submitting a post request on the REST resource using cURL

cURL Command

curl -X "POST" "http://<IM_REST_API_HOST>/km/api/latest/content/{id}/unpublishAllVersionInThisLocaleWithComments/{localeCode}

Example of Request Header

The following shows an example of the request header.

-H "kmauthtoken: {\"siteName\":\"ORACLE_KNOWLEDGE\",\"integrationUserToken\":\"\"+eCJYkxKwj5HUaIiJYun0/TpatwT1LmtcsF05W33xnEojifV/AsLDj9RpN0lKuorTMNKeSE1tgC7svVL+BzntqDON4KiM1HFlpxvXEUCB0P2w0Xrs75McygqxdVaDSE9",\"userToken\":\"UoyWTKRG4RpyJCH4Wqjzht2iYUrsDdk5ir+3IpwEkxcwajJkGR9OGSQBTANQVGW0iVT9MFeDzqL+RYdgfzGSK+h5QzDFIDM+rDLgdKeEE19ljWFm3zMCF+kgYp/dJ/Yq5V7Re+aDXqHg6YkHfvprFA==\"}" \
-H "Accept: application/json"

Example of Request Body

{
    "comments": " COMMENTS_VALUE"
}

Example of Response Body

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

{
  "items" : null,
  "hasMore" : false,
  "limit" : 20,
  "offset" : 0,
  "count" : 0
}
Back to Top