curl --request PATCH \
--url https://{FUSION HOST}/api/users/{id} \
--header 'Content-Type: application/json' \
--data '{
"currentPassword": {
"empty": true
},
"password": {
"empty": true
},
"passwordConfirm": {
"empty": true
},
"id": "<string>"
}'
{
"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
curl --request PATCH \
--url https://{FUSION HOST}/api/users/{id} \
--header 'Content-Type: application/json' \
--data '{
"currentPassword": {
"empty": true
},
"password": {
"empty": true
},
"passwordConfirm": {
"empty": true
},
"id": "<string>"
}'
{
"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": {}
}
]
}
User is not allowed to make a change
The response is of type object
.
Was this page helpful?