Skip to main content
PATCH
cURL
Update a credit pack’s name, description, credits, price, or active status.

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.

Parámetros de ruta

id
string
requerido

Cuerpo

application/json
name
string
Required string length: 1 - 100
description
string
Maximum string length: 255
credits
integer
Rango requerido: 1 <= x <= 9007199254740991
price
integer
Rango requerido: 0 <= x <= 9007199254740991
isActive
boolean

Respuesta

Success

id
string
requerido
name
string
requerido
description
string | null
requerido
credits
integer
requerido
Rango requerido: -9007199254740991 <= x <= 9007199254740991
price
integer
requerido
Rango requerido: -9007199254740991 <= x <= 9007199254740991
isActive
boolean
requerido
createdAt
string<date-time>
requerido
updatedAt
string<date-time>
requerido
object
string
requerido
Allowed value: "credit_pack"
livemode
boolean
requerido