Request Headers (Applies to all methods)
POST
/api/apps/{appID}/users/{userID}/password/request-reset
Send an email with a link for resetting the password to the user.
This request requires empty body.
- Authorization Basic: header for granting an anonymous access.
- Set a Base64-encoded string of AppID and AppKey concatenated with a colon (APP_ID:APP_KEY).
- The header should look like:
Authorization: Basic czZCaGRSa3F0Mzo3RmpmcDBaQnIxS3REUmJuZlZkbUl3 - Authorization Bearer: using Oauth2 Bearer Token.
- The header should look like:
Authorization: Bearer ht5fpHQAyrPPwLftK1rAqllv5WNVPCnYfPiCvPocFuQ
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.OperationNotAllowedException+json
Name | Type | Description |
---|---|---|
errorCode | string | Error code "OPERATION_NOT_ALLOWED". |
message | string | The error message. |
Content-Type application/vnd.kii.InvalidStatusException+json
Name | Type | Description |
---|---|---|
errorCode | string | Error code "INVALID_STATUS". |
message | string | The error message. |
appID | string | The ID of the application. |
Content-Type application/vnd.kii.UserDisabledException+json
Name | Type | Description |
---|---|---|
errorCode | string | Error code "USER_DISABLED". |
message | string | The error message. |
UserID | string | The ID of the user. |
appID | string | The ID of the application. |
POST
/api/apps/{appID}/users/{userID}/password/request-reset
Send an email with a link for resetting the password of the user, or send a SMS with a link or PIN code for resetting the password to the user.
Content-Type application/vnd.kii.ResetPasswordRequest+json
The chosen notification method to perform the password reset.
- Authorization Basic: header for granting an anonymous access.
- Set a Base64-encoded string of AppID and AppKey concatenated with a colon (APP_ID:APP_KEY).
- The header should look like:
Authorization: Basic czZCaGRSa3F0Mzo3RmpmcDBaQnIxS3REUmJuZlZkbUl3 - Authorization Bearer: using Oauth2 Bearer Token.
- The header should look like:
Authorization: Bearer ht5fpHQAyrPPwLftK1rAqllv5WNVPCnYfPiCvPocFuQ
{
"notificationMethod": "[string]",
"smsResetMethod": "[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.OperationNotAllowedException+json
Name | Type | Description |
---|---|---|
errorCode | string | Error code "OPERATION_NOT_ALLOWED". |
message | string | The error message. |
Content-Type application/vnd.kii.InvalidStatusException+json
Name | Type | Description |
---|---|---|
errorCode | string | Error code "INVALID_STATUS". |
message | string | The error message. |
appID | string | The ID of the application. |
Content-Type application/vnd.kii.UserDisabledException+json
Name | Type | Description |
---|---|---|
errorCode | string | Error code "USER_DISABLED". |
message | string | The error message. |
UserID | string | The ID of the user. |
appID | string | The ID of the application. |