.. _documentnote: Document Notes ======================================= Calling the getObject service on a document will return all associated notes as relationships. An actual note object can then be retrieved by calling the getObject service on a relationship’s targetId. Create a document note """""""""""""""""""""""""""""" Sample request ^^^^^^^^^^^^^^ .. code-block:: xml POST https://test.com..net/Web.Start/testSQL/Api/CMIS/T1/children/?id=ROOTFOLDER HTTP/1.1 Host: test.com..net Connection: keep-alive Content-Length: 1029 Accept: application/xml, text/xml, */*; q=0.01 Origin: null User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36 Content-Type: application/xml Referer: http://localhost:8080/ Accept-Encoding: gzip, deflate, br Accept-Language: en-US,en;q=0.8 urn:uuid:00000000-0000-0000-0000-00000000000 Test 2014-11-26T03:54:24.435Z Test Note Name Test Note Description t1documentnotetype document-601000 Sample response ^^^^^^^^^^^^^^^ .. code-block:: xml HTTP/1.1 201 Created Cache-Control: private Content-Type: application/atom+xml;type=entry Location: https://test.test.net/test.Web.Start/testSQL/Api/CMIS/T1/object/?id=documentnote-601027-601000 Server: Microsoft-IIS/7.5 X-AspNet-Version: 4.0.30319 X-Powered-By: ASP.NET X-UA-Compatible: IE=edge Date: Mon, 17 Oct 2016 06:41:59 GMT Content-Length: 5772 documentnote-601027-601000 documentnote-601027-601000 2016-10-17T16:41:59+10:00 2016-10-17T16:41:59+10:00 2016-10-17T16:41:59.6071873+10:00 Test Note Name Test Note Description documentnote-601027-601000 cmis:item t1documentnotetype N/A 0001-01-01T00:00:00Z N/A 0001-01-01T00:00:00Z document-601000 true true false true false false false false false false false false false false false false false false false false false false false false false false false false false Delete a document note """""""""""""""""""""" Sample request ^^^^^^^^^^^^^^ .. code-block:: xml DELETE https://test.test.net/Web.Start/testSQL/Api/CMIS/T1/object/?id=documentnote-601027-601000 HTTP/1.1 Host: test.test.net Connection: keep-alive Content-Length: 0 Accept: */* Origin: null User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36 Content-Type: application/x-www-form-urlencoded; charset=UTF-8 Referer: http://localhost:8080/ Accept-Encoding: gzip, deflate, sdch, br Accept-Language: en-US,en;q=0.8 Sample response ^^^^^^^^^^^^^^^ .. code-block:: xml HTTP/1.1 204 No Content Cache-Control: private Server: Microsoft-IIS/7.5 X-AspNet-Version: 4.0.30319 X-Powered-By: ASP.NET X-UA-Compatible: IE=edge Date: Mon, 17 Oct 2016 06:51:53 GMT