---
title: "Create a key/value"
method: POST
path: "/keyvalues"
tags: ["Utility"]
---

# Create a key/value

`POST /keyvalues`

Creates a KeyValue resource.

## Request body

- KeyValueCreate
  - `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

## Response `201`

KeyValue resource created

- 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
- `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)
