updateUser #
Updates a user definition.
Query Syntax #
HTTP #
URL: http://kuzzle:7512/users/<_id>/_update[?refresh=wait_for]
Method: PUT
Body:
{
"fullname": "Walter Smith"
}
Other protocols #
{
"controller": "security",
"action": "updateUser",
"_id": "<kuid>",
"body": {
"fullname": "Walter Smith"
}
}
Arguments #
_id
: user kuid
Optional: #
refresh
: if set towait_for
, Kuzzle will not respond until the user changes are indexed
Response #
Returns the update user kuid and version number.
{
"status": 200,
"error": null,
"action": "updateUser",
"controller": "security",
"requestId": "<unique request identifier>",
"result": {
"_id": "<kuid>",
"_version": 2
}
}
Edit this page on Github(opens new window)