Change an expired password

Add MCP server to your AI tool

Allow AI tools and LLMs to interact with the API documentation portal through MCP.

MCP server URL

https://bump.sh/nethesis/doc/nethcti-middleware/mcp

Standard setup for AI tools providing an mcp.json file

mcp.json
{
  "NethVoice - NethCTI middleware MCP server": {
    "url": "https://bump.sh/nethesis/doc/nethcti-middleware/mcp"
  }
}

Close
POST /password/change

Public endpoint used when the login fails with password_expired. The current password authenticates the request on the account provider user portal. Passwords that are not expired are rejected, as this endpoint skips the 2FA verification of the login. On success all the login sessions of the user are logged out and their websockets closed; integration tokens (persistent tokens) stay valid.

application/json

Body Required

  • username string Required
  • current_password string Required
  • new_password string Required

Responses

  • 200 application/json

    Password changed (message password_changed)

    Hide response attributes Show response attributes object
    • code integer
    • message string
    • data
    • error string
  • 400 application/json

    Rejected: error_invalid_credentials, error_password_complexity, error_password_length, error_password_history, error_password_minimum_age, error_unknown or malformed request

    Hide response attributes Show response attributes object
    • code integer
    • message string
    • data
    • error string
  • 403 application/json

    The password is not expired (password_not_expired)

    Hide response attributes Show response attributes object
    • code integer
    • message string
    • data
    • error string
  • 503 application/json

    User portal not configured or unreachable (password_change_unavailable)

    Hide response attributes Show response attributes object
    • code integer
    • message string
    • data
    • error string
POST /password/change
curl \
 --request POST 'http://localhost:8080/password/change' \
 --header "Content-Type: application/json" \
 --data '{
  "username": "string",
  "current_password": "string",
  "new_password": "string"
}'
Request examples
{
  "username": "string",
  "current_password": "string",
  "new_password": "string"
}
Response examples (200)
{
  "code": 42,
  "message": "string",
  "error": "string"
}
Response examples (400)
{
  "code": 42,
  "message": "string",
  "error": "string"
}
Response examples (403)
{
  "code": 42,
  "message": "string",
  "error": "string"
}
Response examples (503)
{
  "code": 42,
  "message": "string",
  "error": "string"
}