---
title: "Update one or more fields of a key resource"
method: PUT
path: "/v1/config/keys/{id}"
tags: ["Keys"]
---

# Update one or more fields of a key resource

`PUT /v1/config/keys/{id}`

Updates all of the fields described in the request body of the specified key. Fields left out of the body will remain unaffected.

## Path parameters

- `id` string, required — The ID of the key

## Request body

- KeysPut
  - `name` string — A user friendly name for the key

## Response `200`

The update was successful; the key resource is returned with updated fields.

- KeyResource
  - `id` string — The ID of the key
  - `key` string — A secret key which can be used to authenticate requests to Mezmo.
  - `name` string — A user friendly name for the key
  - `type` 'ingestion' | 'service' — The type of the key
  - `created` integer — The time the key was created as a Unix timestamp in milliseconds

## Other responses

- `400` — The supplied request is invalid or malformed.
- `404` — The specified key was not found.

---

[API](https://skmtc.net/mezmo/apis/pipeline-api.md) · [All operations](https://skmtc.net/mezmo/apis/pipeline-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/mezmo/pipeline-api/revisions/fb2535545d90/schema)
