---
title: "PUT /users/{emailAddress}/passwordEncryptedPrivateKey"
method: PUT
path: "/users/{emailAddress}/passwordEncryptedPrivateKey"
---

# PUT /users/{emailAddress}/passwordEncryptedPrivateKey

`PUT /users/{emailAddress}/passwordEncryptedPrivateKey`

Updates a user's private key, using their email address as key. In the case of failure a rejected promise is returned to the caller.

## Path parameters

- `emailAddress` string, required

## Request body

- object
  - `user` string
  - `token` string

## Response `200`

Successful operation

- object
  - `emailAddress` string
  - `user` string

## Other responses

- `400` — Bad Request.
- `500` — Unable to fullfil request due to internal server error.

## Changes

> 50 revisions in range; 22 could not be searched.

- **2024-06-27** `a8014c95ed0a` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/unlock-protocol/apis/unlock-locksmith/changes/users/:emailAddress/passwordEncryptedPrivateKey/put.md)

---

[API](https://skmtc.dev/unlock-protocol/apis/unlock-locksmith.md) · [All operations](https://skmtc.dev/unlock-protocol/apis/unlock-locksmith/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/unlock-protocol/unlock-locksmith/revisions/e003b998de45/schema)
