# rip.pds.admin.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.admin.resetPassword)
- [Documentation](https://lexicon.garden/lexicon/did:plc:w24v65i3bcsxk6mbbgfdukve/rip.pds.admin.resetPassword/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:w24v65i3bcsxk6mbbgfdukve/rip.pds.admin.resetPassword/examples)

## Definitions

### `rip.pds.admin.resetPassword`

**Type**: `procedure`

Issue a new password for any live account on this server, whoever holds it. Operators only.

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `did` | `string` (did) | Yes |  |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `account` | `ref` → `rip.pds.admin.defs#accountView` | Yes |  |
| `password` | `string` | Yes | Shown once. |
| `pdsEndpoint` | `string` (uri) | Yes |  |

#### Errors

- **NotAnOperator**: The calling account does not operate this server.
- **AccountNotFound**: No live account with that DID.
- **ResetFailed**: The PDS refused the change.

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Issue a new password for any live account on this server, whoever holds it. Operators only.",
      "errors": [
        {
          "description": "The calling account does not operate this server.",
          "name": "NotAnOperator"
        },
        {
          "description": "No live account with that DID.",
          "name": "AccountNotFound"
        },
        {
          "description": "The PDS refused the change.",
          "name": "ResetFailed"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "did": {
              "format": "did",
              "type": "string"
            }
          },
          "required": [
            "did"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "account": {
              "ref": "rip.pds.admin.defs#accountView",
              "type": "ref"
            },
            "password": {
              "description": "Shown once.",
              "type": "string"
            },
            "pdsEndpoint": {
              "format": "uri",
              "type": "string"
            }
          },
          "required": [
            "account",
            "password",
            "pdsEndpoint"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "rip.pds.admin.resetPassword",
  "lexicon": 1
}
```
