PUT api/Village/{village}/Members/Role

Change a villager's role within the selected village

Request Information

URI Parameters

NameDescriptionTypeAdditional information
village

string

None.

Body Parameters

MemberRoleModel
NameDescriptionTypeAdditional 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:

Failed to generate the sample for media type 'multipart/form-data'. Cannot use formatter 'MultipartMediaTypeFormatter' to write type 'MemberRoleModel'.

Response Information

Resource Description

PrimitiveOfBoolean
NameDescriptionTypeAdditional 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>