import requests
url = "https://platform.ankra.app/api/v1/org/cloud-cost/rate-cards"
payload = { "currency": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({currency: '<string>'})
};
fetch('https://platform.ankra.app/api/v1/org/cloud-cost/rate-cards', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request PUT \
--url https://platform.ankra.app/api/v1/org/cloud-cost/rate-cards \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"currency": "<string>"
}
'{
"currency": "<string>",
"memory_gb_monthly_amount": "<string>",
"storage_gb_monthly_amount": "<string>",
"vcpu_monthly_amount": "<string>"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "Cluster not found"
}State a rate card (bearer twin)
Writes the monthly rates for one private credential, or the organisation fallback card. Gated on billing.manage; the token stands in for the browser route’s CSRF double-submit. Bearer-PAT twin of the browser route of the same name under /org; the console’s session cookie is not accepted here and the browser route answers a token with a login redirect.
import requests
url = "https://platform.ankra.app/api/v1/org/cloud-cost/rate-cards"
payload = { "currency": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({currency: '<string>'})
};
fetch('https://platform.ankra.app/api/v1/org/cloud-cost/rate-cards', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request PUT \
--url https://platform.ankra.app/api/v1/org/cloud-cost/rate-cards \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"currency": "<string>"
}
'{
"currency": "<string>",
"memory_gb_monthly_amount": "<string>",
"storage_gb_monthly_amount": "<string>",
"vcpu_monthly_amount": "<string>"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "Cluster not found"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
PAT organisation override.
Body
Body of PUT /api/v1/org/cloud-cost/rate-cards: the monthly rates that price one private credential's capacity, or the organisation's fallback card.
Currency the amounts are stated in; one of the platform's convertible currencies.
A private credential id, or organisation (or omitted) for the organisation's fallback card.
Decimal amount per GB of memory per month.
Decimal amount per GB of storage per month.
Decimal amount per vCPU per month.