Skip to main content
PUT
Error

Autorizações

Authorization
string
header
obrigatório

A staff session token, uk_st_…. Minted by sign-up, sign-in or the two-factor exchange.

Cabeçalhos

X-Organization-Id
string

The organization the caller is acting on — the org_… code that appears in the panel URL. It identifies; the membership JOIN is what authorizes, so a forged code reads nothing. Absent, the session's default organization answers.

Parâmetros de caminho

planId
string<uuid>
obrigatório

The plan.

featureId
string<uuid>
obrigatório

The feature it carries.

Parâmetros de consulta

environment
enum<string>
padrão:live

Which environment to act in. A view parameter, valid only on the staff surface — a machine credential never chooses its environment, it is resolved from the key.

Opções disponíveis:
live,
test

Corpo

application/json
limit
integer<int64> | null

The ceiling, on a metered feature. -1 is unlimited. Omit on the other kinds.

included_quantity
integer<int64> | null

How many units the plan grants per period, on a credit feature. Omit on the other kinds.

Resposta

The cell.

One cell of the plan/feature matrix: how much of a feature a plan carries. A feature a plan does not carry is simply absent from the list.

feature_id
string<uuid>
feature_key
string
kind
enum<string>

The feature's kind, which decides which of the two numbers below applies.

Opções disponíveis:
boolean,
metered,
credit
limit
integer<int64> | null

The ceiling, on a metered feature; null on the other kinds. -1 is unlimited and 0 is a real limit — none at all.

unlimited
boolean

Whether limit is the unlimited sentinel, so a client never has to know the number.

included_quantity
integer<int64> | null

How many credits the plan grants per period, on a credit feature; null otherwise.