POST api/user/privilege/fieldPermissions

Save a list of field permissions

Request Information

URI Parameters

None.

Body Parameters

Update a list of permissions

Collection of FieldPermission
NameDescriptionTypeAdditional information
ID

globally unique identifier

None.

PrivilegeGroupId

globally unique identifier

None.

FieldName

string

None.

Permission

FieldPermissionEnum

None.

Section

string

None.

RestrictionUISetting

Object

None.

Restriction

string

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "$id": "1",
    "id": "a344c8d9-d720-49ab-b7a9-f631be0fc014",
    "privilegeGroupId": "ed94dfe9-827e-4cd6-a5dd-a6e5c569d7e7",
    "fieldName": "sample string 1",
    "permission": 2,
    "section": "sample string 3",
    "restrictionUISetting": {
      "$id": "2"
    },
    "restriction": "sample string 5"
  },
  {
    "$ref": "1"
  }
]

application/xml, text/xml

Sample:
<ArrayOfFieldPermission xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EziManager.Models.EMC.Products">
  <FieldPermission>
    <FieldName>sample string 1</FieldName>
    <ID>a344c8d9-d720-49ab-b7a9-f631be0fc014</ID>
    <Permission>2</Permission>
    <PrivilegeGroupId>ed94dfe9-827e-4cd6-a5dd-a6e5c569d7e7</PrivilegeGroupId>
    <Restriction>sample string 5</Restriction>
    <RestrictionUISetting />
    <Section>sample string 3</Section>
  </FieldPermission>
  <FieldPermission>
    <FieldName>sample string 1</FieldName>
    <ID>a344c8d9-d720-49ab-b7a9-f631be0fc014</ID>
    <Permission>2</Permission>
    <PrivilegeGroupId>ed94dfe9-827e-4cd6-a5dd-a6e5c569d7e7</PrivilegeGroupId>
    <Restriction>sample string 5</Restriction>
    <RestrictionUISetting />
    <Section>sample string 3</Section>
  </FieldPermission>
</ArrayOfFieldPermission>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

None.