POST api/account/permission

Changes a permission for the user, using the company of the user making the change.

Request Information

URI Parameters

None.

Body Parameters

Permission change information.

PermissionDTO
NameDescriptionTypeAdditional information
Operation

Operation can be either "GRANT" or "REVOKE".

string

None.

UserName

Username to change the permission for.

string

None.

ClaimName

Claim name.

string

None.

ClaimValue

Claim value must be one of the valid values for the specified claim name. Can be comma-separated multiple values.

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Operation": "sample string 1",
  "UserName": "sample string 2",
  "ClaimName": "sample string 3",
  "ClaimValue": "sample string 4"
}

text/html

Sample:
{"Operation":"sample string 1","UserName":"sample string 2","ClaimName":"sample string 3","ClaimValue":"sample string 4"}

application/xml, text/xml

Sample:
<PermissionDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Common.WebAPI.DTOs">
  <ClaimName>sample string 3</ClaimName>
  <ClaimValue>sample string 4</ClaimValue>
  <Operation>sample string 1</Operation>
  <UserName>sample string 2</UserName>
</PermissionDTO>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'PermissionDTO'.

Response Information

Resource Description

None.