Skip to main content
PATCH
/
api
/
users
/
{id}
Update user password
import requests

url = "https://{FUSION HOST}/api/users/{id}"

payload = {
    "password": { "empty": True },
    "passwordConfirm": { "empty": True }
}
headers = {"Content-Type": "application/json"}

response = requests.patch(url, json=payload, headers=headers)

print(response.json())
{
  "id": "<string>",
  "username": "<string>",
  "realmName": "<string>",
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z",
  "roleNames": [
    "<string>"
  ],
  "timezone": "<string>",
  "permissions": [
    {
      "methods": [
        "GET"
      ],
      "path": "<string>",
      "params": {}
    }
  ]
}

Body

application/json
password
object
required
passwordConfirm
object
required
currentPassword
object
id
string

Response

User is not allowed to make a change

id
string
username
string
realmName
string
createdAt
string<date-time>
updatedAt
string<date-time>
roleNames
string[]
timezone
string
permissions
object[]