Create a Pricing Tier
Create a new pricing tier.
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 Object endpoint instead.
Endpoint
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",
})
Map<String, Object> tierMeta = new HashMap<String, Object>();
tierMeta.put("name", "Enterprise");
tierMeta.put("description", "Grants the tenant access to enterprise features with no usage restrictions");
PricingTier createdPricingTier = client.createPricingTier(new PricingTier("enterprise", tierMeta));
const createdPricingTier = await warrantClient.PricingTier.create({
pricingTierId: "enterprise",
meta: {
name: "Enterprise",
description: "Grants the tenant access to enterprise features with no usage restrictions"
}
});
created_pricing_tier = warrant.PricingTier.create("enterprise", {"name": "Enterprise", "description": "Grants the tenant access to enterprise features with no usage restrictions"})
created_pricing_tier = Warrant::PricingTier.create({
pricing_tier_id: "enterprise",
meta: {
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"
}