Update the properties of existing company
Modify the properties of an existing company
Path Parameters
- companyId int32 required
Id of the company to update
- application/json
Request Body
status object
- newName string
Used to change the name of a company
general object
security object[]
emailSettings object
sites object
tenantOperators object[]
plans object[]
defaultPlans object[]
fileExceptions object
Responses
- 200
- 400
- 404
Success
- application/json
- Schema
- Example (from schema)
Schema
- errorMessage string
- errorCode int32
{
"errorMessage": "string",
"errorCode": 0
}
Bad Request
Requested Details not found
PUT /v4/company/:companyid
Authorization
type: apiKeyname: Authtokenin: header
Request
Request
curl -L -X PUT 'https://localhost/webconsole/api/V4/company/:companyId' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"status": {
"deactivate": true,
"options": {
"disableBackup": true,
"disableRestore": true,
"disableLogin": true
}
},
"newName": "string",
"general": {
"newAlias": "string",
"emailSuffix": "string",
"authcodeForInstallation": true,
"upnInsteadOfEmail": true,
"twoFactorAuth": {
"enable": true,
"all": true,
"userGroups": [
{
"id": 0,
"name": "string"
}
]
},
"resellerMode": true,
"enableDataEncryption": true,
"autoDiscoverApp": true,
"infrastructureType": "RENTED_STORAGE",
"supportedSolutions": [
"FILE_SERVER"
],
"assignLaptopOwners": "LOGGED_IN_ACTIVE_DIRECTORY_USERS",
"serviceCommcells": [
{
"id": 0,
"name": "string"
}
]
},
"security": [
{
"user": {
"id": 0,
"name": "string"
},
"userGroup": {
"id": 0,
"name": "string"
},
"role": {
"id": 0,
"name": "string"
}
}
],
"emailSettings": {
"senderName": "string",
"senderEmail": "string"
},
"sites": {
"primarySiteName": "string",
"secondarySiteNames": [
"string"
]
},
"tenantOperators": [
{
"user": {
"id": 0,
"name": "string"
},
"userGroup": {
"id": 0,
"name": "string"
},
"role": {
"id": 0,
"name": "string"
}
}
],
"plans": [
{
"id": 0,
"name": "string"
}
],
"defaultPlans": [
{
"subtype": "ANY",
"id": 0,
"name": "string"
}
],
"fileExceptions": {
"windows": "string",
"unix": "string",
"useCompanyGlobalFilter": true
}
}'
curl -L -X PUT 'https://localhost/webconsole/api/V4/company/:companyId' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"status": {
"deactivate": true,
"options": {
"disableBackup": true,
"disableRestore": true,
"disableLogin": true
}
},
"newName": "string",
"general": {
"newAlias": "string",
"emailSuffix": "string",
"authcodeForInstallation": true,
"upnInsteadOfEmail": true,
"twoFactorAuth": {
"enable": true,
"all": true,
"userGroups": [
{
"id": 0,
"name": "string"
}
]
},
"resellerMode": true,
"enableDataEncryption": true,
"autoDiscoverApp": true,
"infrastructureType": "RENTED_STORAGE",
"supportedSolutions": [
"FILE_SERVER"
],
"assignLaptopOwners": "LOGGED_IN_ACTIVE_DIRECTORY_USERS",
"serviceCommcells": [
{
"id": 0,
"name": "string"
}
]
},
"security": [
{
"user": {
"id": 0,
"name": "string"
},
"userGroup": {
"id": 0,
"name": "string"
},
"role": {
"id": 0,
"name": "string"
}
}
],
"emailSettings": {
"senderName": "string",
"senderEmail": "string"
},
"sites": {
"primarySiteName": "string",
"secondarySiteNames": [
"string"
]
},
"tenantOperators": [
{
"user": {
"id": 0,
"name": "string"
},
"userGroup": {
"id": 0,
"name": "string"
},
"role": {
"id": 0,
"name": "string"
}
}
],
"plans": [
{
"id": 0,
"name": "string"
}
],
"defaultPlans": [
{
"subtype": "ANY",
"id": 0,
"name": "string"
}
],
"fileExceptions": {
"windows": "string",
"unix": "string",
"useCompanyGlobalFilter": true
}
}'
curl -L -X PUT 'https://localhost/webconsole/api/V4/company/:companyId' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"status": {
"deactivate": true,
"options": {
"disableBackup": true,
"disableRestore": true,
"disableLogin": true
}
},
"newName": "string",
"general": {
"newAlias": "string",
"emailSuffix": "string",
"authcodeForInstallation": true,
"upnInsteadOfEmail": true,
"twoFactorAuth": {
"enable": true,
"all": true,
"userGroups": [
{
"id": 0,
"name": "string"
}
]
},
"resellerMode": true,
"enableDataEncryption": true,
"autoDiscoverApp": true,
"infrastructureType": "RENTED_STORAGE",
"supportedSolutions": [
"FILE_SERVER"
],
"assignLaptopOwners": "LOGGED_IN_ACTIVE_DIRECTORY_USERS",
"serviceCommcells": [
{
"id": 0,
"name": "string"
}
]
},
"security": [
{
"user": {
"id": 0,
"name": "string"
},
"userGroup": {
"id": 0,
"name": "string"
},
"role": {
"id": 0,
"name": "string"
}
}
],
"emailSettings": {
"senderName": "string",
"senderEmail": "string"
},
"sites": {
"primarySiteName": "string",
"secondarySiteNames": [
"string"
]
},
"tenantOperators": [
{
"user": {
"id": 0,
"name": "string"
},
"userGroup": {
"id": 0,
"name": "string"
},
"role": {
"id": 0,
"name": "string"
}
}
],
"plans": [
{
"id": 0,
"name": "string"
}
],
"defaultPlans": [
{
"subtype": "ANY",
"id": 0,
"name": "string"
}
],
"fileExceptions": {
"windows": "string",
"unix": "string",
"useCompanyGlobalFilter": true
}
}'
curl -L -X PUT 'https://localhost/webconsole/api/V4/company/:companyId' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"status": {
"deactivate": true,
"options": {
"disableBackup": true,
"disableRestore": true,
"disableLogin": true
}
},
"newName": "string",
"general": {
"newAlias": "string",
"emailSuffix": "string",
"authcodeForInstallation": true,
"upnInsteadOfEmail": true,
"twoFactorAuth": {
"enable": true,
"all": true,
"userGroups": [
{
"id": 0,
"name": "string"
}
]
},
"resellerMode": true,
"enableDataEncryption": true,
"autoDiscoverApp": true,
"infrastructureType": "RENTED_STORAGE",
"supportedSolutions": [
"FILE_SERVER"
],
"assignLaptopOwners": "LOGGED_IN_ACTIVE_DIRECTORY_USERS",
"serviceCommcells": [
{
"id": 0,
"name": "string"
}
]
},
"security": [
{
"user": {
"id": 0,
"name": "string"
},
"userGroup": {
"id": 0,
"name": "string"
},
"role": {
"id": 0,
"name": "string"
}
}
],
"emailSettings": {
"senderName": "string",
"senderEmail": "string"
},
"sites": {
"primarySiteName": "string",
"secondarySiteNames": [
"string"
]
},
"tenantOperators": [
{
"user": {
"id": 0,
"name": "string"
},
"userGroup": {
"id": 0,
"name": "string"
},
"role": {
"id": 0,
"name": "string"
}
}
],
"plans": [
{
"id": 0,
"name": "string"
}
],
"defaultPlans": [
{
"subtype": "ANY",
"id": 0,
"name": "string"
}
],
"fileExceptions": {
"windows": "string",
"unix": "string",
"useCompanyGlobalFilter": true
}
}'
curl -L -X PUT 'https://localhost/webconsole/api/V4/company/:companyId' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"status": {
"deactivate": true,
"options": {
"disableBackup": true,
"disableRestore": true,
"disableLogin": true
}
},
"newName": "string",
"general": {
"newAlias": "string",
"emailSuffix": "string",
"authcodeForInstallation": true,
"upnInsteadOfEmail": true,
"twoFactorAuth": {
"enable": true,
"all": true,
"userGroups": [
{
"id": 0,
"name": "string"
}
]
},
"resellerMode": true,
"enableDataEncryption": true,
"autoDiscoverApp": true,
"infrastructureType": "RENTED_STORAGE",
"supportedSolutions": [
"FILE_SERVER"
],
"assignLaptopOwners": "LOGGED_IN_ACTIVE_DIRECTORY_USERS",
"serviceCommcells": [
{
"id": 0,
"name": "string"
}
]
},
"security": [
{
"user": {
"id": 0,
"name": "string"
},
"userGroup": {
"id": 0,
"name": "string"
},
"role": {
"id": 0,
"name": "string"
}
}
],
"emailSettings": {
"senderName": "string",
"senderEmail": "string"
},
"sites": {
"primarySiteName": "string",
"secondarySiteNames": [
"string"
]
},
"tenantOperators": [
{
"user": {
"id": 0,
"name": "string"
},
"userGroup": {
"id": 0,
"name": "string"
},
"role": {
"id": 0,
"name": "string"
}
}
],
"plans": [
{
"id": 0,
"name": "string"
}
],
"defaultPlans": [
{
"subtype": "ANY",
"id": 0,
"name": "string"
}
],
"fileExceptions": {
"windows": "string",
"unix": "string",
"useCompanyGlobalFilter": true
}
}'
curl -L -X PUT 'https://localhost/webconsole/api/V4/company/:companyId' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"status": {
"deactivate": true,
"options": {
"disableBackup": true,
"disableRestore": true,
"disableLogin": true
}
},
"newName": "string",
"general": {
"newAlias": "string",
"emailSuffix": "string",
"authcodeForInstallation": true,
"upnInsteadOfEmail": true,
"twoFactorAuth": {
"enable": true,
"all": true,
"userGroups": [
{
"id": 0,
"name": "string"
}
]
},
"resellerMode": true,
"enableDataEncryption": true,
"autoDiscoverApp": true,
"infrastructureType": "RENTED_STORAGE",
"supportedSolutions": [
"FILE_SERVER"
],
"assignLaptopOwners": "LOGGED_IN_ACTIVE_DIRECTORY_USERS",
"serviceCommcells": [
{
"id": 0,
"name": "string"
}
]
},
"security": [
{
"user": {
"id": 0,
"name": "string"
},
"userGroup": {
"id": 0,
"name": "string"
},
"role": {
"id": 0,
"name": "string"
}
}
],
"emailSettings": {
"senderName": "string",
"senderEmail": "string"
},
"sites": {
"primarySiteName": "string",
"secondarySiteNames": [
"string"
]
},
"tenantOperators": [
{
"user": {
"id": 0,
"name": "string"
},
"userGroup": {
"id": 0,
"name": "string"
},
"role": {
"id": 0,
"name": "string"
}
}
],
"plans": [
{
"id": 0,
"name": "string"
}
],
"defaultPlans": [
{
"subtype": "ANY",
"id": 0,
"name": "string"
}
],
"fileExceptions": {
"windows": "string",
"unix": "string",
"useCompanyGlobalFilter": true
}
}'
curl -L -X PUT 'https://localhost/webconsole/api/V4/company/:companyId' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"status": {
"deactivate": true,
"options": {
"disableBackup": true,
"disableRestore": true,
"disableLogin": true
}
},
"newName": "string",
"general": {
"newAlias": "string",
"emailSuffix": "string",
"authcodeForInstallation": true,
"upnInsteadOfEmail": true,
"twoFactorAuth": {
"enable": true,
"all": true,
"userGroups": [
{
"id": 0,
"name": "string"
}
]
},
"resellerMode": true,
"enableDataEncryption": true,
"autoDiscoverApp": true,
"infrastructureType": "RENTED_STORAGE",
"supportedSolutions": [
"FILE_SERVER"
],
"assignLaptopOwners": "LOGGED_IN_ACTIVE_DIRECTORY_USERS",
"serviceCommcells": [
{
"id": 0,
"name": "string"
}
]
},
"security": [
{
"user": {
"id": 0,
"name": "string"
},
"userGroup": {
"id": 0,
"name": "string"
},
"role": {
"id": 0,
"name": "string"
}
}
],
"emailSettings": {
"senderName": "string",
"senderEmail": "string"
},
"sites": {
"primarySiteName": "string",
"secondarySiteNames": [
"string"
]
},
"tenantOperators": [
{
"user": {
"id": 0,
"name": "string"
},
"userGroup": {
"id": 0,
"name": "string"
},
"role": {
"id": 0,
"name": "string"
}
}
],
"plans": [
{
"id": 0,
"name": "string"
}
],
"defaultPlans": [
{
"subtype": "ANY",
"id": 0,
"name": "string"
}
],
"fileExceptions": {
"windows": "string",
"unix": "string",
"useCompanyGlobalFilter": true
}
}'