Delete by version ID
/km/api/v1/content/versions/{versionId}
This method deletes specified version of the Content from the Oracle Knowledge Repository.
NOTE:The logged-in user must have the DELETE privilege to delete documents from the repository.
Response Errors
The service does not display any warning message before deleting a document from the repository. If an error occurs during an attempt to delete, the content is not deleted. The following errors can occur:
- OKDOM-CONT0211
The error occurs when the specified document is latest or in published state.
- OKDOM-GEN0001
The error occurs when the specified versionId parameter is invalid.
Example URIs
The example URIs for this method are as follows:
http://<IM_REST_API_HOST>/km/api/content/versions/{versionId}This method deletes specified version of the Content from the Oracle Knowledge Repository.
Request
-
versionId(required): string
The draft version GUID
Response
204 Response
Examples
The following example shows how to delete a specific version of the Content object.
curl -X "DELETE" http://<IM_REST_API_HOST>/km/api/latest/content/versions/{versionId}Example of Response Header
The following shows an example of the response header.
-H "kmauthtoken: {\"siteName\":\"ORACLE_KNOWLEDGE\",\"integrationUserToken\":\"\"+eCJYkxKwj5HUaIiJYun0/TpatwT1LmtcsF05W33xnEojifV/AsLDj9RpN0lKuorTMNKeSE1tgC7svVL+BzntqDON4KiM1HFlpxvXEUCB0P2w0Xrs75McygqxdVaDSE9"}" \
-H "Accept: application/json"Example of Response Body
The following example shows the contents of the response body in JSON format:
This request does not return any response body.