---
title: "Changes to Toggle My Api Key Active"
method: PATCH
path: "/api/me/api-keys/{key_id}/active"
---

# Changes to Toggle My Api Key Active

`PATCH /api/me/api-keys/{key_id}/active`

> Every recorded change to this endpoint, newest first.

## Timeline

Changed in 1 of 11 revisions.

- **2026-03-22** `6dc2d6f33d44` — 4 breaking, 13 info

## Changes

- **2026-03-22** `6dc2d6f33d44` — 4 breaking, 13 info
  - response property `expires_at` list-of-types was widened by adding types `null` to media type `application/json` of response `200`
  - response property `last_used_at` list-of-types was widened by adding types `null` to media type `application/json` of response `200`
  - response property `scopes` list-of-types was widened by adding types `null` to media type `application/json` of response `200`
  - the `created_at` response's property type/format changed from `string`/`date-time` to `string`/`` for status `200`
  - api operation id `toggle_my_api_key_active_api_me_api_keys__key_id__active_patch` was added
  - the endpoint scheme security `HTTPBearer` was added to the API
  - api tag `user-settings` added
  - api tag `API Keys` removed
  - added the non-success response with the status `422`
  - removed the non-success response with the status `401`
  - removed the non-success response with the status `404`
  - the response property `created_at` became required for the status `200`
  - the response property `id` became required for the status `200`
  - the response property `is_active` became required for the status `200`
  - the response property `key_prefix` became required for the status `200`
  - the response property `name` became required for the status `200`
  - the `total_requests` response's property default value `0` was added for the status `200`

---

[Operation](https://skmtc.dev/fim-ai/apis/fim-one-api/docs/api/me/api-keys/:key_id/active/patch.md) · [API](https://skmtc.dev/fim-ai/apis/fim-one-api.md) · [Page](https://skmtc.dev/fim-ai/apis/fim-one-api/changes/api/me/api-keys/:key_id/active/patch)
