Update contents of a content library document

Use this interface to update the contents of a content library document.

Service URL:

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

Required Path Parameter:

documentPath

Request Method:

POST

Request Header:

Authorization=<AUTH_TOKEN>

Content-Type=application/json

Sample Request Body:

{
  "documentPath": "/contentlibrary/abn/wsrest_cl.htm",
  "content": "test documentersasefgwdfgsdfg"
}

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/wsrest_cl.htm",
  "content": null,
  "links": [
    {
      "rel": "self",
      "href": "/rest/api/v1.3/clDocs/contentlibrary/abn/wsrest_cl.htm",
      "method": "POST"
    },
    {
      "rel": "getDocumentContent",
      "href": "/rest/api/v1.3/clDocs/contentlibrary/abn/wsrest_cl.htm",
      "method": "GET"
    },
    {
      "rel": "deleteDocument",
      "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 in case of failure:

{
   "type": "",
   "title": "Invalid request parameters",
   "errorCode": "INVALID_PARAMETER",
   "detail": "Document Path in the URI does not match Document Path in the request payload",
   "errorDetails": []
}