PUT api/Account/{id}
更改使用者資料
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id |
使用者ID |
string |
Required |
Body Parameters
使用者更改個人資料
UserUpdateName | Description | Type | Additional information |
---|---|---|---|
Account |
使用者登入帳號(不可變動欄位) |
string |
None. |
SureName |
使用者姓氏 |
string |
None. |
GivenName |
使用者名稱 |
string |
None. |
MailAddress |
使用者常用信箱 |
string |
None. |
Request Formats
application/json, text/json
Sample:
{ "Account": "sample string 1", "SureName": "sample string 2", "GivenName": "sample string 3", "MailAddress": "sample string 4" }
application/xml, text/xml
Sample:
<AccountController.UserUpdate xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/iMOE_Back_End.Controllers"> <Account>sample string 1</Account> <GivenName>sample string 3</GivenName> <MailAddress>sample string 4</MailAddress> <SureName>sample string 2</SureName> </AccountController.UserUpdate>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ActionResponseName | Description | Type | Additional information |
---|---|---|---|
Account |
執行帳號 |
string |
None. |
Action |
執行功能 |
string |
None. |
result |
執行結果 |
boolean |
None. |
remark |
執行失敗時所使用欄位,備註錯誤原因 |
string |
None. |
Response Formats
application/json, text/json
Sample:
{ "Account": "sample string 1", "Action": "sample string 2", "result": true, "remark": "sample string 4" }
application/xml, text/xml
Sample:
<ActionResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/iMOE_Back_End.Controllers"> <Account>sample string 1</Account> <Action>sample string 2</Action> <remark>sample string 4</remark> <result>true</result> </ActionResponse>