---
title: "Changes to Replace an API key's scopes."
method: PUT
path: "/api/api-keys/{keyId}/scopes"
---

# Changes to Replace an API key's scopes.

`PUT /api/api-keys/{keyId}/scopes`

> Every recorded change to this operation, newest first.

## Timeline

Changed in 6 of 116 revisions.

- **2026-10-10** `c4f85daa9208`: 16 info
- **2026-10-10** `bcd644347f8e`: 3 info
- **2026-10-06** `0390610d039d`: 1 info
- **2026-10-05** `4082c17721d8`: 6 breaking, 6 info
- **2026-10-05** `b877962e047e`: 4 info
- **2026-10-05** `89b2d9d7eb05`: 1 info

## Changes

- **2026-10-10** `c4f85daa9208`: 16 info
  - added the optional property `field` to the response with the `400` status
  - added the optional property `field` to the response with the `401` status
  - added the optional property `field` to the response with the `403` status
  - added the optional property `field` to the response with the `409` status
  - added the optional property `field` to the response with the `413` status
  - added the optional property `field` to the response with the `415` status
  - added the optional property `field` to the response with the `500` status
  - added the optional property `field` to the response with the `503` status
  - added the optional property `reason` to the response with the `400` status
  - added the optional property `reason` to the response with the `401` status
  - added the optional property `reason` to the response with the `403` status
  - added the optional property `reason` to the response with the `409` status
  - added the optional property `reason` to the response with the `413` status
  - added the optional property `reason` to the response with the `415` status
  - added the optional property `reason` to the response with the `500` status
  - added the optional property `reason` to the response with the `503` status
- **2026-10-10** `bcd644347f8e`: 3 info
  - added the optional property `clientAddress` to the response with the `200` status
  - added the optional property `current` to the response with the `200` status
  - added the optional property `userAgent` to the response with the `200` status
- **2026-10-06** `0390610d039d`: 1 info
  - added the non-success response with the status `409`
- **2026-10-05** `4082c17721d8`: 6 breaking, 6 info
  - removed the media type `*/*` for the response with the status `400`
  - removed the media type `*/*` for the response with the status `401`
  - removed the media type `*/*` for the response with the status `413`
  - removed the media type `*/*` for the response with the status `415`
  - removed the media type `*/*` for the response with the status `500`
  - removed the media type `*/*` for the response with the status `503`
  - added the media type `application/json` for the response with the status `400`
  - added the media type `application/json` for the response with the status `401`
  - added the media type `application/json` for the response with the status `413`
  - added the media type `application/json` for the response with the status `415`
  - added the media type `application/json` for the response with the status `500`
  - added the media type `application/json` for the response with the status `503`
- **2026-10-05** `b877962e047e`: 4 info
  - added the optional property `expiresAt` to the response with the `200` status
  - added the optional property `idleExpiresAt` to the response with the `200` status
  - added the optional property `lastUsedAt` to the response with the `200` status
  - added the optional property `session` to the response with the `200` status
- **2026-10-05** `89b2d9d7eb05`: 1 info
  - endpoint added

---

[Operation](https://skmtc.dev/philterd/apis/philter-api/docs/api/api-keys/:keyId/scopes/put.md) - [API](https://skmtc.dev/philterd/apis/philter-api.md) - [Page](https://skmtc.dev/philterd/apis/philter-api/changes/api/api-keys/:keyId/scopes/put)
