---
title: "Changes to Update an API key"
method: PATCH
path: "/v2/api_keys/{api_key_id}"
---

# Changes to Update an API key

`PATCH /v2/api_keys/{api_key_id}`

> Every recorded change to this endpoint, newest first.

## Timeline

Changed in 2 of 7 revisions.

- **2026-08-08** `e85040b266cc` — 1 breaking, 6 info
- **2026-08-05** `fca567a46b3a` — 1 warning

## Changes

- **2026-08-08** `e85040b266cc` — 1 breaking, 6 info
  - the `api_key_role` response's property type changed from `string` to no type for status `200`
  - added the non-success response with the status `404`
  - added `#/components/schemas/ApiKeyRole` to the `api_key_role` response property `allOf` list for the response status `200`
  - removed the `personal` enum value from the `api_key_role` response property for the response status `200`
  - removed the `serving` enum value from the `api_key_role` response property for the response status `200`
  - removed the `serving_and_indexing` enum value from the `api_key_role` response property for the response status `200`
  - response property `api_key_role` reactivated
- **2026-08-05** `fca567a46b3a` — 1 warning
  - added the new `agent_end_user` enum value to the `agent_roles/items/role` response property for the response status `200`

---

[Operation](https://skmtc.dev/vectara/apis/vectara-rest-api-v2/docs/v2/api_keys/:api_key_id/patch.md) · [API](https://skmtc.dev/vectara/apis/vectara-rest-api-v2.md) · [Page](https://skmtc.dev/vectara/apis/vectara-rest-api-v2/changes/v2/api_keys/:api_key_id/patch)
