pinstripes.
API Keys

Update API key

PATCH/auth/keys/{id}

Updates the label or RPM limit of an existing API key. Session token required. Only the fields you include are changed — omitted fields are left as-is.

Path parameters

ParameterTypeRequiredDescription
idintegerYesKey ID from the list keys response.

Request body

ParameterTypeRequiredDescription
labelstringNoNew label for the key.
rpm_limitintegerNoNew per-minute request cap. 0 = use account default (60 RPM).

Example

curl -X PATCH https://api.pinstripes.io/auth/keys/4 \
  -H "Authorization: Bearer <session-token>" \
  -H "Content-Type: application/json" \
  -d '{"label": "production", "rpm_limit": 120}'

Response

{
  "id": 4,
  "label": "production",
  "rpm_limit": 120
}