URI

<myaccount_uri>/pwdquestion[.<format>]

Supported methods

PUT

Parent resource

myAccount

Introduction

The myPwdQuestion resource is used to modify the answer to the security question for resetting the password.

Supported Methods:

  • PUT: modify the answer to the security question for resetting the password.

Supported representation formats: RJSON, JSON, HTML, XML.

Resource hierarchy

HTTP request methods

Implement the HTTP request on the following URI, where supermapiserver is the server name, with rjson being the output format.

http://supermapiportal:8090/iportal/web/mycontent/account/pwdquestion.rjson

PUT request

Modify the answer to the security question for resetting the password.

Response structure

The following arguments need to be included in the request sent.

Name Type Description
pwdAnswer String The answer to the security question for resetting the password.
pwdQuestion String The verification question

The structure for the resource representation returned should be:

Field Type Description
succeed boolean Whether the answer to the security question for resetting the password is modified successfully.
error Httperror Error message. This field will not be created if the answer is modified successfully.

Response example

Execute a PUT request on the myPwdQuestion resource: http://localhost:8090/iportal/web/mycontent/account/pwdquestion.rjson, to modify the answer to the security question for resetting the password:

{

    "pwdQuestion": "school",

    "pwdAnswer": "No. 1 Middle School"

}

The response result in rjson format returned is as follows:

{"succeed": true}

See