Update server configuration
const url = 'https://api.koneth.com/api/v1/management/servers/6be9a699-2f28-402e-b64e-93ba6bdafe1b/configuration';const options = { method: 'PATCH', headers: { 'X-Request-Id': 'onboarding-client-1042', Authorization: '<Authorization>', 'Content-Type': 'application/json' }, body: '{"supportedLeverage":[50,100,200,500],"defaultLeverage":100,"currency":"USD"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://api.koneth.com/api/v1/management/servers/6be9a699-2f28-402e-b64e-93ba6bdafe1b/configuration \ --header 'Authorization: <Authorization>' \ --header 'Content-Type: application/json' \ --header 'X-Request-Id: onboarding-client-1042' \ --data '{ "supportedLeverage": [ 50, 100, 200, 500 ], "defaultLeverage": 100, "currency": "USD" }'Replaces the supported leverage list and currency for the target server.
Requires accounts:update.
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-1042Request Bodyrequired
Section titled “Request Bodyrequired”Responses
Section titled “Responses”Server configuration updated.
object
Example
{ "server": { "currency": "USD", "environment": "demo", "status": "active" }}Invalid request.
object
Validation issue details when the request fails schema validation.
object
Examplegenerated
{ "error": "example", "issues": [ {} ]}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"}Unexpected server error.
object
Validation issue details when the request fails schema validation.
object
Example
{ "error": "Internal server error"}