Cisco Unity Connection Provisioning Interface (CUPI) API -- User Template Mailbox

From DocWiki

Jump to: navigation, search

Links to Other API pages: Cisco_Unity_Connection_APIs

CUPI Guide Contents
API Overview
Index of All CUPI Documentation


Contents


User Template Mailbox

Updating Mailbox Quota

Request Body: for use system settings
<UserTemplate>
    <ReceiveQuota>-2</ReceiveQuota>
    <SendQuota>-2</SendQuota>
    <WarningQuota>-2</WarningQuota>
</UserTemplate>

The following is the response from the *PUT* request for use system settings and the actual response will depend upon the information given by you:

Response Code: 204
Request Body: for custom system maximum settings
<UserTemplate>
    <ReceiveQuota>-1</ReceiveQuota>
    <SendQuota>-1</SendQuota>
    <WarningQuota>-1</WarningQuota>
</UserTemplate>

The following is the response from the *PUT* request for custom system maximum settings and the actual response will depend upon the information given by you:

Response Code: 204
Request Body: for custom settings
<UserTemplate>
    <ReceiveQuota>1048576</ReceiveQuota>
    <SendQuota>1048576</SendQuota>
    <WarningQuota>1048576</WarningQuota>
</UserTemplate>

The following is the response from the *PUT* request for custom settings and the actual response will depend upon the information given by you:

Response Code: 204

JSON Example

To change mailbox quota, do the following:

Request URI:
PUT https://<connection-server>/vmrest/usertemplates/<usertemplateobjectid>
Accept: application/json
Content-type: application/json
Connection: keep-alive
Request Body:
{
    "ReceiveQuota":"104345",
    "SendQuota":"104345",
    "WarningQuota":"104345"
}

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

NOTE: Above all values are in bytes and in Cisco Unity Connection Administration, it takes values in MB.


Updating Mailbox Store

Get the mailbox store object ID from the following URI:

  GET https://<connection-server>/vmrest/voicemailboxstores
Request Body:
<UserTemplate>
    <MailboxStoreObjectId>9dfffae1-eae2-4eab-abe9-7b0773881d54</MailboxStoreObjectId>
</UserTemplates>

The following is the response from the *PUT* request and the actual response will depend upon the information given by you:

Response Code: 204

NOTE: Input should be in bytes, that is multiple of 1024.

Rating: 0.0/5 (0 votes cast)

Personal tools