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