Migrate client/client group
Select
SaaS
Customer Managed
This operation will move the client/clientgroup to a company. It can also add a client (that is not part of any company) to a company.
Path Parameters
- companyId string required
Header Parameters
- Accept string required
- application/json
Request Body required
entities object[]
Responses
- 200
OK
- application/json
- Schema
- Example (from schema)
- Example 1
Schema
- errorMessage string
- errorCode integer
{
"errorMessage": "string",
"errorCode": 0
}
{
"errorMessage": "",
"errorCode": 0
}
PUT /company/:companyid/company-association
Authorization
type: apiKeyname: Authtokenin: header
Request
Request
curl -L -X PUT 'https://CommandCenterHostName/commandcenter/api/company/:companyId/company-association' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"entities": [
{
"clientId": 0,
"_type_": "string",
"clientGroupId": 0
}
]
}'
curl -L -X PUT 'https://CommandCenterHostName/commandcenter/api/company/:companyId/company-association' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"entities": [
{
"clientId": 0,
"_type_": "string",
"clientGroupId": 0
}
]
}'
curl -L -X PUT 'https://CommandCenterHostName/commandcenter/api/company/:companyId/company-association' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"entities": [
{
"clientId": 0,
"_type_": "string",
"clientGroupId": 0
}
]
}'
curl -L -X PUT 'https://CommandCenterHostName/commandcenter/api/company/:companyId/company-association' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"entities": [
{
"clientId": 0,
"_type_": "string",
"clientGroupId": 0
}
]
}'
curl -L -X PUT 'https://CommandCenterHostName/commandcenter/api/company/:companyId/company-association' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"entities": [
{
"clientId": 0,
"_type_": "string",
"clientGroupId": 0
}
]
}'
curl -L -X PUT 'https://CommandCenterHostName/commandcenter/api/company/:companyId/company-association' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"entities": [
{
"clientId": 0,
"_type_": "string",
"clientGroupId": 0
}
]
}'
curl -L -X PUT 'https://CommandCenterHostName/commandcenter/api/company/:companyId/company-association' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"entities": [
{
"clientId": 0,
"_type_": "string",
"clientGroupId": 0
}
]
}'