Update a user in a realm
PUThttps://demo.openremote.io/api/master/user/:realm/users
Update a user in a realm
Request
Path Parameters
realm stringrequired
Header Parameters
Authorization string
X-Forwarded-Proto string
X-Forwarded-Host string
- application/json
Body
realmstring
realmIdstring
idstring
firstNamestring
lastNamestring
emailstring
enabledboolean
createdOndate-time
secretstring
attributes object
serviceAccountboolean
usernamestring
Possible values: >= 3 characters
and <= 255 characters
, Value must match regular expression ^(?=[\p{IsLatin}|\p{IsCommon}]+$)(?=[^<>&"'\s\v\h$%!#?§,;:*~/\\|^=\[\]{}()
\p{Cntrl}]+$).*$`
Responses
- default
default response
- application/json
- Schema
- Example (auto)
Schema
realmstring
realmIdstring
idstring
firstNamestring
lastNamestring
emailstring
enabledboolean
createdOndate-time
secretstring
attributes object
serviceAccountboolean
usernamestring
Possible values: >= 3 characters
and <= 255 characters
, Value must match regular expression ^(?=[\p{IsLatin}|\p{IsCommon}]+$)(?=[^<>&"'\s\v\h$%!#?§,;:*~/\\|^=\[\]{}()
\p{Cntrl}]+$).*$`
{
"realm": "string",
"realmId": "string",
"id": "string",
"firstName": "string",
"lastName": "string",
"email": "string",
"enabled": true,
"createdOn": "2024-07-29T15:51:28.071Z",
"secret": "string",
"attributes": {},
"serviceAccount": true,
"username": "string"
}
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/users' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <token>' \
-d '{
"realm": "string",
"realmId": "string",
"id": "string",
"firstName": "string",
"lastName": "string",
"email": "string",
"enabled": true,
"createdOn": "2024-07-29T15:51:28.071Z",
"secret": "string",
"attributes": {},
"serviceAccount": true,
"username": "string"
}'
ResponseClear