recomputeCustomerTiers
Requires at least one of the permissions settings:customer_tiers:update or settings:tenant:update.
Re-evaluates the tier of every unlocked customer and returns how many were upgraded. It returns 0 when the module or automatic tiering is off. Requires permission to update customer tier or tenant settings.
Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.
Example:
- GraphQL
- cURL
mutation RecomputeCustomerTiers {
recomputeCustomerTiers
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "mutation RecomputeCustomerTiers {\n recomputeCustomerTiers\n}"
}
EOF
Response:
{
"data": {
"recomputeCustomerTiers": 0
}
}
recomputeCustomerTiers: Int!
Type
Int scalar
The Int scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.