updateSelf
Updates the currently logged in user information.
This route cannot update the list of associated security profiles. To change a user's security profiles, the route security:updateUser must be used instead.
Query Syntax
HTTP
URL: http://kuzzle:7512/_updateSelf
Method: PUT
Headers: Authorization: "Bearer <authentication token>"
Body:
{
"foo": "bar",
"fullname": "Walter Smith"
}
Other protocols
{
"controller": "auth",
"action": "updateSelf",
"jwt": "<authentication token>",
"body": {
"foo": "bar",
"name": "Walter Smith"
}
}
Arguments
jwt
: valid authentication token (for the HTTP protocol, the token is to be passed to theAuthorization
header instead)
Body properties
User properties that can be set or updated depend on the application hosted by Kuzzle. This document is free of limitations.
Response
Returns the following properties:
_id
: current user's kuid_source
: additional (and optional) user properties
{
"status": 200,
"error": null,
"action": "updateSelf",
"controller": "auth",
"requestId": "<unique request identifier>",
"result": {
"_id": "<kuid>",
"_source": {
"fullname": "Walter Smith"
}
}
}