Skip to main content

Assign Pricing Tier to a Tenant

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

POST /v1/tenants/:tenantId/pricing-tiers/:pricingTierId

Parameters

ParameterDescriptionTypeRequired
tenantIdThe tenantId of the tenant you want to assign the pricing tier to.URL paramyes
pricingTierIdThe pricingTierId of the pricing tier you want to assign to the tenant.URL paramyes

Request

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

Response

{
"objectType": "pricing-tier",
"objectId": "enterprise-tier",
"relation": "member",
"subject": {
"objectType": "tenant",
"objectId": "my-tenant"
}
}