URI

<myaccount_uri>/nickname[.<format>]

Supported methods

PUT

Parent resource

myAccount

Introduction

The nickname for the current user. It is supported to modify the nickname. The nickname should be different from any other nickname.

Supported Methods:

  • PUT: Modify the nickname for the current user.

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/nickname.rjson

PUT request

Modify the nickname for the current user.

Response structure

The structure for the resource representation returned should be:

Field Type Description
succeed boolean Whether the nickname for the current user is modified successfully.
error Httperror Error message. This field will not be created if the nickname for the current user is modified succesfully.

Response example

Execute the PUT request on the resource of myNickname : http://localhost:8090/iportal/web/mycontent/account/nickname.rjson to modify nickname for the current user.

xiaoli

The response result in rjson format returned is as follows:

{"succeed": true}

See