Create a Pricing Tier
Create a new pricing tier.
POST /v1/pricing-tiers
Parameters
Parameter | Description | Type | Required |
---|---|---|---|
pricingTierId | A string identifier for the pricing tier. A pricingTierId must be composed of alphanumeric chars and/or _ , - , . , @ , | , and : . | JSON body | yes |
name | An optional, display-friendly name for the pricing tier. | JSON body | no |
description | An optional description of the pricing tier. A useful description might include a summary of the functionality the pricing tier grants. | JSON body | no |
Request
- Curl
- Go
- Java
- Node.js
- Python
- Ruby
- PHP
- CLI
curl "https://api.warrant.dev/v1/pricing-tiers" \
-X POST \
-H "Authorization: ApiKey YOUR_KEY" \
--data-raw \
'{
"pricingTierId": "enterprise",
"name": "Enterprise",
"description": "Grants the tenant access to enterprise features with no usage restrictions"
}'
createdPricingTier, err := pricingtier.Create(&pricingtier.PricingTierParams{
PricingTierId: "enterprise",
Name: "Enterprise",
Description: "Grants the tenant access to enterprise features with no usage restrictions",
})
PricingTier createdPricingTier = client.createPricingTier(new PricingTier("enterprise", "Enterprise", "Grants the tenant access to enterprise features with no usage restrictions"));
const createdPricingTier = await warrantClient.PricingTier.create({
pricingTierId: "enterprise",
name: "Enterprise",
description:
"Grants the tenant access to enterprise features with no usage restrictions",
});
created_pricing_tier = warrant.PricingTier.create("enterprise", "Enterprise", "Grants the tenant access to enterprise features with no usage restrictions")
created_pricing_tier = Warrant::PricingTier.create(
pricing_tier_id: "enterprise",
name: "Enterprise",
description: "Grants the tenant access to enterprise features with no usage restrictions"
)
warrant create pricing-tier enterprise
Response
{
"pricingTierId": "enterprise",
"name": "Enterprise",
"description": "Grants the tenant access to enterprise features with no usage restrictions"
}