PUT /api/tariff/set
Portal pricing plan change.
Name |
Description |
Type |
Example |
activeUsers
sent in Body
|
number of active users |
integer |
50 |
dueDate
sent in Body
|
portal pricing plan end date |
Date |
2016-07-13 |
features
sent in Body
|
available functions list |
string |
whitelabel |
maxTotalSize
sent in Body
|
maximal size of available disk space measured in bytes** |
long |
1073741824 |
maxFileSize
sent in Body
|
maximal size of the uploaded files measured in bytes** |
long |
104857600 |
portalName*
sent in Body
|
portal name |
string |
example |
* - required field
** - please keep in mind that the sent value will be converted into megabytes and stored that way, so it is not recommended to use values not multiple of 1048576 (1 megabyte) as they will be truncated to the integer resulting from the division by 1048576, or values less than 1048576 bytes as zero value will be returned in that case both in response to this and get tariff requests.
Returns the description of the portal and the portal pricing plan.
{
"tariff": {
"activeUsers": 50,
"dueDate": "2016-07-13",
"features": "whitelabel",
"maxFileSize": 104857600,
"maxTotalSize": 1073741824
},
"tenant": {
"created": "2010-07-07T15:46:00",
"domain": "example.com",
"language": "en-US",
"ownerId": "78e1e841-8314-48465-8fc0-e7d6451b6475",
"portalName": "example",
"status": "Active",
"tenantId": 1,
"timeZoneName": "UTC"
}
}