Skip to main content

Assign a Pricing Tier to a User

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

POST /v1/users/:userId/pricing-tiers/:pricingTierId

Parameters

ParameterDescriptionTypeRequired
userIdThe userId of the user you want to assign the pricing tier to.URL paramyes
pricingTierIdThe pricingTierId of the pricing tier you want to assign to a user.URL paramyes

Request

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

Response

{
"objectType": "pricing-tier",
"objectId": "enterprise-tier",
"relation": "member",
"subject": {
"objectType": "user",
"objectId": "d89sm4o9723"
}
}