Update User
1 min
POST
{{url}}/aioc-rest-web/rest/user/saveUser
Header Parameters
- Content-TypestringExample
- X-XSRF-TOKENstringExample
Body Parameters
- bodystringExample
{ "id": "a177be61-8850-4f03-be1c-3ce275f02c1f", "eid": "testuser", "personelId": "123123", "name": "test", "passwordAlgorithm": "SHA256", "password": "123", "email": "[email protected]", "surname": "user", "internal": true, "properties": { "phoneNumber": "5550000000", "ubaThreshold": "50" }, "groups": [ "DEFAULT_GROUP_SYSYEM_ADMINS", "DEFAULT_GROUP_SYSYEM_USERS" ], "managerGroups": [], "lastLogin": null, "lastLoginIp": null, "recordLimit4Search": null, "passwordDirty": true, "passwordAutoGenerated": false, "phoneNumber": "5550000000", "forceChangePasswordOnNextLogin": false, "lockReason": null, "unlockOnPasswordChanged": false, "unlockTime": null, "tempUserEndTime": null, "tempUserStartTime": null, "tempUser": false, "externalDirectorySource": null, "userPropertyKey4Search": null, "userPropertyValue4Search": null, "locked": false }
Responses
200
curl
curl --request POST \
--url {{url}}/aioc-rest-web/rest/user/saveUser \
--header 'accept: application/json'javascript
var myHeaders = new Headers();
myHeaders.append("accept", "application/json");
var requestOptions = {
method: 'POST',
headers: myHeaders,
redirect: 'follow'
};
fetch("{{url}}/aioc-rest-web/rest/user/saveUser", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));ruby
require "uri"
require "net/http"
url = URI("{{url}}/aioc-rest-web/rest/user/saveUser")
http = Net::HTTP.new(url.host, url.port);
request = Net::HTTP::Post.new(url)
request["accept"] = "application/json"
response = http.request(request)
puts response.read_body
python
import requests
url = "{{url}}/aioc-rest-web/rest/user/saveUser"
payload = {}
headers = {
'accept': 'application/json'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
200
{
"id": "cdc00366-56b6-4874-bd8b-7862549510ab",
"eid": "testuser",
"personelId": "123123",
"name": "testtest",
"passwordAlgorithm": "MD5",
"password": "21232f297a57a5a743894a0e4a801fc3",
"email": "[email protected]",
"surname": "user",
"internal": true,
"properties": {
"phoneNumber": "5550000000",
"ubaThreshold": "50"
},
"groups": [
"DEFAULT_GROUP_SYSYEM_ADMINS",
"DEFAULT_GROUP_SYSYEM_USERS"
],
"managerGroups": null,
"lastLogin": null,
"lastLoginIp": null,
"recordLimit4Search": null,
"passwordDirty": false,
"passwordAutoGenerated": false,
"phoneNumber": "5550000000",
"forceChangePasswordOnNextLogin": false,
"lockReason": null,
"unlockOnPasswordChanged": false,
"unlockTime": null,
"tempUserEndTime": null,
"tempUserStartTime": null,
"tempUser": false,
"externalDirectorySource": null,
"userPropertyKey4Search": null,
"userPropertyValue4Search": null,
"locked": false
}