Core
API v1.x
1

You are currently looking at the documentation of a previous version of Kuzzle. We strongly recommend that you use the latest version. You can also use the version selector in the top menu.

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 the Authorization 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"
    }
  }
}