/mcp<MessageExpirations total="1"> <MessageExpiration> <URI>/vmrest/messageexpirations/72269af8-7376-48d2-bf23-9abf6e98b303</URI> <ObjectId>72269af8-7376-48d2-bf23-9abf6e98b303</ObjectId> <Enabled>false</Enabled> <MaximumAgeDays>180</MaximumAgeDays> <MaxVideoMsgAgeDays>30</MaxVideoMsgAgeDays> </MessageExpiration> </MessageExpirations> Response Code: 200 JSON Example GET https://<connection-server>/vmrest/messageexpirations Accept: application/json Content_type: application/json Connection: keep_alive The following is the response from the above GET request: { "@total": "1", "MessageExpiration": { "URI": "/vmrest/messageexpirations/72269af8-7376-48d2-bf23-9abf6e98b303", "ObjectId": "72269af8-7376-48d2-bf23-9abf6e98b303", "Enabled": "true", "MaximumAgeDays": "180", "MaxVideoMsgAgeDays": "30" } } Response Code: 200 Enabling and Updating Message Expiration field value The following is an example of the PUT request that allows you to enable message expiration and update the number of days for Message Expiration of audio and video messages: PUT https://<connection-server>/vmrest/messageexpirations/<messageexpirationobjectid> Request Body: <MessageExpiration> <Enabled>true</Enabled> <MaximumAgeDays>23</MaximumAgeDays> <MaxVideoMsgAgeDays>11</MaxVideoMsgAgeDays> </MessageExpiration> The following is the response from the above PUT request and the actual response will depend upon the information given by you: Response Code: 204 JSON Example Cisco Unity Connection Provisioning Interface (CUPI) API 611 Cisco Unity Connection Provisioning Interface (CUPI) API--Message Aging Policy APIs Enabling and Updating Message Expiration field value