Skip to main content
POST
/
features
/
{feature_id}
Update a feature
curl --request POST \
  --url https://api.useautumn.com/v1/features/{feature_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "id": "<string>",
  "name": "<string>",
  "type": "static",
  "display": {
    "singular": "<string>",
    "plural": "<string>"
  },
  "credit_schema": [
    {
      "metered_feature_id": "<string>",
      "credit_cost": 123
    }
  ],
  "archived": true
}'
{
  "id": "<string>",
  "name": "<string>",
  "type": "static",
  "display": {
    "singular": "<string>",
    "plural": "<string>"
  },
  "credit_schema": [
    {
      "metered_feature_id": "<string>",
      "credit_cost": 123
    }
  ],
  "archived": true
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

feature_id
string
required

The feature ID to update

Body

application/json
id
string

The ID of the feature

name
string

The name of the feature

type
enum<string>

The type of the feature

Available options:
static,
boolean,
single_use,
continuous_use,
credit_system
display
object

Display names for the feature

credit_schema
object[]

Credit schema for credit system features (only applicable when type is credit_system)

archived
boolean

Whether the feature is archived

Response

Feature updated successfully

id
string
required

The unique identifier for the feature

type
enum<string>
required

The type of the feature

Available options:
static,
boolean,
single_use,
continuous_use,
credit_system
name
string | null

The name of the feature

display
object | null
credit_schema
object[] | null
archived
boolean | null

Whether the feature is archived

I