---
title: "Edit a key/value"
method: PUT
path: "/keyvalues/{id}"
tags: ["Utility"]
---

# Edit a key/value

`PUT /keyvalues/{id}`

Replaces the KeyValue resource.

## Path parameters

- `id` string, required

## Request body

- KeyValueEdit
  - `value` string, required — TODOSWAGGER
  - `isPublic` boolean, nullable — If a key/value is declared as "public", access will be available to this resource with the verb GET and without any authentication. Otherwise, an oAuth token will be required.

## Response `200`

KeyValue resource updated

- KeyValueRead
  - `value` string, required — TODOSWAGGER
  - `isProtected` boolean, nullable — If a key/value is declared as "protected", no update will be authorized unless it is done by a super admin account.
  - `isPublic` boolean, nullable — If a key/value is declared as "public", access will be available to this resource with the verb GET and without any authentication. Otherwise, an oAuth token will be required.
  - `id` string, required — This is the unique identifier of the resource
  - `dateModified` string, date-time, nullable — This is an ISO datetime
  - `dateCreated` string, date-time, nullable — This is an ISO datetime

## Other responses

- `400` — Invalid input
- `404` — Resource not found
- `422` — Unprocessable entity

---

[API](https://skmtc.dev/quable/apis/quable-pim-api-documentation-v5.md) · [All operations](https://skmtc.dev/quable/apis/quable-pim-api-documentation-v5/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/quable/quable-pim-api-documentation-v5/revisions/1641096abb34/schema)
