cURL
curl --request PUT \ --url https://api.example.com/api/rate-limits/tiers/{tier} \ --header 'Authorization: <authorization>' \ --header 'Content-Type: application/json' \ --data ' { "allowed_limit": 123, "window_seconds": 123, "is_active": true } '
Update a rate limit tier (admin only)
Bearer <admin_token>
curl -X PUT https://api.sari-platform.com/api/rate-limits/tiers/client \ -H "Authorization: Bearer <admin_token>" \ -H "Content-Type: application/json" \ -d '{ "allowed_limit": 2000, "is_active": true }'
{ "tier": "client", "allowed_limit": 2000, "window_seconds": 3600, "is_active": true, "updated_at": "2024-01-16T12:00:00Z" }