Skip to main content
PUT
CSharp (SDK)

Authorizations

Authorization
string
header
required

Send Authorization: Bearer , using an MKA1 API key for automation or an OAuth API access token for a signed-in application. Use a dynamic security callback to refresh OAuth access tokens. Browser session-only operations still require their declared cookie.

Path Parameters

id
string
required
Required string length: 1 - 255

Query Parameters

org_id
string

Target org; defaults to the caller's own org. Only cluster admins may name another org (org admins may pass their own).

Required string length: 1 - 255

Body

application/json
period
enum<string>
required
Available options:
daily,
weekly,
monthly
limit
number
required

Spend limit in major currency units

thresholds
object[]
required
Minimum array length: 1
owner
enum<string>
default:org

cluster = operator ceiling (org-admin read-only); org = self-budget

Available options:
cluster,
org
webhook_url
string<uri> | null
webhook_secret
string | null
Minimum string length: 1

Response

200 - application/json

OK

id
string
required
scope
enum<string>
required
Available options:
org,
apikey,
user,
team,
external_user,
user_default,
team_default,
external_user_default
scope_id
string
required
scope_org_id
string | null
required
owner
enum<string>
required
Available options:
cluster,
org
period
enum<string>
required
Available options:
daily,
weekly,
monthly
limit
number
required
thresholds
object[]
required
alert_webhook_url
string | null
required
spend
object
required