POST api/Companies
Creates a new company
Request Information
URI Parameters
None.
Body Parameters
Company
CompanyCreateModel| Name | Description | Type | Additional information |
|---|---|---|---|
| DefaultLicense | MBSLicenseType |
None. |
|
| AllowedLicenses | Collection of MBSLicenseType |
None. |
|
| Name |
Company Name |
string |
None. |
| StorageLimit |
Company backup limit. A negative value indicates the resource is unconstrained by a quota. |
integer |
None. |
| LicenseSettings |
Company license settings: 0 - Custom (Users have custom license settings) 1 - Global Pool(Users activate paid licenses from the global pool automatically) 2 - Company Pool(Users can activate only limited number of paid licenses from the company pool) |
LicensingMode |
None. |
| Destinations | Collection of CompanyDestinationModel |
None. |
Request Formats
application/json, text/json
Sample:
{
"Name": "sample string 1",
"StorageLimit": 1,
"LicenseSettings": 0,
"Destinations": [
{
"DestinationId": "81a8ee96-b34d-481a-ab50-67069dc04976",
"PlanId": 1
},
{
"DestinationId": "81a8ee96-b34d-481a-ab50-67069dc04976",
"PlanId": 1
}
],
"DefaultLicense": 0,
"AllowedLicenses": [
0,
0
]
}
application/xml, text/xml
Sample:
<CompanyCreateModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MBSAPImvc.Engine.Models">
<AllowedLicenses xmlns:d2p1="http://schemas.datacontract.org/2004/07/MSP360.MBS.Common.Types.License.Enums">
<d2p1:MBSLicenseType>Desktop</d2p1:MBSLicenseType>
<d2p1:MBSLicenseType>Desktop</d2p1:MBSLicenseType>
</AllowedLicenses>
<DefaultLicense>Desktop</DefaultLicense>
<Destinations>
<CompanyDestinationModel>
<DestinationId>81a8ee96-b34d-481a-ab50-67069dc04976</DestinationId>
<PlanId>1</PlanId>
</CompanyDestinationModel>
<CompanyDestinationModel>
<DestinationId>81a8ee96-b34d-481a-ab50-67069dc04976</DestinationId>
<PlanId>1</PlanId>
</CompanyDestinationModel>
</Destinations>
<LicenseSettings>CustomUsersSettings</LicenseSettings>
<Name>sample string 1</Name>
<StorageLimit>1</StorageLimit>
</CompanyCreateModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Company create result
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.