Skip to main content

Assign Feature to a Pricing Tier

Assign a feature to a pricing tier. Note that both the feature being assigned and the pricing tier the feature is being assigned to must already exist. Refer to the documentation to create a feature and create a pricing tier for help.

caution

This endpoint has been deprecated and will be phased out at the end of 2023. Please update any existing usages of it to use the Create Warrant endpoint instead.

Endpoint
POST /v1/pricing-tiers/:pricingTierId/features/:featureId

Parameters

ParameterDescriptionTypeRequired
pricingTierIdThe pricingTierId of the pricing tier you want to assign the feature to.URL paramyes
featureIdThe featureId of the feature you want to assign to the pricing tier.URL paramyes

Request

curl "https://api.warrant.dev/v1/pricing-tiers/enterprise-tier/features/dashboard" \
-X POST \
-H "Authorization: ApiKey YOUR_KEY"

Response

{
"featureId": "new-feature"
}