Sync server license capacity
const url = 'https://api.koneth.com/api/v1/management/servers/6be9a699-2f28-402e-b64e-93ba6bdafe1b/capacity/sync';const options = { method: 'POST', headers: {'X-Request-Id': 'onboarding-client-1042', Authorization: '<Authorization>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.koneth.com/api/v1/management/servers/6be9a699-2f28-402e-b64e-93ba6bdafe1b/capacity/sync \ --header 'Authorization: <Authorization>' \ --header 'X-Request-Id: onboarding-client-1042'Re-points the server’s license at the newest active product in its
product family and returns the resulting account cap. Requires
accounts:create. Call this after Koneth publishes a new version of
the product a server is licensed under, when the server should adopt
its new account cap without being reconnected. Returns 404 when no
active product matches the license.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”UUID of a trading server owned by your organization.
Example
6be9a699-2f28-402e-b64e-93ba6bdafe1bHeader Parameters
Section titled “Header Parameters”Optional correlation ID used for API request billing and logs.
Example
onboarding-client-1042Responses
Section titled “Responses”License capacity refreshed.
object
Maximum number of active accounts the license now allows.
Identifier of the product the license now points at.
Example
{ "activeAccountCap": 100}Management API authentication is missing or invalid.
object
Validation issue details when the request fails schema validation.
object
Example
{ "error": "Management API authentication required"}The organization cannot cover the active API request price.
object
Validation issue details when the request fails schema validation.
object
Example
{ "error": "Insufficient API credits"}The key lacks the required scope or server access.
object
Validation issue details when the request fails schema validation.
object
Example
{ "error": "Missing API scope: accounts:read"}The requested resource was not found.
object
Validation issue details when the request fails schema validation.
object
Examplegenerated
{ "error": "example", "issues": [ {} ]}Unexpected server error.
object
Validation issue details when the request fails schema validation.
object
Example
{ "error": "Internal server error"}