THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
to avoid Syncope core populating the HTTP response with the created user entry.
Update user
Code Block |
---|
curl -X POST -u admin:password -H "Accept: application/json" -H "Content-Type: application/json" --data @/tmp/updateuser.json http://localhost:9080/syncope/rest/users/100 |
where 100 is the id of the user to be deleted and /tmp/updateuser.json
looks like:
Code Block | ||
---|---|---|
| ||
{
"id": 100,
"username": "newUsername",
"password": "updatedPassword",
"attributesToRemove": [
"surname"
],
"attributesToUpdate": [
{
"schema": "surname",
"valuesToBeAdded": [
"New surname"
],
"valuesToBeRemoved": []
}
]
} |
You might want to add
Panel |
---|
-H "Prefer: return-no-content" |
...