PUT api/Role/PutAccountRole
变更人员角色
Request Information
URI Parameters
None.
Body Parameters
AccountRoleChangeModel| Name | Description | Type | Additional information |
|---|---|---|---|
| OtherDomainID |
经销商域ID |
globally unique identifier |
None. |
| PersonID |
人员ID |
globally unique identifier |
None. |
| AccountID |
账号ID |
globally unique identifier |
None. |
| IsBoss |
是否经销商老板 |
boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"OtherDomainID": "2d1848ce-1b16-4a6c-9b56-9230699193d2",
"PersonID": "ae5d8479-37b0-467b-a75c-23b453ed49f8",
"AccountID": "f9f7ad31-60b4-44e4-aa65-da4b6a2f389a",
"IsBoss": true
}
application/xml, text/xml
Sample:
<AccountRoleChangeModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/JT.VSFA.App.WebAPI.Areas.MDM.ViewModel"> <AccountID>f9f7ad31-60b4-44e4-aa65-da4b6a2f389a</AccountID> <IsBoss>true</IsBoss> <OtherDomainID>2d1848ce-1b16-4a6c-9b56-9230699193d2</OtherDomainID> <PersonID>ae5d8479-37b0-467b-a75c-23b453ed49f8</PersonID> </AccountRoleChangeModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ResultModelOfBoolean| Name | Description | Type | Additional information |
|---|---|---|---|
| Code | ReturnCode |
None. |
|
| Message | string |
None. |
|
| Data | boolean |
None. |
Response Formats
application/json, text/json
Sample:
{
"Code": 200,
"Message": "sample string 1",
"Data": true
}
application/xml, text/xml
Sample:
<ResultModelOfboolean xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/JT.VSFA.Utility"> <Code>Success</Code> <Data>true</Data> <Message>sample string 1</Message> </ResultModelOfboolean>