PUT HYAPI/AssistantService/Account/MyPassword
修改本用户密码------允许操作角色:所有(All)
服务请求信息
URI 参数
None.
Body 参数
用户密码
ModifyPasswordModelName | Description | Type | Additional information |
---|---|---|---|
old_password |
用户旧密码 |
string |
Required |
new_password |
用户新密码 |
string |
Required |
Request Formats
application/json, text/json
Sample:
{ "old_password": "sample string 1", "new_password": "sample string 2" }
application/xml, text/xml
Sample:
<ModifyPasswordModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Service.API.Model"> <new_password>sample string 2</new_password> <old_password>sample string 1</old_password> </ModifyPasswordModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
服务返回信息
返回数据说明
如果修改不成功则在Message中返回错误信息
ResponseDataModelOfStringName | Description | Type | Additional information |
---|---|---|---|
State |
返回消息状态 |
integer |
None. |
Message |
操作信息 |
string |
None. |
Data |
返回数据 |
string |
None. |
返回数据范例
application/json, text/json
Sample:
{ "State": 1, "Message": "sample string 2", "Data": "sample string 3" }
application/xml, text/xml
Sample:
<ResponseDataModelOfstring xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Service.API.Model"> <Data>sample string 3</Data> <Message>sample string 2</Message> <State>1</State> </ResponseDataModelOfstring>