Saltar al contenido principal
PUT
Python (SDK)

Autorizaciones

Authorization
string
header
requerido

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 ruta

apiKeyId
string
requerido
Minimum string length: 1

Cuerpo

application/json
period
enum<string>
requerido
Opciones disponibles:
daily,
weekly,
monthly
limit
number
requerido

Límite de gasto en unidades monetarias principales

thresholds
object[]
requerido
Minimum array length: 1
owner
enum<string>
predeterminado:org

clúster = operador de techo (lectura única de org-admin); org = auto-presupuesto

Opciones disponibles:
cluster,
org
webhook_url
string<uri> | null
webhook_secret
string | null
Minimum string length: 1

Respuesta

200 - application/json

Está bien

id
string
requerido
scope
enum<string>
requerido
Opciones disponibles:
org,
apikey
scope_id
string
requerido
scope_org_id
string | null
requerido
owner
enum<string>
requerido
Opciones disponibles:
cluster,
org
period
enum<string>
requerido
Opciones disponibles:
daily,
weekly,
monthly
limit
number
requerido
thresholds
object[]
requerido
alert_webhook_url
string | null
requerido
spend
object
requerido