Delete a Content Library Document
delete
/rest/api/v1.3/clDocs/{docPath}
Request
Path Parameters
-
docPath: string
The complete path of the document starting with '/contentlibrary'.
Response
Supported Media Types
- application/json
Default Response
Root Schema : Content Library Documents
Type:
objectTitle:
Show Source
Content Library Documents-
content:
string
Document content.
-
docPath:
string
The complete path of the document starting with '/contentlibrary'.
Examples
This interface is used to delete a content library document. A successful request requires the following headers:
| FIELDS | DESCRIPTION |
|---|---|
| Authorization | <AUTH_TOKEN> |
Sample Request URL :
/rest/api/v1.3/clDocs/contentlibrary/abn/wsrest_cl.htm
Sample Response: Success
{
"documentPath": "/contentlibrary/abn/wsrest_cl.htm",
"content": null,
"links": [
{
"rel": "self",
"href": "/rest/api/v1.3/clDocs/contentlibrary/abn/wsrest_cl.htm",
"method": "DELETE"
},
{
"rel": "createDocument",
"href": "/rest/api/v1.3/clDocs",
"method": "POST"
}
]
}
Sample Response: Failure
{
"type": "",
"title": "Document not found",
"errorCode": "DOCUMENT_NOT_FOUND",
"detail": "/contentlibrary/abn/wsrest_cl.htm",
"errorDetails": []
}