Settings and Server Info
All PUT endpoints update only the fields present in the body; see Updating Resources.
GET/v1/settingsGET /v1/settings
Code samples
cURL
# You can also use wget
curl -X GET /v1/settings \
-H 'Accept: text/plain' \
-H 'x-api-key: API_KEY'
GET /v1/settings
Gets the application settings.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| request | query | Management.GetSettingsRequest | false | The request containing the parameters for the application settings to retrieve. |
Example responses
200 Response
{"success":true,"code":0,"message":"string","settings":[{"group":"string","name":"string","type":"string","value":null}]}{
"success": true,
"code": 0,
"message": "string",
"settings": [
{
"group": "string",
"name": "string",
"type": "string",
"value": null
}
]
}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OKÂ | OK | Management.GetSettingsResponse |
Authentication: API key (x-api-key).
PUT/v1/settingsPUT /v1/settings
Code samples
cURL
# You can also use wget
curl -X PUT /v1/settings \
-H 'Content-Type: application/json-patch+json' \
-H 'Accept: text/plain' \
-H 'x-api-key: API_KEY'
PUT /v1/settings
Updates the application settings.
Body parameter
{
"settings": [
{
"group": "string",
"name": "string",
"type": "string",
"value": null
}
]
}Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| body | body | Management.UpdateSettingsRequest | false | The request containing the updated settings. |
Example responses
200 Response
{"success":true,"code":0,"message":"string"}{
"success": true,
"code": 0,
"message": "string"
}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OKÂ | OK | Management.UpdateSettingsResponse |
Authentication: API key (x-api-key).
GET/v1/infoGET /v1/info
Code samples
cURL
# You can also use wget
curl -X GET /v1/info \
-H 'Accept: text/plain' \
-H 'x-api-key: API_KEY'
GET /v1/info
Gets the server information.
Example responses
200 Response
{"success":true,"code":0,"message":"string","product":"string","edition":0,"version":"string","license":"string","serverHost":"string","serverTime":"2019-08-24T14:15:22Z","clientAddress":"string","activeTokens":0,"maxTokens":0,"activationTokens":0,"floatingTokens":0,"expiredTokens":0,"totalLicenses":0,"revokedLicenses":0,"tracedLicenses":0,"activationLicenses":0,"floatingLicenses":0,"fileLicenses":0}{
"success": true,
"code": 0,
"message": "string",
"product": "string",
"edition": 0,
"version": "string",
"license": "string",
"serverHost": "string",
"serverTime": "2019-08-24T14:15:22Z",
"clientAddress": "string",
"activeTokens": 0,
"maxTokens": 0,
"activationTokens": 0,
"floatingTokens": 0,
"expiredTokens": 0,
"totalLicenses": 0,
"revokedLicenses": 0,
"tracedLicenses": 0,
"activationLicenses": 0,
"floatingLicenses": 0,
"fileLicenses": 0
}Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OKÂ | The server information has been retrieved successfully. Example: | |
| { | |||
| “Product”: “Babel Licensing Service”, | |||
| “Version”: “10.7.0" | |||
| "ServerHost”: “172.34.12.1" | |||
| "ServerTime”: “2022-01-01T00:00:00Z”, | |||
| … | |||
| } | Management.GetServerInfoResponse |
Authentication: API key (x-api-key).
Last updated on