POST Permissions

Allows an Entity Admin to create custom permissions to be used by their application. These permissions are entirely for the client side benefit and are not enforceable by this API.

Request Information

URI Parameters

None.

Body Parameters

Collection of CreatePermissionModel
NameDescriptionTypeAdditional information
Name

string

Required

Max length: 64

Description

string

Max length: 512

DisplayName

string

Max length: 256

AllowIdentification

boolean

Required

Request Formats

application/json, text/json, text/html

Sample:
[
  {
    "Name": "sample string 1",
    "Description": "sample string 2",
    "DisplayName": "sample string 3",
    "AllowIdentification": true
  },
  {
    "Name": "sample string 1",
    "Description": "sample string 2",
    "DisplayName": "sample string 3",
    "AllowIdentification": true
  }
]

application/xml, text/xml

Sample:
<ArrayOfCreatePermissionModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Toluna.TEF.Common.ViewModels.Membership">
  <CreatePermissionModel>
    <AllowIdentification>true</AllowIdentification>
    <Description>sample string 2</Description>
    <DisplayName>sample string 3</DisplayName>
    <Name>sample string 1</Name>
  </CreatePermissionModel>
  <CreatePermissionModel>
    <AllowIdentification>true</AllowIdentification>
    <Description>sample string 2</Description>
    <DisplayName>sample string 3</DisplayName>
    <Name>sample string 1</Name>
  </CreatePermissionModel>
</ArrayOfCreatePermissionModel>

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 'List`1'.

application/bson

Sample:
Binary JSON content. See http://bsonspec.org for details.

Response Information

Resource Description

true/false

Collection of CreatePermissionModel
NameDescriptionTypeAdditional information
Name

string

Required

Max length: 64

Description

string

Max length: 512

DisplayName

string

Max length: 256

AllowIdentification

boolean

Required

Response Formats

application/json, text/json, text/html

Sample:
[
  {
    "Name": "sample string 1",
    "Description": "sample string 2",
    "DisplayName": "sample string 3",
    "AllowIdentification": true
  },
  {
    "Name": "sample string 1",
    "Description": "sample string 2",
    "DisplayName": "sample string 3",
    "AllowIdentification": true
  }
]

application/xml, text/xml

Sample:
<ArrayOfCreatePermissionModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Toluna.TEF.Common.ViewModels.Membership">
  <CreatePermissionModel>
    <AllowIdentification>true</AllowIdentification>
    <Description>sample string 2</Description>
    <DisplayName>sample string 3</DisplayName>
    <Name>sample string 1</Name>
  </CreatePermissionModel>
  <CreatePermissionModel>
    <AllowIdentification>true</AllowIdentification>
    <Description>sample string 2</Description>
    <DisplayName>sample string 3</DisplayName>
    <Name>sample string 1</Name>
  </CreatePermissionModel>
</ArrayOfCreatePermissionModel>

application/bson

Sample:
Binary JSON content. See http://bsonspec.org for details.