Remove Pricing Tier from a User
Remove a pricing tier from a user.
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 Delete Warrant endpoint instead.
Endpoint
DELETE /v1/users/:userId/pricing-tiers/:pricingTierId
Parameters
Parameter | Description | Type | Required |
---|---|---|---|
userId | The userId of the user you want to remove the pricing tier from. | URL param | yes |
pricingTierId | The pricingTierId of the pricing tier you want to remove from the user. | URL param | yes |
Request
- cURL
- Go
- Java
- Node.js
- Python
- Ruby
- PHP
- CLI
curl "https://api.warrant.dev/v1/users/fs987balkshe/pricing-tiers/enterprise-tier" \
-X DELETE \
-H "Authorization: ApiKey YOUR_KEY"
wookie, err := pricingtier.RemovePricingTierFromUser("enterprise-tier", "fs987balkshe")
try {
client.removePricingTierFromUser("enterprise-tier", "fs987balkshe");
} catch (WarrantException e) {
// Handle error
}
// Class method
await warrantClient.PricingTier.removePricingTierFromTenant(
"my-tenant",
"enterprise-tier"
);
// Instance method
const tenant = await warrantClient.Tenant.get("my-tenant");
await tenant.removePricingTier("enterprise-tier");
# Class method
warrant.PricingTier.remove_from_user("fs987balkshe", "enterprise-tier")
# Instance method
user = warrant.User.get("d89sm4o9723")
user.remove_pricing_tier("enterprise-tier")
# Class method
Warrant::PricingTier.remove_from_user("fs987balkshe", "enterprise-tier")
# Instance method
user = Warrant::Tenant.get("fs987balkshe")
user.remove_pricing_tier("enterprise-tier")
Response
200 OK