Changing the User Password

A user can change the password by providing the existing password and desired password.

The following is an example of a user changing his password. Once the password is changed, all access tokens issued to this user will be invalidated.

curl -v -X PUT \
  -H "Authorization: Bearer {ACCESS_TOKEN}" \
  -H "Content-Type: application/vnd.kii.ChangePasswordRequest+json" \
  "https://api-jp.kii.com/api/apps/{APP_ID}/users/me/password" \
  -d '{"newPassword": {NEW_PASSWORD}, "oldPassword": {OLD_PASSWORD}}'

Kii Cloud will respond as follows:

< HTTP/1.1 204 No Content
< Server: Apache-Coyote/1.1
< Date: Mon, 14 May 2012 23:00:42 GMT
<