Update rate limit override (Platform Admin)
Configure rate limit overrides for an API key. Only platform administrators can use this endpoint.
Path Parameters
- Type: stringkey
Id requiredAPI key ID to configure
Body
required
application/json
- Type: booleanrate
Limit Enabled requiredEnable or disable rate limiting
- Type: integerrate
Limit Max Max requests per window
- Type: integerrate
Limit Window Window size in seconds
Responses
- application/json
- application/json
- 403
Only platform administrators can access this endpoint
- application/json
Request Example for put/auth/api-keys/{keyId}/rate-limit
curl 'https://api.gpcn.com/v1/auth/api-keys/{keyId}/rate-limit' \
--request PUT \
--header 'Content-Type: application/json' \
--header 'X-API-Key: YOUR_SECRET_TOKEN' \
--data '{
"rateLimitEnabled": true,
"rateLimitMax": 1,
"rateLimitWindow": 1
}'
{
"success": true,
"data": {
"id": "string",
"rateLimitEnabled": true,
"rateLimitMax": 1,
"rateLimitWindow": 1
}
}.png)