> **Source:** https://knowledge.leegality.com/sign-station/api/reset-password > **Site:** Leegality Knowledge Base — https://knowledge.leegality.com > **About:** Leegality is a document execution platform covering eSigning, stamps, NeSL, workflows, and REST API integration. > **Navigation:** Every article on this site has a plain-text version at `.txt` (this format). To get an index of all articles with their `.txt` links, read: https://knowledge.leegality.com/llms.txt > **AI Guide:** For instructions on how to navigate this knowledge base as an AI agent, read: https://knowledge.leegality.com/ai-readable.txt --- # PUT /api/v1/users/{id}/reset-password — Reset password for user Resets the password for the specified user. The password must comply with the organization's password policy. Returns the reset password. **Authentication:** `X-Auth-Token` header required on every request. ## Request URL ``` PUT https://app1.leegality.com/api/api/v1/users/{id}/reset-password ``` **Environments:** - Production: `https://app1.leegality.com/api/api/v1/users/{id}/reset-password` - Sandbox: `https://sandbox.leegality.com/api/api/v1/users/{id}/reset-password` --- ## Parameters | Name | In | Required | Type | Description | Example | |------|----|----------|------|-------------|---------| | `id` | path | Yes | string | ID of the user whose password is to be reset | — | --- ## Request Body **Content-Type:** `application/json` Password data | Field | Type | Required | Description | Example | |-------|------|----------|-------------|---------| | `password` | string | Yes | The new password to set for the user | — | ### Sample Request ```json { "password": "string" } ``` --- ## Responses ### 200 — Password reset successfully | Field | Type | Required | Description | Example | |-------|------|----------|-------------|---------| | `code` | string | No | Response status code | `LE_SS_702` | | `message` | string | No | Response message | `Password changed successfully.` | ### 400 — Invalid request data | Field | Type | Required | Description | Example | |-------|------|----------|-------------|---------| | `code` | string | No | Top-level error code | `LE_ERR_SS_400` | | `errors` | array\ | No | List of error details See **ErrorDetailResetPassword400VO** below. | — | #### ErrorDetailResetPassword400VO | Field | Type | Required | Description | Example | |-------|------|----------|-------------|---------| | `message` | string | No | Detailed error message | `Invalid value for field [password], Password cannot be blank` | | `path` | string | No | API path that generated the error | `/api/v1/users/f6b0449d-b866-4647-b5c5-9ce765eb1184/reset-pas` | ### 401 — Unauthorized - Invalid or expired token | Field | Type | Required | Description | Example | |-------|------|----------|-------------|---------| | `code` | string | No | Top-level error code | `LE_ERR_SS_401` | | `errors` | array\ | No | List of error details See **ErrorDetail401Unauthorized** below. | — | #### ErrorDetail401Unauthorized | Field | Type | Required | Description | Example | |-------|------|----------|-------------|---------| | `message` | string | No | Detailed error message | `Invalid or expired token` | | `path` | string | No | API path that generated the error | `/api/v1/*` | | `code` | string | No | Specific error code | `LE_ERR_SS_303` | ### 403 — Access denied | Field | Type | Required | Description | Example | |-------|------|----------|-------------|---------| | `code` | string | No | Top-level error code | `LE_ERR_SS_403` | | `errors` | array\ | No | List of error details See **ErrorDetailResetPassword403VO** below. | — | #### ErrorDetailResetPassword403VO | Field | Type | Required | Description | Example | |-------|------|----------|-------------|---------| | `message` | string | No | Detailed error message | `Access denied for the requested operation.` | | `path` | string | No | API path that generated the error | `/api/v1/users/{id}/reset-password` | | `code` | string | No | Specific error code | `LE_ERR_SS_007` | ### 404 — User not found | Field | Type | Required | Description | Example | |-------|------|----------|-------------|---------| | `code` | string | No | Top-level error code | `LE_ERR_SS_404` | | `errors` | array\ | No | List of error details See **ErrorDetailResetPassword404VO** below. | — | #### ErrorDetailResetPassword404VO | Field | Type | Required | Description | Example | |-------|------|----------|-------------|---------| | `message` | string | No | Detailed error message | `f6b0449d-b866-4647-b5c5-9ce765eb1183 does not exist.` | | `path` | string | No | API path that generated the error | `/api/v1/users/f6b0449d-b866-4647-b5c5-9ce765eb1183` | | `code` | string | No | Specific error code | `LE_ERR_SS_001` | ### 500 — Internal server error | Field | Type | Required | Description | Example | |-------|------|----------|-------------|---------| | `code` | string | No | Top-level error code | `LE_ERR_SS_500` | | `errors` | array\ | No | List of error details See **ErrorDetailToken500VO** below. | — | #### ErrorDetailToken500VO | Field | Type | Required | Description | Example | |-------|------|----------|-------------|---------| | `message` | string | No | Detailed error message | `Internal Server Error` | | `path` | string | No | API path that generated the error | `null` | | `code` | string | No | Specific error code | `null` | ### Sample Response (200) ```json { "code": "LE_SS_702", "message": "Password changed successfully." } ```