POST api/permissions

Request Information

URI Parameters

None.

Body Parameters

Permissions
NameDescriptionTypeAdditional information
Id

integer

None.

Permission

string

None.

Description

string

None.

DisplayName

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Permission": "sample string 2",
  "Description": "sample string 3",
  "DisplayName": "sample string 4"
}

text/html

Sample:
{"Id":1,"Permission":"sample string 2","Description":"sample string 3","DisplayName":"sample string 4"}

application/xml, text/xml

Sample:
<Permissions xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NPlay.Common.Models">
  <Description>sample string 3</Description>
  <DisplayName>sample string 4</DisplayName>
  <Id>1</Id>
  <Permission>sample string 2</Permission>
</Permissions>

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 'Permissions'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, text/html, application/xml, text/xml

Sample:

Sample not available.