Update the customer rate card
const url = 'https://api.aetherplatform.cloud/api/v1/admin/rate-card';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"rates":[{"resource_type":"control_plane","unit_price_eur":0},{"resource_type":"vcpu","unit_price_eur":6.5}]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://api.aetherplatform.cloud/api/v1/admin/rate-card \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "rates": [ { "resource_type": "control_plane", "unit_price_eur": 0 }, { "resource_type": "vcpu", "unit_price_eur": 6.5 } ] }'Appends a new effective-now rate_cards row per submitted resource type and refreshes the in-process rate card so the change is live immediately. Each line is validated against the resource-type enum and the non-negative price constraint; a duplicated resource_type in one request is rejected. Requires the platform-admin realm role.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”object
object
€/month unit price (non-negative).
Example
{ "rates": [ { "resource_type": "control_plane", "unit_price_eur": 0 }, { "resource_type": "vcpu", "unit_price_eur": 6.5 } ]}Responses
Section titled “Responses”The updated current effective rates.
object
object
Examplegenerated
{ "rates": { "additionalProperty": 1 }}Invalid body — unknown resource_type, negative price, duplicate resource_type, or empty rates.
object
object
A stable, machine-readable error code.
object
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": [ { "field": "example", "code": "example", "message": "example" } ] }}Missing or invalid credentials.
object
object
A stable, machine-readable error code.
object
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": [ { "field": "example", "code": "example", "message": "example" } ] }}The credential was accepted but lacks the required role or access (e.g. a non-platform-admin calling an /api/v1/admin endpoint).
object
object
A stable, machine-readable error code.
object
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": [ { "field": "example", "code": "example", "message": "example" } ] }}