---
title: "PUT /api/user/preferences"
method: PUT
path: "/api/user/preferences"
tags: ["User"]
---

# PUT /api/user/preferences

`PUT /api/user/preferences`

PUT operation for /api/user/preferences

## Path parameters

- `key` string, required

## Headers

- `X-EDH-USER` string, required
- `X-EDH-TOKEN` string, required

## Request body

- object
  - `value` unknown, required

## Response `200`

Preference set successfully, returns the resolved preference with metadata

- object
  - `success` boolean
  - `message` object — Resolved preference with value, metadata, and source

## Other responses

- `400` — No authenticated user, missing key in URL, missing value in body, or validation error
- `401` — Authentication required

---

[API](https://skmtc.dev/aws-samples/apis/engineering-development-hub-edh-api.md) · [All operations](https://skmtc.dev/aws-samples/apis/engineering-development-hub-edh-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/aws-samples/engineering-development-hub-edh-api/revisions/058396b8f0f1/schema)
