Example: Retrieving the index setting for an object

Content Platform Tenant Management Help

Version
9.7.x
File Size
4269 KB
Audience
anonymous
Part Number
MK-95HCPH002-19

Here’s a sample WebDAV PROPFIND request that returns the index setting for the object named wind.jpg in the presentations/images directory.

Request with cadaver command line

propget presentations/images/wind.jpg index

Request XML body

<?xml version="1.0" encoding="utf-8" ?>
<ns0:propfind xmlns:ns0="DAV:">
    <ns0:prop>
         <ns1:index xmlns:ns1="http://www.hitachivantara.com/hcap/webdav/" />
    </ns0:prop>
</ns0:propfind>

Response XML body

<?xml version="1.0" encoding="utf-8"?>
<D:multistatus xmlns:D="DAV:"
xmlns:HCAP="http://www.hitachivantara.com/hcap/webdav/">
    <D:response>
         <D:href>https://finance.europe.hcp.example.com/webdav/data/
             presentations/images/wind.jpg
        </D:href>
       <D:propstat>
             <D:prop>
                 <HCAP:index>true</HCAP:index>
             </D:prop>
             <D:status>HTTP/1.1 200 OK</D:status>
         </D:propstat>
    </D:response>
</D:multistatus>