# rip.pds.account.resetPassword

> Published by [pds.rip](https://lexicon.garden/identity/did:plc:w24v65i3bcsxk6mbbgfdukve)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:w24v65i3bcsxk6mbbgfdukve/rip.pds.account.resetPassword)
- [Documentation](https://lexicon.garden/lexicon/did:plc:w24v65i3bcsxk6mbbgfdukve/rip.pds.account.resetPassword/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:w24v65i3bcsxk6mbbgfdukve/rip.pds.account.resetPassword/examples)

## Definitions

### `rip.pds.account.resetPassword`

**Type**: `procedure`

Issue a new password for an account the calling account owns. The old password is not recoverable and is replaced outright. Existing sessions on the account are not revoked.

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `did` | `string` (did) | Yes | The account to issue a new password for. |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `account` | `ref` → `rip.pds.account.defs#accountView` | Yes |  |
| `password` | `string` | Yes | Shown once. The server does not store it in a recoverable form, so losing this means resetting again. |
| `pdsEndpoint` | `string` (uri) | Yes |  |

#### Errors

- **AccountNotFound**: No live account with that DID was minted by the caller.
- **ResetFailed**: The PDS refused the change.

## Raw Schema

```json
{
  "id": "rip.pds.account.resetPassword",
  "defs": {
    "main": {
      "type": "procedure",
      "input": {
        "schema": {
          "type": "object",
          "required": [
            "did"
          ],
          "properties": {
            "did": {
              "type": "string",
              "format": "did",
              "description": "The account to issue a new password for."
            }
          }
        },
        "encoding": "application/json"
      },
      "errors": [
        {
          "name": "AccountNotFound",
          "description": "No live account with that DID was minted by the caller."
        },
        {
          "name": "ResetFailed",
          "description": "The PDS refused the change."
        }
      ],
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "account",
            "password",
            "pdsEndpoint"
          ],
          "properties": {
            "account": {
              "ref": "rip.pds.account.defs#accountView",
              "type": "ref"
            },
            "password": {
              "type": "string",
              "description": "Shown once. The server does not store it in a recoverable form, so losing this means resetting again."
            },
            "pdsEndpoint": {
              "type": "string",
              "format": "uri"
            }
          }
        },
        "encoding": "application/json"
      },
      "description": "Issue a new password for an account the calling account owns. The old password is not recoverable and is replaced outright. Existing sessions on the account are not revoked."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
