PUT - Update Storage for a User
Purpose
The API updates the base storage or the add on storage for the particular user in the given Organization, as per the mode and the plan value provided in the JSON Object.
Request URL
http://mail.zoho.com/api/organization/<zoid>/storage/<zuid>
Request Parameters
Parameter | Data Type | Description |
zoid* | Integer | zoid - The unique Zoho Organization Identifier for the organization |
zuid* | Integer | zuid - The unique Zoho User Identifier for the user |
* - Mandatory parameters
Request Body (JSON Object)
Parameter | Data Type | Allowed Values | Description |
mode* | String | updateBaseStorage updateExtraStorage | To update the Base Storage of the user. Use planType parameter with this mode. To update the Extra Storage for the user. Use addOnType parameter with this mode. |
planType+ | String | trial free mail10 mail15 maildoc std ent stdTrial basic professional basicTrial professionalTrial newMail5gb newMail10gb newMail1gb mailPremium mailEssential mailFelxible mailPremiumTrial familyLite familyStd family mailprofessional standard_15gb standard_10gb premium standard_5gb standard_2gb standard_1gb | Provide the plan value subscribed by the Organization as the plan type |
addonType(JSON Array)+ | String | 1gb 2gb 5gb 10gb 15gb 25gb 50gb 100gb 200gb | You can allocate multiple add-on storage units to the user by passing the storage unit and the number of unit values as JSON Array. |
* - Mandatory parameters
+ - Use the appropriate parameter, according to the mode value chosen.
Response Codes
Please refer Response Codes.
Sample Request - Update Base Storage to Standard 10 GB
{
"mode": "updateBaseStorage",
"planType": "standard_10gb"
}
Sample Request - Update add-on Storage of 1-10GB unit and 2-1GB units for a user
{
"mode": "updateExtraStorage",
"addonType": [
"10gb:1",
"1gb:2"
]
}