Saltar al contenido principal
POST
Create add-on
This reference describes API version 2026-06-10. Send Commet-Version: 2026-06-10 with your request.

Autorizaciones

x-api-key
string
header
requerido

Encabezados

Commet-Version
string
predeterminado:2026-06-10

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

Cuerpo

application/json
name
string
requerido
Required string length: 1 - 100
basePrice
integer
requerido
Rango requerido: 0 <= x <= 9007199254740991
featureId
string
requerido
Minimum string length: 1
consumptionModel
enum<string>
requerido
Opciones disponibles:
boolean,
metered,
credits,
balance
description
string
Maximum string length: 255
planIds
string[]

Plans that sell the add-on. Omitted or empty, every plan sells it. Plans created later sell it too.

includedUnits
integer
Rango requerido: 0 <= x <= 9007199254740991
overageRate
integer
Rango requerido: 0 <= x <= 9007199254740991
creditCost
integer
Rango requerido: 0 <= x <= 9007199254740991

Respuesta

Success

success
any
requerido
data
object
requerido