PUT api/Village/{village}/Members/Role
Change a villager's role within the selected village
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
village | string |
None. |
Body Parameters
MemberRoleModelName | Description | Type | Additional information |
---|---|---|---|
VillagerId |
Target villager's global UserID |
globally unique identifier |
None. |
Role |
Target villager's new role |
UserVillageRole |
None. |
Request Formats
application/json, text/json
Sample:
{ "VillagerId": "04b03b5c-29a1-4070-afdf-c3eb26305e63", "Role": 0 }
application/xml, text/xml
Sample:
<MemberRoleModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CaringVillage.Shared.Implementation.Models"> <Role>Revoked</Role> <VillagerId>04b03b5c-29a1-4070-afdf-c3eb26305e63</VillagerId> </MemberRoleModel>
multipart/form-data
Sample:
Response Information
Resource Description
PrimitiveOfBooleanName | Description | Type | Additional information |
---|---|---|---|
value | boolean |
Required |
Response Formats
application/json, text/json
Sample:
{ "value": true }
application/xml, text/xml
Sample:
<PrimitiveOfboolean xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CaringVillage.API.Models"> <value>true</value> </PrimitiveOfboolean>