Pular para o conteúdo principal
PUT
Python (SDK)

Autorizações

Authorization
string
header
obrigatório

Gateway auth: send Authorization: Bearer <mka1-api-key>. For multi-user server-side integrations, you can also send X-On-Behalf-Of: <external-user-id>.

Parâmetros de caminho

apiKeyId
string
obrigatório
Minimum string length: 1

Corpo

application/json
period
enum<string>
obrigatório
Opções disponíveis:
daily,
weekly,
monthly
limit
number
obrigatório

Limite de gastos em unidades da moeda principal

thresholds
object[]
obrigatório
Minimum array length: 1
owner
enum<string>
padrão:org

cluster = operador teto (administração-organizacional somente leitura); org = auto-orçamento

Opções disponíveis:
cluster,
org
webhook_url
string<uri> | null
webhook_secret
string | null
Minimum string length: 1

Resposta

200 - application/json

OK

id
string
obrigatório
scope
enum<string>
obrigatório
Opções disponíveis:
org,
apikey
scope_id
string
obrigatório
scope_org_id
string | null
obrigatório
owner
enum<string>
obrigatório
Opções disponíveis:
cluster,
org
period
enum<string>
obrigatório
Opções disponíveis:
daily,
weekly,
monthly
limit
number
obrigatório
thresholds
object[]
obrigatório
alert_webhook_url
string | null
obrigatório
spend
object
obrigatório