---
agentTools:
  projectIndex: https://evolutionscript.readme.io/llms.txt
---

# Change password

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Api with Access Token",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://yoursite.com/api/"
    }
  ],
  "security": [
    {}
  ],
  "paths": {
    "/user/update/password": {
      "post": {
        "summary": "Change password",
        "description": "",
        "operationId": "change-password",
        "parameters": [
          {
            "name": "Authentication",
            "in": "header",
            "description": "Ex: Bearer {access_token} should be replaced with the user access token.",
            "required": true,
            "schema": {
              "type": "string",
              "default": "Bearer {access_token}"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "required": [
                  "new_password",
                  "password"
                ],
                "properties": {
                  "new_password": {
                    "type": "string",
                    "description": "It must be at least 6 characters in length."
                  },
                  "password": {
                    "type": "string",
                    "description": "User password or Two-Factor code if it is active."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  status:\"success\",\n  message: \"OK\"\n}"
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  status:\"error\",\n  message: \"invalidrequest\"\n}"
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true,
  "_id": "65bd0d9a8cfebc004220b8d8:65c5cad34182910016a96db6"
}
```