Skip to main content
PUT
cURL
Set a metered feature’s usage to an exact value for the current period. Use the Idempotency-Key header to make retries safe.

Autorizaciones

x-api-key
string
header
requerido

Encabezados

Idempotency-Key
string

Unique key used to safely retry this write for 24 hours without applying it twice.

Required string length: 1 - 200
Commet-Version
string
predeterminado:2026-08-27

API version used by this reference. Send this header to select this contract explicitly.

Cuerpo

application/json
customerId
string
requerido
Required string length: 1 - 200
featureCode
string
requerido
Required string length: 1 - 50
Pattern: ^[a-z0-9_]+$
value
integer
requerido
Rango requerido: 0 <= x <= 2147483647
reason
string
Required string length: 1 - 500

Respuesta

Success

id
string
requerido
value
integer
requerido
Rango requerido: 0 <= x <= 2147483647
previousValue
integer
requerido
Rango requerido: 0 <= x <= 9007199254740991
adjustment
integer
requerido
Rango requerido: -9007199254740991 <= x <= 9007199254740991
customerId
string
requerido
reason
string | null
requerido
ts
string<date-time>
requerido
createdAt
string<date-time>
requerido
featureCode
string
requerido
object
string
requerido
Allowed value: "usage_adjustment"
livemode
boolean
requerido