---
title: "Update an API key (rename or reactivate)"
method: PUT
path: "/apikey/{id}"
tags: ["API Keys"]
---

# Update an API key (rename or reactivate)

`PUT /apikey/{id}`

## Request

- Base URL: `http://localhost:5000/api/v1`
- URL: `http://localhost:5000/api/v1/apikey/{id}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/scrubbe/apis/scrubbe-api/docs/apikey/:id/put.ts> (a function with typed inputs; its response is checked against the schema)

## Request body

- object
  - `name` string
  - `isActive` boolean

---

[API](https://skmtc.dev/scrubbe/apis/scrubbe-api.md) - [All operations](https://skmtc.dev/scrubbe/apis/scrubbe-api/llms.txt) - [OpenAPI document](https://skmtc.dev/scrubbe/apis/scrubbe-api/revisions/45bb33d61b7e?raw)
