Update rate limit override (Platform Admin)

Configure rate limit overrides for an API key. Only platform administrators can use this endpoint.

Path Parameters
  • keyId
    Type: string
    required

    API key ID to configure

Body
required
application/json
  • rateLimitEnabled
    Type: boolean
    required

    Enable or disable rate limiting

  • rateLimitMax
    Type: integer

    Max requests per window

  • rateLimitWindow
    Type: integer

    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
  }
}