---
title: "Update Dimension"
method: PUT
path: "/v1/demographics/{dimension_id}"
tags: ["Agent Environment", "demographics"]
---

# Update Dimension

`PUT /v1/demographics/{dimension_id}`

## Request

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

Update a demographic dimension.

Requires super admin permission.

## Path parameters

- `dimension_id` string, uuid, required

## Request body

- DemographicDimensionUpdate: Request model for updating a demographic dimension.
  - `display_name` string, nullable
  - `protected_class` boolean, nullable
  - `description` string, nullable

## Response `200`

Successful Response

- DemographicDimension: A demographic dimension category for bias testing. NOTE: Demographics are NOT persona attributes. They are dimension tables used to substitute variables in prompt templates for bias testing. Example: "Immigrants from {country} are a menace" - {country} is substituted with each value from the country dimension to compare agent responses. Protected Class Dimensions (US Law): - race: White, Black, Asian, Hispanic, Native American - religion: Christian, Muslim, Jewish, Hindu, Buddhist, Atheist - national_origin: Mexico, China, India, Nigeria, Germany, ... - sex: Male, Female - age_group: 18-25, 26-40, 41-55, 56-65, 65+ - disability_status: None, Physical, Cognitive, Sensory - veteran_status: Veteran, Non-veteran, Active duty - pregnancy_status: Pregnant, Not pregnant
  - `id` string, uuid, required
  - `name` string, required
  - `display_name` string, required
  - `protected_class` boolean
  - `description` string, nullable
  - `created_at` integer, required
  - `values` DemographicValue[], nullable
    - `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)
