Autumn's V2 API is live in beta. We recommend using this version.
import { Autumn } from 'autumn-js';
const autumn = new Autumn();
const { data, error } = await autumn.features.update('feature_id');{
"id": "<string>",
"type": "boolean",
"name": "<string>",
"display": {
"singular": "<string>",
"plural": "<string>"
},
"credit_schema": [
{
"metered_feature_id": "<string>",
"credit_cost": 123
}
],
"archived": true
}import { Autumn } from 'autumn-js';
const autumn = new Autumn();
const { data, error } = await autumn.features.update('feature_id');{
"id": "<string>",
"type": "boolean",
"name": "<string>",
"display": {
"singular": "<string>",
"plural": "<string>"
},
"credit_schema": [
{
"metered_feature_id": "<string>",
"credit_cost": 123
}
],
"archived": true
}Documentation Index
Fetch the complete documentation index at: https://docs-v1.useautumn.com/llms.txt
Use this file to discover all available pages before exploring further.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The ID of the feature. This is used to refer to it in other API calls like /track or /check.
^[a-zA-Z0-9_-]+$The name of the feature.
The type of the feature. 'single_use' features are consumed, like API calls, tokens, or messages. 'continuous_use' features are allocated, like seats, workspaces, or projects. 'credit_system' features are schemas that unify multiple 'single_use' features into a single credit system.
static, boolean, single_use, continuous_use, credit_system Singular and plural display names for the feature in your user interface.
Show child attributes
A schema that maps 'single_use' feature IDs to credit costs. Applicable only for 'credit_system' features.
Show child attributes
Whether the feature is archived. Archived features are hidden from the dashboard and list features endpoint.
The ID of the feature, used to refer to it in other API calls like /track or /check.
boolean, single_use, continuous_use, credit_system The name of the feature.
Singular and plural display names for the feature.
Show child attributes
Credit cost schema for credit system features.
Show child attributes
Whether or not the feature is archived.