---
title: "Add or update legal value for the context field"
method: POST
path: "/api/admin/context/{contextField}/legal-values"
tags: ["Context"]
---

# Add or update legal value for the context field

`POST /api/admin/context/{contextField}/legal-values`

Endpoint that allows adding or updating a single custom context field legal value. If the legal value already exists, it will be updated with the new description

## Path parameters

- `contextField` string, required

## Request body

- LegalValueSchema — Describes a legal value. Typically used to limit possible values for contextFields or strategy properties
  - `value` string, required — The valid value
  - `description` string — Describes this specific legal value

## Response `200`

This response has no body.

---

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