---
title: "Sets a generated password for a user"
method: POST
path: "/users/{id}/password"
tags: ["Users"]
---

# Sets a generated password for a user

`POST /users/{id}/password`

Sets a generated password for a user

## Path parameters

- `id` string, required

## Response `202`

Password setting processed

## Other responses

- `400` — Request rejected due to invalid parameters supplied
- `401` — Authentication information is missing or invalid
- `404` — User not found
- `500` — Failed to process the request due to an internal error

---

[API](https://skmtc.net/office-of-national-statistics/apis/identity-api.md) · [All operations](https://skmtc.net/office-of-national-statistics/apis/identity-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/office-of-national-statistics/identity-api/versions/6472459b6b03/schema)
