Menu QaldyDocs

Plan and spending cap

The workspace’s plan, its allowances and the hard spending cap. Billing is mock in the pilot. 2 routes, from the API’s own OpenAPI document.

2 routes. Every path starts at https://cloud-api.qaldy.com. Sign-in, tokens, errors and limits are on the overview.

Routes

MethodPathWhat it does
GET/​v1/​workspaces/​{ws}/​planThe plan, what it includes, the headline meters and the spend cap (MOCK billing)
PUT/​v1/​workspaces/​{ws}/​planChange the plan and the spend cap settings (admins; the cap amount needs the owner)

Reference

GET /v1/workspaces/{ws}/plan

The plan, what it includes, the headline meters and the spend cap (MOCK billing).

  • Authentication: the console’s session cookie.
  • Token: not available. This route is for a signed-in person in the console (403 console_only for a token).
ParameterInTypeRequiredNotes
wspathstringyes1 to 128 characters

Response 200

FieldTypeRequiredNotes
workspaceIdstringyesat least 1 characters
versionintegeryesat least 0
plan"free" · "maker" · "team" · "business" · "sovereign"yes
planSource"default" · "set"yes
currency"EUR" · "USD" · "KZT"yes
periodobjectyes
period.startstring (date-time)yes
period.endstring (date-time)yes
period.daysInPeriodintegeryes28 to 31
period.dayintegeryes1 to 31
entitlementsobjectyes
entitlements.plan"free" · "maker" · "team" · "business" · "sovereign"yes
entitlements.namestringyesat least 1 characters
entitlements.appsinteger or nullyes
entitlements.buildersinteger or nullyes
entitlements.contractbooleanyes
entitlements.viewers"free"yes
entitlements.addOnsobjectyes
entitlements.headlineobject[]yes
entitlements.unitsobject[]yes
headlineobject[]yes
headline[].id"runs" · "requests" · "storage" · "ai"yes
headline[].kind"cpu_time" · "concurrency" · "runs" · "requests" · "egress_gb" · "storage_db_gb" · "storage_files_gb" · "ai_credits" · …yes
headline[].usednumber or nullyesat least 0
headline[].allowancenumberyesat least 0
headline[].projectednumber or nullyesat least 0
headline[].pctnumber or nullyes0 to 1000
headline[].band"ok" · "near" · "at" · null or nullyes
headline[].source"runs_table" · "baas_log" · "row_estimate" · "ledger" · "mock" · "none"yes
headline[].estimatebooleanyes

…and 6 more fields. The full schema is in openapi.json.

Errors: 400, 401, 403, 404, 409, 429 (the error format is on the overview).

PUT /v1/workspaces/{ws}/plan

Change the plan and the spend cap settings (admins; the cap amount needs the owner).

  • Authentication: the console’s session cookie.
  • Token: not available. This route is for a signed-in person in the console (403 console_only for a token).
ParameterInTypeRequiredNotes
wspathstringyes1 to 128 characters

Request body (application/json)

FieldTypeRequiredNotes
basedOnVersionintegeryesat least 0
idempotencyKeystring8 to 128 characters
plan"free" · "maker" · "team" · "business" · "sovereign"
spendobject
spend.hardCapboolean
spend.alerts50 or 75 or 90 or 100[]up to 4 items
spend.capobject or null
spend.cap.currency"EUR" · "USD" · "KZT"yes
spend.cap.minorintegeryes

Response 200

FieldTypeRequiredNotes
workspaceIdstringyesat least 1 characters
versionintegeryesat least 0
plan"free" · "maker" · "team" · "business" · "sovereign"yes
planSource"default" · "set"yes
currency"EUR" · "USD" · "KZT"yes
periodobjectyes
period.startstring (date-time)yes
period.endstring (date-time)yes
period.daysInPeriodintegeryes28 to 31
period.dayintegeryes1 to 31
entitlementsobjectyes
entitlements.plan"free" · "maker" · "team" · "business" · "sovereign"yes
entitlements.namestringyesat least 1 characters
entitlements.appsinteger or nullyes
entitlements.buildersinteger or nullyes
entitlements.contractbooleanyes
entitlements.viewers"free"yes
entitlements.addOnsobjectyes
entitlements.headlineobject[]yes
entitlements.unitsobject[]yes
headlineobject[]yes
headline[].id"runs" · "requests" · "storage" · "ai"yes
headline[].kind"cpu_time" · "concurrency" · "runs" · "requests" · "egress_gb" · "storage_db_gb" · "storage_files_gb" · "ai_credits" · …yes
headline[].usednumber or nullyesat least 0
headline[].allowancenumberyesat least 0
headline[].projectednumber or nullyesat least 0
headline[].pctnumber or nullyes0 to 1000
headline[].band"ok" · "near" · "at" · null or nullyes
headline[].source"runs_table" · "baas_log" · "row_estimate" · "ledger" · "mock" · "none"yes
headline[].estimatebooleanyes

…and 6 more fields. The full schema is in openapi.json.

Errors: 400, 401, 403, 404, 409, 429 (the error format is on the overview).

Type to search. Up and down to choose, Enter to open, Esc to close.