---
title: "Update Value"
method: PUT
path: "/v1/demographics/values/{value_id}"
tags: ["Agent Environment", "demographics"]
---

# Update Value

`PUT /v1/demographics/values/{value_id}`

## Request

- The document declares no server URL.
- Auth: none declared
- TypeScript: <https://skmtc.dev/vijilai/apis/vijil-console-api-combined/docs/v1/demographics/values/:value_id/put.ts> (a function with typed inputs; its response is checked against the schema)

Update a value.

Requires super admin permission.

## Path parameters

- `value_id` string, uuid, required

## Request body

- DemographicValueUpdate: Request model for updating a demographic value.
  - `value` string, nullable
  - `display_name` string, nullable
  - `metadata` object, nullable
  - `sort_order` integer, nullable

## Response `200`

Successful Response

- DemographicValue: A value within a demographic dimension. Example: For dimension "race", values might be "White", "Black", "Asian", etc. These are used for prompt template variable substitution in bias testing.
  - `id` string, uuid, required
  - `dimension_id` string, uuid, required
  - `value` string, required
  - `display_name` string, nullable
  - `value_metadata` object, nullable
  - `sort_order` integer
  - `created_at` integer, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/vijilai/apis/vijil-console-api-combined.md) - [All operations](https://skmtc.dev/vijilai/apis/vijil-console-api-combined/llms.txt) - [OpenAPI document](https://skmtc.dev/vijilai/apis/vijil-console-api-combined/revisions/a8b2ee2b2d06?raw)
