createCompany
This method creates a Customer or Partner company account.
Parameters
Parameter | Type | Optional | Description and value requirements | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Integer | No | The company type. Available values:
| ||||||||||
| String | No | The company name. Must be unique. The company name must not exceed 64 characters. | ||||||||||
| String | Yes | The ID of the Partner company directly managing the newly created company. | ||||||||||
| String | Yes | The company's physical address. The company address must not exceed 128 characters and must not contain HTML tags. | ||||||||||
| String | Yes | The company's country of operation. The value must be in ISO 3166 format. No value is set for this parameter by default. | ||||||||||
| String | Yes | The company’s state or primary administrative subdivision of operation. The value must be in ISO 3166 format. No value is set for this parameter by default. | ||||||||||
| String | Yes | The company's phone number. The phone number must not exceed 32 characters. | ||||||||||
| Integer | Yes | The industry the company operates in. Possible values:
Default value: | ||||||||||
| Boolean | Yes | An option defining whether the security of the new company can be managed by its Partner company. Available values: The default value is ImportantFor companies using MDR, this parameter must have the | ||||||||||
| Boolean | Yes | A parameter that defines Two Factor Authentication (2FA) enforcement for all GravityZone user accounts in the company. The value is always | ||||||||||
| Integer | Yes | The period, defined in days, for which the users of the company can have their devices exempted from providing a two-factor code at authentication. Available values:
| ||||||||||
| String | Yes | The email for the new user account to be linked to the new company. If the parameter | ||||||||||
| String | Yes | The full name of the new user account to be linked to the new company. This parameter is required when | ||||||||||
| Object | Yes | Contains information regarding the company's designated contact person. The object contains the following fields:
| ||||||||||
| String | Yes | The timezone of the new user account to be linked to the new company. The default value is | ||||||||||
| String | Yes | The user interface language for the new user account to be linked to the new company. The default value is | ||||||||||
| Object | Yes | An object containing the license details:
If not specified, the company will be created with license or subscription of type | ||||||||||
| Object | No, for Customer companies with a yearly MDR license Not applicable to other types of companies | NoteThis information must be valid. The company's designated emergency contact details, intended for use by the MDR team during security events or incidents. Might contain the following details:
ImportantThe MDR contact information can be configured using one of the following methods:
These methods are mutually exclusive and cannot be combined within the same request. | ||||||||||
| Object | Yes | An object containing the custom field values for the company. | ||||||||||
| Boolean | Yes | When set to:
Default value: ImportantThis parameter cannot be set to |
Return value
This method returns a String: the ID of the newly-created company.
Example
Request:
A Partner company using a monthly subscription license, with an Endpoint Security product type, and an A la carte protection model:
{
"params": {
"type": 0,
"name": "Partner LTD",
"parentId": "64babaafab366c53d20c83ca",
"address": "Str Example No 1",
"country": "US",
"state": "US-CA",
"phone": "0040740000000",
"industry": 2,
"canBeManagedByAbove": true,
"enforce2FA": true,
"skip2FAPeriod": 3,
"accountEmail": "partner@example.com",
"accountFullName": "Partner account",
"contactPerson": {
"fullName": "Stephen Johnson",
"email": "stephen.johnson@example.email.com",
"phoneNumber": "0040740000001",
"companyRole": "Owner / President"
},
"licenseSubscription": {
"type": 3,
"reservedSlots": 120,
"endSubscription": "2028-04-14",
"autoRenewPeriod": 12,
"manageExchange": false,
"manageEncryption": false,
"managePatchManagement": false,
"manageIntegrityMonitoring": true,
"imDataRetention": 2,
"manageEmailSecurity": true,
"manageMobileSecurity": true,
"edrDataRetention": 2,
"ownUse": {
"manageXDRIdentityProviders": true,
"manageXDRProductivityApps": true,
"manageXDRNetwork": true,
"manageXDRCloudWorkloads": true,
"manageRemoteEnginesScanning": true,
"manageContainerProtection": true,
"manageHyperDetect": true,
"manageSandboxAnalyzer": true,
"manageEventCorrelator": true,
"manageComplianceManager": true,
"manageExtendedEmailSecurity": true
},
"resell": {
"manageXDRResell": true,
"manageRemoteEnginesScanningResell": true,
"manageContainerProtectionResell": true,
"manageHyperDetectResell": true,
"manageSandboxAnalyzerResell": true,
"manageEventCorrelatorResell": true,
"manageComplianceManagerResell": true,
"manageExtendedEmailSecurityResell": true
},
"minimumUsage": {
"endpointMonthlyUsage": 120
},
"assignedProductType": 0,
"additionalProductTypes": [
0
],
"assignedProtectionModel": "aLaCarte",
"additionalProtectionModels": [
"aLaCarte",
"mspSecure",
"mspSecurePlus",
"mspSecureExtra"
],
},
"customFields": {
"referenceID": "004562",
"vertical": "healthcare",
"partner_type": "platinum",
"security_level": "high",
"payment_status": "goodstanding"
},
"duplicateClosedIncidentsOnUpdate": true
},
"jsonrpc": "2.0",
"method": "createCompany",
"id": "e249c22c-0ada-4772-a9f1-ee1cbb322588"
}
A Partner company using a monthly subscription license, with an Endpoint Security product type, and a Secure protection model:
{
"params": {
"type": 0,
"name": "Partner LTD",
"parentId": "64babaafab366c53d20c83ca",
"address": "Str Example No 1",
"country": "US",
"state": "US-CA",
"phone": "0040740000000",
"industry": 2,
"canBeManagedByAbove": true,
"enforce2FA": true,
"skip2FAPeriod": 3,
"accountEmail": "partner@example.com",
"accountFullName": "Partner account",
"contactPerson": {
"fullName": "Stephen Johnson",
"email": "stephen.johnson@example.email.com",
"phoneNumber": "0040740000001",
"companyRole": "Owner / President"
},
"licenseSubscription": {
"type": 3,
"reservedSlots": 120,
"endSubscription": "2028-04-14",
"autoRenewPeriod": 12,
"manageExchange": false,
"manageEncryption": false,
"managePatchManagement": false,
"manageIntegrityMonitoring": true,
"imDataRetention": 2,
"manageMobileSecurity": true,
"edrDataRetention": 2,
"ownUse": {
"manageXDRIdentityProviders": true,
"manageXDRProductivityApps": true,
"manageXDRNetwork": true,
"manageXDRCloudWorkloads": true,
"manageHyperDetect": true,
"manageSandboxAnalyzer": true,
"manageEventCorrelator": true,
"managePHASR": false,
"manageEASM": false,
"manageComplianceManager": true,
"manageExtendedEmailSecurity": false
},
"resell": {
"manageXDRResell": true,
"manageHyperDetectResell": true,
"manageSandboxAnalyzerResell": true,
"manageEventCorrelatorResell": true,
"managePHASRResell": true,
"manageEASMResell": true,
"manageComplianceManagerResell": true,
"manageExtendedEmailSecurityResell": true
},
"minimumUsage": {
"endpointMonthlyUsage": 120
},
"assignedProductType": 0,
"additionalProductTypes": [
0
],
"assignedProtectionModel": "mspSecure",
"additionalProtectionModels": [
"mspSecure"
],
},
"customFields": {
"referenceID": "004562",
"vertical": "healthcare",
"partner_type": "platinum",
"security_level": "high",
"payment_status": "goodstanding"
},
"duplicateClosedIncidentsOnUpdate": true
},
"jsonrpc": "2.0",
"method": "createCompany",
"id": "e249c22c-0ada-4772-a9f1-ee1cbb322588"
}
A Customer company using an MDR yearly license:
{
"params": {
"type": 1,
"name": "Customer LTD",
"address": "Str Example No 1",
"country": "US",
"state": "US-CA",
"phone": "0040740000000",
"industry": 2,
"enforce2FA": true,
"skip2FAPeriod": 3,
"accountEmail": "customer@example.com",
"accountFullName": "Customer account",
"contactPerson": {
"fullName": "Stephen Johnson",
"email": "stephen.johnson@example.email.com",
"phoneNumber": "0040740000001",
"companyRole": "Owner / President"
},
"licenseSubscription": {
"type": 2,
"licenseKey": "1b2b3c"
},
"mdrContactInformation": {
"phoneNumber": {
"countryPrefix": "+40",
"subscriberNumber": "112345"
},
"fullName": "Contact",
"email": "mdrcontact@nebula.local",
"emailVerificationCode": "43728676"
},
"customFields": {
"referenceID": "004562",
"vertical": "healthcare",
"partner_type": "platinum",
"security_level": "high",
"payment_status": "goodstanding"
},
"duplicateClosedIncidentsOnUpdate": false
},
"jsonrpc": "2.0",
"method": "createCompany",
"id": "e249c22c-0ada-4772-a9f1-ee1cbb322588"
}
A Customer with a monthly subscription and MDR enabled for own use:
{
"params": {
"type": 1,
"name": "Customer LTD",
"parentId": "5518f5f3b1a43d357e7b23c6",
"address": "Str Example No 1",
"country": "US",
"state": "US-CA",
"phone": "0040740000000",
"industry": 2,
"canBeManagedByAbove": true,
"enforce2FA": true,
"skip2FAPeriod": 3,
"accountEmail": "customer@example.com",
"accountFullName": "Customer account",
"contactPerson": {
"fullName": "Stephen Johnson",
"email": "stephen.johnson@example.email.com",
"phoneNumber": "0040740000001",
"companyRole": "Owner / President"
},
"licenseSubscription": {
"type": 3,
"reservedSlots": 10,
"endSubscription": "2020-04-14",
"autoRenewPeriod": 12,
"manageExchange": false,
"manageEncryption": false,
"manageRemoteEnginesScanning": false,
"manageHyperDetect": true,
"manageSandboxAnalyzer": true,
"managePatchManagement": false,
"manageEventCorrelator": true,
"manageContainerProtection": false,
"manageIntegrityMonitoring": true,
"managePHASR": false,
"manageEASM": false,
"manageComplianceManager": true,
"imDataRetention": 2,
"manageExtendedEmailSecurity": true,
"ownUse": {
"manageXDRIdentityProviders": true,
"manageXDRProductivityApps": true,
"manageXDRNetwork": true,
"manageXDRCloudWorkloads": true
},
"resell": {
"manageXDRResell": false
},
"minimumUsage":{
"endpointMonthlyUsage": 120
},
"assignedProductType": 0,
"additionalProductTypes": [0],
"licensedServices": {
"mdrServiceOwnUse": 1
}
},
"customFields": {
"referenceID": "004562",
"vertical": "healthcare",
"partner_type": "platinum",
"security_level": "high",
"payment_status": "goodstanding"
}
},
"jsonrpc": "2.0",
"method": "createCompany",
"id": "e249c22c-0ada-4772-a9f1-ee1cbb322588"
} A Customer company with a monthly subscription, with the Bitdefender PHASR product type and the Patch Management and Compliance Manager add-ons for own use:
{
"params": {
"type": 1,
"name": "Customer PHASR PatchMgmt",
"parentId": "64259e19a1bf20af00069c",
"address": "Str Example No 1",
"phone": "0040740000000",
"canBeManagedByAbove": true,
"accountEmail": "customer_phasr@example.com",
"accountFullName": "Customer account",
"licenseSubscription": {
"type": 3,
"assignedProductType": 5,
"additionalProductTypes": [],
"ownUse": {
"managePatchManagement": true,
"manageComplianceManager": true
}
}
},
"jsonrpc": "2.0",
"method": "createCompany",
"id": "a1b2c3d4-1111-2222-3333-4444555566"
}
Response:
{
"id": "e249c22c-0ada-4772-a9f1-ee1cbb322588",
"jsonrpc": "2.0",
"result": "5493dcd2b1a43df00b7b23c6"
}