Add License
Select
SaaS
Customer Managed
This operation is used to apply/update a license file via API.
License XML can be passed in the request body.
Header Parameters
- Content-Type string required
Possible values: [
application/xml
]
Responses
- 200
OK
- application/json
- Schema
- Example (from schema)
- Example 1
Schema
- errorMessage string
- errorCode integer
{
"errorMessage": "string",
"errorCode": 0
}
{
"errorMessage": "Serial No [09DB-238E-7C52-44C6-9BD1E7] and Registration Code [BDC-6F3-23E6] in the license file do not match this CommServe. Please obtain a license with the correct Serial No [65DE-2FA3-3894-461F-824D32] and Registration Code [1FF-F06-57B0] from your software provider.",
"errorCode": 1
}
POST /license
Authorization
type: apiKeyname: Authtokenin: header
Request
Request
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/License' \
-H 'Content-Type: application/xml' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw ''
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/License' \
-H 'Content-Type: application/xml' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw ''
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/License' \
-H 'Content-Type: application/xml' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw ''
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/License' \
-H 'Content-Type: application/xml' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw ''
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/License' \
-H 'Content-Type: application/xml' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw ''
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/License' \
-H 'Content-Type: application/xml' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw ''
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/License' \
-H 'Content-Type: application/xml' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw ''