Skip to main content
PATCH
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

id
string<uuid>
obrigatório

The feature.

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
name
string
description
string
archived
boolean

Resposta

The feature as it now stands.

One thing your product does, that your plans may or may not include. Yours, not UserKit's — the key is a string your code gates on.

id
string<uuid>
key
string

Lowercase letters, digits, _, - and .. What your own code compares against.

Exemplo:

"api_calls"

name
string
description
string
kind
enum<string>

boolean is on or off. metered is counted against a ceiling that resets. credit is spent from a balance — a counter answers “how much this period”, a balance answers “how much is left”.

Opções disponíveis:
boolean,
metered,
credit
unit_name
string

What one unit is called (seats, runs, tokens). Empty on a boolean feature and required on the others: a limit with no unit is a number nobody can read.

reset_period
enum<string> | null

How a metered feature's counter is bucketed; null for the other kinds. It belongs to the feature rather than to the plan, so a counter keeps its shape when a customer changes plan mid-period.

Opções disponíveis:
day,
week,
month,
year,
billing_period,
null
archived
boolean
created_at
string<date-time>