Skip to main content
POST
cURL
Attach a feature to a plan with limits, overage, and credits configuration.

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
featureId
string
requerido
Minimum string length: 1
enabled
boolean
predeterminado:true
includedAmount
integer
predeterminado:0
Rango requerido: 0 <= x <= 9007199254740991
unlimited
boolean
predeterminado:false
overage
object
creditsPerUnit
integer | null
Rango requerido: -9007199254740991 <= x <= 9007199254740991
pricingMode
enum<string>
predeterminado:fixed
Opciones disponibles:
fixed,
ai_model
margin
integer | null
Rango requerido: 0 <= x <= 9007199254740991

Respuesta

Success

planId
string
requerido
featureId
string
requerido
enabled
boolean
requerido
includedAmount
integer
requerido
Rango requerido: -9007199254740991 <= x <= 9007199254740991
unlimited
boolean
requerido
overage
object
requerido
creditsPerUnit
integer | null
requerido
Rango requerido: -9007199254740991 <= x <= 9007199254740991
pricingMode
enum<string>
requerido
Opciones disponibles:
fixed,
ai_model
margin
integer | null
requerido
Rango requerido: -9007199254740991 <= x <= 9007199254740991
object
string
requerido
Allowed value: "plan_feature"
livemode
boolean
requerido