Create a copy of a content library document

Use this interface to create a copy of a content library document.

Service URL:

/rest/api/v1.3/clDocs/{destinationDocumentPath}

Request Method:

PUT

Request Header:

Authorization=<AUTH_TOKEN>

Content-Type=application/json

Request JSON Body:

{
  "documentPath": "<sourceDocumentPath>"
}

Sample Response in case of success:

RESPONSE 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 in case of failure:

{
   "type": "",
   "title": "Document not found",
   "errorCode": "DOCUMENT_NOT_FOUND",
   "detail": "Document not found:/contentlibrary/abn/wsrest_cl.htm",
   "errorDetails": []
}