Create a copy of a Content Library Document.
put
/rest/api/v1.3/clDocs/{docPath}
Request
Path Parameters
-
docPath: string
Destination Document Path
Request Body
Root Schema : copy content document Request
Type:
object
Title:
Show Source
copy content document Request
-
documentPath(optional):
string
Path of source Document
Response
Supported Media Types
- application/json
Default Response
Root Schema : Content Library Documents
Type:
object
Title:
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 create a copy of a content library document.
A successful request requires the following headers:
FIELDS | DESCRIPTION |
---|---|
Authorization | <AUTH_TOKEN> |
Content-Type | application/json |
Sample Request Body:
{ "documentPath": <sourceDocumentPath> }
Sample Response: Success
Note: The "content" attribute in the response is returned as null always. This is done to avoid returning large contents in the response.
"documentPath": "/contentlibrary/abn/doc22.htm", "content": null, "links": [ { "rel": "self", "href": "/rest/api/v1.3/clDocs/contentlibrary/abn/doc22.htm", "method": "PUT" }, { "rel": "getDocumentContent", "href": "/rest/api/v1.3/clDocs/contentlibrary/abn/doc22.htm", "method": "GET" }, { "rel": "deleteDocument", "href": "/rest/api/v1.3/clDocs/contentlibrary/abn/doc22.htm", "method": "DELETE" } ] }
Sample Response: Failure - Document Not Found
The system sends the following response when it cannot find the source folder or file or the destination folder:
{ "type": "", "title": "Document not found", "errorCode": "DOCUMENT_NOT_FOUND", "detail": "Document not found:/contentlibrary/abn/wsrest_cl.htm", "errorDetails": [] }