cURL
curl --request POST \ --url https://api.example.com/api/rate-limits/overrides \ --header 'Authorization: <authorization>' \ --header 'Content-Type: application/json' \ --data ' { "client_id": "<string>", "allowed_limit": 123, "window_seconds": 123, "is_active": true } '
Create a client-specific rate limit override (admin only)
Bearer <admin_token>
curl -X POST https://api.sari-platform.com/api/rate-limits/overrides \ -H "Authorization: Bearer <admin_token>" \ -H "Content-Type: application/json" \ -d '{ "client_id": "550e8400-e29b-41d4-a716-446655440000", "allowed_limit": 5000, "window_seconds": 3600, "is_active": true }'
{ "id": 1, "client_id": "550e8400-e29b-41d4-a716-446655440000", "allowed_limit": 5000, "window_seconds": 3600, "is_active": true, "created_at": "2024-01-15T10:00:00Z" }