---
title: "Changes to Update an API key"
method: PATCH
path: "/v1/account/keys/{key_id}"
---

# Changes to Update an API key

`PATCH /v1/account/keys/{key_id}`

> Every recorded change to this operation, newest first.

## Timeline

Changed in 1 of 4 revisions.

- **2026-11-03** `b697d49fa1f9`: 20 breaking, 8 warning, 16 info

## Changes

- **2026-11-03** `b697d49fa1f9`: 20 breaking, 8 warning, 16 info
  - for the `path` request parameter `key_id`, the format changed from no format to `int64`
  - request property `credit_limit` list-of-types was narrowed by removing types `null` from media type `application/json`
  - request property `expires_at` list-of-types was narrowed by removing types `null` from media type `application/json`
  - request property `is_enabled` list-of-types was narrowed by removing types `null` from media type `application/json`
  - request property `name` list-of-types was narrowed by removing types `null` from media type `application/json`
  - the response property `credit_limit` became nullable for the status `200`
  - the response property `expires_at` became nullable for the status `200`
  - the `created_at` response's property format changed from `date-time` to no format for status `200`
  - the `error` response's property type changed from `object` to no type for status `400`
  - the `error` response's property type changed from `object` to no type for status `401`
  - the `error` response's property type changed from `object` to no type for status `500`
  - the `error` response's property type changed from `object` to no type for status `503`
  - removed the required property `error/message` from the response with the `400` status
  - removed the required property `error/message` from the response with the `401` status
  - removed the required property `error/message` from the response with the `500` status
  - removed the required property `error/message` from the response with the `503` status
  - removed the required property `error/type` from the response with the `400` status
  - removed the required property `error/type` from the response with the `401` status
  - removed the required property `error/type` from the response with the `500` status
  - removed the required property `error/type` from the response with the `503` status
  - removed the optional property `error/code` from the response with the `400` status
  - removed the optional property `error/code` from the response with the `401` status
  - removed the optional property `error/code` from the response with the `500` status
  - removed the optional property `error/code` from the response with the `503` status
  - removed the optional property `error/param` from the response with the `400` status
  - removed the optional property `error/param` from the response with the `401` status
  - removed the optional property `error/param` from the response with the `500` status
  - removed the optional property `error/param` from the response with the `503` status
  - api operation id `updateApiKey` removed and replaced with `update_api_key`
  - added the new optional request property `default_routing_strategy`
  - the request property `credit_limit` became nullable
  - the request property `expires_at` became nullable
  - removed the non-success response with the status `402`
  - removed the non-success response with the status `403`
  - removed the non-success response with the status `410`
  - removed the non-success response with the status `422`
  - removed the non-success response with the status `429`
  - added `#/components/schemas/ErrorBody` to the `error` response property `allOf` list for the response status `400`
  - added `#/components/schemas/ErrorBody` to the `error` response property `allOf` list for the response status `401`
  - added `#/components/schemas/ErrorBody` to the `error` response property `allOf` list for the response status `500`
  - …4 more

---

[Operation](https://skmtc.dev/naga/apis/nagaai-api/docs/v1/account/keys/:key_id/patch.md) - [API](https://skmtc.dev/naga/apis/nagaai-api.md) - [Page](https://skmtc.dev/naga/apis/nagaai-api/changes/v1/account/keys/:key_id/patch)
