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.

updateCredentials #

Updates a user credentials for the specified authentication strategy.


Query Syntax #

HTTP #

URL: http://kuzzle:7512/credentials/<strategy>/<_id>/_update
Method: PUT
Body:
{
  // example with the "local" authentication strategy
  "password": "<new password>"
}

Other protocols #

{
  "controller": "security",
  "action": "updateCredentials",
  "strategy": "<strategy>",
  "_id": "<kuid>",
  "body": {
    // example with the "local" authentication strategy
    "password": "<new password>"
  }
}

Arguments #

  • _id: user kuid
  • strategy: authentication strategy

Body properties #

The properties that can be sent to update a user credentials depend entirely of the authentication strategy.


Response #

Returns the authentication strategy response.

Example for the "local" authentication strategy: #

{
  "status": 200,
  "error": null,
  "action": "updateCredentials",
  "controller": "security",
  "_id": "<kuid>",
  "result": {
    "username": "MyUser",
    "kuid": "<kuid>"
  }
}