Set Override
Create or update an override to set specific limits for an identifier.
There is no update
endpoint. Instead you should call this endpoint again to overwrite your override.
Changelog
Date | Changes |
---|---|
Nov 25 2024 | Introduced endpoint |
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
Identifier of your user, this can be their userId, an email, an ip or anything else. Wildcards ( * ) can be used to match multiple identifiers, More info can be found at https://www.unkey.com/docs/ratelimiting/overrides#wildcard-rules
3
How many requests may pass in a given window.
x > 0
The window duration in milliseconds
x > 1000
The id of the namespace. Either namespaceId or namespaceName must be provided
Namespaces group different limits together for better analytics. You might have a namespace for your public API and one for internal tRPC routes. Wildcards can also be used, more info can be found at https://www.unkey.com/docs/ratelimiting/overrides#wildcard-rules
Async will return a response immediately, lowering latency at the cost of accuracy.
Response
The id of the override. This is used internally
Was this page helpful?