PUT api/Village/{village}/AccessControl

Set Access Control settings for the village

Request Information

URI Parameters

NameDescriptionTypeAdditional information
village

string

None.

Body Parameters

Collection of AccessControlModel
NameDescriptionTypeAdditional information
VillageId

Village ID

globally unique identifier

None.

Feature

Feature ID

VillageFeatures

None.

FeatureName

Feature Name

string

None.

MinimumRole

Minimum Role to access feature NOTE: Can be a UserVillageRole value, OR can be int.MaxValue (2,147,483,647) for Owner-Only

UserVillageRole

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "VillageId": "df83fae1-ff8f-4496-b2d6-475426e345c3",
    "Feature": 0,
    "FeatureName": "None",
    "MinimumRole": 0
  },
  {
    "VillageId": "df83fae1-ff8f-4496-b2d6-475426e345c3",
    "Feature": 0,
    "FeatureName": "None",
    "MinimumRole": 0
  }
]

application/xml, text/xml

Sample:
<ArrayOfAccessControlModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CaringVillage.Shared.Implementation.Models">
  <AccessControlModel>
    <Feature>None</Feature>
    <MinimumRole>Revoked</MinimumRole>
    <VillageId>df83fae1-ff8f-4496-b2d6-475426e345c3</VillageId>
  </AccessControlModel>
  <AccessControlModel>
    <Feature>None</Feature>
    <MinimumRole>Revoked</MinimumRole>
    <VillageId>df83fae1-ff8f-4496-b2d6-475426e345c3</VillageId>
  </AccessControlModel>
</ArrayOfAccessControlModel>

multipart/form-data

Sample:

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

Response Information

Resource Description

Collection of AccessControlModel
NameDescriptionTypeAdditional information
VillageId

Village ID

globally unique identifier

None.

Feature

Feature ID

VillageFeatures

None.

FeatureName

Feature Name

string

None.

MinimumRole

Minimum Role to access feature NOTE: Can be a UserVillageRole value, OR can be int.MaxValue (2,147,483,647) for Owner-Only

UserVillageRole

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "VillageId": "26540b92-cbb3-47cb-bfb2-e3583732aa65",
    "Feature": 0,
    "FeatureName": "None",
    "MinimumRole": 0
  },
  {
    "VillageId": "26540b92-cbb3-47cb-bfb2-e3583732aa65",
    "Feature": 0,
    "FeatureName": "None",
    "MinimumRole": 0
  }
]

application/xml, text/xml

Sample:
<ArrayOfAccessControlModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CaringVillage.Shared.Implementation.Models">
  <AccessControlModel>
    <Feature>None</Feature>
    <MinimumRole>Revoked</MinimumRole>
    <VillageId>26540b92-cbb3-47cb-bfb2-e3583732aa65</VillageId>
  </AccessControlModel>
  <AccessControlModel>
    <Feature>None</Feature>
    <MinimumRole>Revoked</MinimumRole>
    <VillageId>26540b92-cbb3-47cb-bfb2-e3583732aa65</VillageId>
  </AccessControlModel>
</ArrayOfAccessControlModel>