Set license key
Set or sync license key
PUT
/appid-{appId}/ee/licenseAuthorization
api-keyAPI key · headerrequiredThe core service API token. If you are using a self-hosted core service and you have not generated a token, you can omit the header.
Header parameters
cdi-versionstringX.Y of the X.Y.Z CDI version.
Request body
application/jsonlicenseKeystringResponses
200The operation was successful
One of:
object
statusstatusOKAllowed:
OKobject
statusstringAllowed:
MISSING_EE_FOLDER_ERRORobject
statusstringAllowed:
INVALID_LICENSE_KEY_ERROR400error code 400
string401error code 401
string500error code 500
stringTry it
Server
Authorization
Parameters
Bodyapplication/json
Request
curl -X PUT "/appid-{appId}/ee/license" \
-H "api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"licenseKey": "eyJhbGciOiJIUzI1NiIsIn..."
}'const response = await fetch("/appid-{appId}/ee/license", {
method: "PUT",
headers: {
"api-key": "YOUR_API_KEY",
"Content-Type": "application/json"
},
body: JSON.stringify({
"licenseKey": "eyJhbGciOiJIUzI1NiIsIn..."
})
});import requests
response = requests.put(
"/appid-{appId}/ee/license",
headers={
"api-key": "YOUR_API_KEY",
"Content-Type": "application/json"
},
json={
"licenseKey": "eyJhbGciOiJIUzI1NiIsIn..."
},
)Response
{
"status": "OK"
}"string""Invalid API key""Internal Error"