Example: Storing a dead property as custom metadata

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 PROPPATCH request that sets the presentedBy property for the object named Q1_2012.ppt in the presentations directory.

Request with cadaver command line

propset presentations/Q1_2012.ppt presentedBy Lee.Green

Request XML body

<?xml version="1.0" encoding="utf-8" ?>
<D:propertyupdate xmlns:D="DAV:">
    <D:set>
         <D:prop>
             <presentedBy xmlns="http://webdav.org/cadaver/custom-properties/">
                Lee.Green
            </presentedBy>
        </D:prop>
    </D:set>
</D:propertyupdate>

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/Q1_2012.ppt
         </D:href>
         <D:propstat>
             <D:prop>
                 <presentedBy
                xmlns="http://webdav.org/cadaver/custom-properties/"/>
            </D:prop>
            <D:status>HTTP/1.1 200 OK</D:status>
        </D:propstat>
    </D:response>
</D:multistatus>