Unlink

post

/km/api/v1/incidents/unlink

The request payload as a DocumentIncidentLink object must be provided with the POST method.

An existing Incident object must be provided on the DocumentIncidentLink object in the payload. You must supply parameters such as incidentId and recordId together to identify the incident.

An existing incident must be provided on the DocumentIncidentLink BO. Both the incidentId and recordId parameters together must be supplied to identify the incident on the Incident Object.

A list of one or more Content objects (in the KEY mode) must be provided on the DocumentIncidentLink object to perform the link request. Each Content object provided must be an existing object. You can use parameters such as recordId, versionId, answerId, or documentId to identify the Content object. The attribute used to identify the first Content object determines how the other objects are identified.

For example:

  • If you identify the first Content object in the list by its versionId parameter value, then all the Content objects are identified by their versionIds parameter values only.
  • If you identify the first Content in the list by its answerId parameter value, then all the Content objects are identified by their answerIds parameter values only.
  • If you identify the first Content in the list by its recordId parameter value, then all the Content objects will be identified by their recordIds parameter values only.
  • If you identify the first Content in the list by its documentId parameter value, then all the Content objects are identified by their documentIds parameter values only.

In either of these cases, each Content object specified is validated against the Content object found by the specified identifier. For example, if a versionId parameter is provided, then the Content object found by the specified versionId is validated to ensure that parameters such as recordId, answerId, and documentId that are provided with the payload match with those in the Oracle Knowledge Repository.

Request

Supported Media Types
Body ()
The incident details and one or more documents to unlink it from.
Nested Schema : Incident
Match All
Show Source
Nested Schema : ContentKey
Match All
Show Source
Nested Schema : Singular Resource
Type: object
Title: Singular Resource
Oracle base singular resource schema definition.
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
Nested Schema : IncidentKey
Match All
Show Source
Nested Schema : IncidentKey-allOf[1]
Type: object
Show Source
Nested Schema : Incident-allOf[1]
Type: object
Show Source
Back to Top

Response

204 Response

No Content.
Back to Top

Examples

The following example shows how to remove a link from an Incident Object from one or more content objects by submitting a post request on the REST resource using cURL.

cURL Command

Command: curl -X "GET" "http://<IM_REST_API_HOST>/km/api/latest/incidents/unlink"

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

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

{
  "incident" : {
    "description" : "There is a problem identifying the meaning of key words for Oracle Knowledge",
    "incidentId" : "140005-14895892"
  },
  "documents" : [ {
    "recordId" : "10834GALKGJ0187394813N401347981324",
    "versionId" : "1324IUH12934701324NL340987134KJN1341",
    "documentId" : "RE123",
    "title" : "Reference Document for Oracle Knowledge",
    "version" : "4.0",
    "answerId" : 0
  }, {
    "recordId" : "AF21423423454FDSFKGJASDFAF48135465",
    "versionId" : "D4SAF654FA9D8F9837498425314462874653",
    "documentId" : "RE125",
    "title" : "Glossary of terms for Oracle Knowledge",
    "version" : "7.0",
    "answerId" : 0
  } ]
}
Back to Top