POST
/
api
/
admin
/
recalculate-tiers
Recalculate all user tiers
curl --request POST \
  --url http://localhost:4000/api/admin/recalculate-tiers \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "data": {
    "usersUpdated": 123,
    "changes": {
      "upgrades": 123,
      "downgrades": 123
    }
  }
}
EOF < /dev/null

Authorizations

Authorization
string
header
required

Dynamic authentication JWT token

Response

200 - application/json

Tiers recalculated

The response is of type object.