Skip to main content

v0/endpoints/{id}/rate-limits REST API Endpoint

Updates rate limits.

Updated on
Sep 27, 2024

v0/endpoints/{id}/rate-limits REST API Endpoint

Path Parameters

id
string
REQUIRED
The unique identifier for the specific endpoint

Body Parameters

rate_limits
object
REQUIRED
Contains the rate limit configurations that you want to set
rps
string
Specifies the maximum number of requests allowed per second
rpd
string
Specifies the maximum number of requests allowed per day
rpm
string
Specifies the maximum number of requests allowed per minute

Returns

data
object
The data object which contains the following fields:
limits
object
The limits object which contains the following fields:
rps
integer
The maximum number of requests allowed per second
rpd
integer
The maximum number of requests allowed per day
rpm
integer
The maximum number of requests allowed per minute
error
string
A field containing an error message if any issue occurs
Request
1
curl -X 'PUT' \
2
'https://api.quicknode.com/v0/endpoints/{id}/rate-limits' \
3
-H 'accept: */*' \
4
-H 'x-api-key: YOUR_API_KEY' \
5
-H 'Content-Type: application/json' \
6
-d '{
7
"rate_limits": {
8
"rps": 300
9
}
10
}'
11
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free