Reset the password for a user in a realm
PUThttps://demo.openremote.io/api/master/user/:realm/reset-password/:userId
Reset the password for a user in a realm
Request
Path Parameters
realm stringrequired
userId stringrequired
Header Parameters
Authorization string
X-Forwarded-Proto string
X-Forwarded-Host string
- application/json
Body
typestring
valuestring
temporaryboolean
Responses
- default
default response
- application/json
- Schema
Schema
Authorization: oauth2
name: openidtype: oauth2flows: {
"clientCredentials": {
"tokenUrl": "/auth/realms/master/protocol/openid-connect/token",
"refreshUrl": "/auth/realms/master/protocol/openid-connect/token",
"scopes": {
"profile": "profile"
}
},
"authorizationCode": {
"authorizationUrl": "/auth/realms/master/protocol/openid-connect/auth",
"tokenUrl": "/auth/realms/master/protocol/openid-connect/token",
"refreshUrl": "/auth/realms/master/protocol/openid-connect/token",
"scopes": {
"profile": "profile"
}
}
}
- curl
- nodejs
- java
- python
- ruby
- csharp
- go
- php
- powershell
- CURL
curl -L -X PUT 'https://demo.openremote.io/api/master/user/:realm/reset-password/:userId' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <token>' \
-d '{
"type": "string",
"value": "string",
"temporary": true
}'
ResponseClear