Request Headers (Applies to all methods)
PUT
/api/apps/{appID}/users/me/password
Change the password of the user.
Can be performed only by the administrator and by the user himself.
Content-Type application/vnd.kii.ChangePasswordRequest+json
The data for changing the password. The old password is not needed if the administrator is changing the password.
{
"oldPassword": "[string]",
"newPassword": "[string]"
}
Content-Type (None)
Content-Type application/vnd.kii.UserNotFoundException+json
Name | Type | Description |
---|---|---|
errorCode | string | Error code "USER_NOT_FOUND". |
message | string | The error message. |
field | string | The field used for searching the user. This can be the userID or address field. |
value | string | The field value used for searching the user. |
appID | string | The ID of the application. |
Content-Type application/vnd.kii.UnauthorizedAccessException+json
Name | Type | Description |
---|---|---|
errorCode | string | Error code "UNAUTHORIZED". |
message | string | The error message. |
authenticatedAppID | string | The authenticated appID. |
authenticatedPrincipalID | string | The authenticated principal ID (userID or thingID). |
Content-Type application/vnd.kii.PasswordTooShortException+json
Name | Type | Description |
---|---|---|
message | string | The error message. |
errorCode | string | Error code "PASSWORD_TOO_SHORT". |
minimumLength | int | The minimum length accepted. |
Content-Type application/vnd.kii.WrongPasswordException+json
Name | Type | Description |
---|---|---|
message | string | The error message. |
errorCode | string | Error code "WRONG_PASSWORD". |
appID | string | The ID of the application. |
principalID | string | The ID of the of the principal (user or thing) |
address | string | The address used for identifying the principal |
Content-Type application/vnd.kii.OperationNotAllowedException+json
Name | Type | Description |
---|---|---|
errorCode | string | Error code "OPERATION_NOT_ALLOWED". |
message | string | The error message. |