updateCompanyDetails
This method updates the details of a company that you manage.
Parameters
Parameter | Type | Optional | Description and value requirements |
|---|---|---|---|
| String | Yes | The ID of the company to be updated. The default value is the ID of the company linked to the user who generated the API key. The value must be a 24-character hexadecimal string. |
| Integer | Yes | The company type. Available values:
If not set, the company type will not be changed. ImportantYou cannot change the type of your own company (the company linked to the API key that generated the request). |
| String | Yes | The company's new name. It must be unique. It must not exceed 64 characters. If not set, the company's name will not be changed. |
| String | Yes | The company's address. It must not exceed 128 characters and must not contain HTML tags. If not set, the company's address will not be changed. |
| String | Yes | The company's new phone number. It must not exceed 32 characters. If not set, the company's phone number will not be changed. |
| Integer | Yes | The industry the company operates in. Possible values:
If not set, the company's industry will not be changed. |
| String | Yes | The company's new country of operation. The value must be in ISO 3166 format. If not set, the company's country will not be changed. |
| String | Yes | The company's state or primary administrative subdivision of operation. The value must be in ISO 3166 format. If not set, the company's state will not be changed. |
| Object | Yes | Information regarding the company's designated contact person. The object contains the following fields:
If not set, the contact person's info will not be changed. |
| 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:
|
| Object | Yes | An object containing the custom fields' values for the company. To delete the custom fields, set it as an empty array. ImportantYou cannot change custom field values for your own company (the company linked to the API key that generated the request). |
| Object | Yes Important
| The company's designated emergency contact details, intended for use by the MDR team during security events or incidents. The object may contain the following fields:
Important
|
| Boolean | Yes | When set to:
If not configured, it retains the value set prior to the update. ImportantThis parameter cannot be set to |
Return value
This method does not return any value.
Example
Request:
{
"params": {
"id": "5493dcd2b1a43df00b7b23c6",
"type": 0,
"name": "Customer to Partner LTD",
"address": "Str Example No 1",
"phone": "0040740000001",
"skip2FAPeriod": 3,
"customFields": {
"referenceID": "004562",
"vertical": "healthcare",
"partner_type": "platinum",
"security_level": "high",
"payment_status": "goodstanding"
},
"mdrContactInformation": {
"phoneNumber": {
"countryPrefix": "+40",
"subscriberNumber": "112345"
},
"fullName": "Contact",
"email": "mdrcontact@nebula.local",
"emailVerificationCode": "43728676"
},
"duplicateClosedIncidentsOnUpdate": false
},
"jsonrpc": "2.0",
"method": "updateCompanyDetails",
"id": "60357f0e-94da-463c-ba36-f50f2ef8c34f"
}Response:
{
"id":"60357f0e-94da-463c-ba36-f50f2ef8c34f",
"jsonrpc":"2.0",
"result": null
}