v1

latestOpenAPI 3.1.02026-08-046031.9 KB
Team Management

Update API Key

Updates an existing API key's name and/or rate limit. Only API keys belonging to the authenticated team can be updated.

put/api-keys/{id}

Path parameters

idstring required

The unique identifier of the API key to update.

Request body

namestring

Optional new name for the API key

rateLimitinteger

Optional new rate limit for the API key (requests per second)

budgetCentsinteger nullable

Optional new spending budget for the API key, in cents. Set to null to remove the budget.

Example request

{
  "name": "Updated Production Key",
  "rateLimit": 2000,
  "budgetCents": 5000
}

Response

API key updated successfully