A valid request URL is required to generate request examples{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"key": "api_calls",
"name": "<string>",
"description": "<string>",
"kind": "boolean",
"unit_name": "<string>",
"reset_period": "day",
"archived": true,
"created_at": "2023-11-07T05:31:56Z"
}{
"error": {
"code": "forbidden",
"message": "your role does not allow this action"
}
}{
"error": {
"code": "forbidden",
"message": "your role does not allow this action"
}
}{
"error": {
"code": "forbidden",
"message": "your role does not allow this action"
}
}{
"error": {
"code": "forbidden",
"message": "your role does not allow this action"
}
}{
"error": {
"code": "forbidden",
"message": "your role does not allow this action"
}
}Update a feature
Requires billing:write. Changes a feature’s name, its description, and whether it is archived. Send only the fields you are changing; archived is a state it can come back from.
What cannot change is how the feature is measured — kind, unit_name and reset_period are refused, by name, rather than quietly ignored. The kind is copied onto every plan that carries the feature, and the database refuses to change it while any plan does: flipping metered to boolean under a plan would leave a limit nothing reads and a customer whose usage stopped being counted. A feature measured differently is a different feature — create it under a new key and archive this one.
key is refused for the same reason a plan’s is: it is the string your own code gates on.
A valid request URL is required to generate request examples{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"key": "api_calls",
"name": "<string>",
"description": "<string>",
"kind": "boolean",
"unit_name": "<string>",
"reset_period": "day",
"archived": true,
"created_at": "2023-11-07T05:31:56Z"
}{
"error": {
"code": "forbidden",
"message": "your role does not allow this action"
}
}{
"error": {
"code": "forbidden",
"message": "your role does not allow this action"
}
}{
"error": {
"code": "forbidden",
"message": "your role does not allow this action"
}
}{
"error": {
"code": "forbidden",
"message": "your role does not allow this action"
}
}{
"error": {
"code": "forbidden",
"message": "your role does not allow this action"
}
}Authorizations
Headers
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: the answer is not_a_member (403), which does not mean the session is over. Absent, the session's default organization answers, or — if that membership was revoked while the session was open — any other one the caller still holds.
Query Parameters
Response
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.