Python
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": {} } ] }
Normal users can update only theirs own password, admin users can change any user password
Show child attributes
User is not allowed to make a change
Was this page helpful?