Request Information

URI Parameters

None.

Body Parameters

The permission.

Pico.Permission
NameDescriptionTypeAdditional information
category

Gets or sets the category.

string

None.

code

Gets or sets the code.

string

None.

description

Gets or sets the description.

string

None.

displayOrder

Gets or sets the display order.

integer

None.

isActive

Gets or sets a value indicating whether user is active.

boolean

None.

subCategory

Gets or sets the sub category.

string

None.

id

Gets or sets the permission identifier.

integer

None.

roles

Gets or sets the role identifiers.

Collection of integer

None.

users

Gets or sets the user identifiers.

Collection of integer

None.

Request Formats

application/json, text/json

Sample:
{
  "category": "sample String 1",
  "code": "sample String 2",
  "description": "sample String 3",
  "displayOrder": 1,
  "isActive": true,
  "subCategory": "sample String 5",
  "id": "6",
  "roles": [
    "1",
    "2"
  ],
  "users": [
    "1",
    "2"
  ]
}

text/html

Sample:
{"category":"sample String 1","code":"sample String 2","description":"sample String 3","displayOrder":1,"isActive":true,"subCategory":"sample String 5","id":"6","roles":["1","2"],"users":["1","2"]}

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

The created permission.

Pico.Permission
NameDescriptionTypeAdditional information
category

Gets or sets the category.

string

None.

code

Gets or sets the code.

string

None.

description

Gets or sets the description.

string

None.

displayOrder

Gets or sets the display order.

integer

None.

isActive

Gets or sets a value indicating whether user is active.

boolean

None.

subCategory

Gets or sets the sub category.

string

None.

id

Gets or sets the permission identifier.

integer

None.

roles

Gets or sets the role identifiers.

Collection of integer

None.

users

Gets or sets the user identifiers.

Collection of integer

None.

Response Formats

application/json, text/json

Sample:
{
  "category": "sample String 1",
  "code": "sample String 2",
  "description": "sample String 3",
  "displayOrder": 1,
  "isActive": true,
  "subCategory": "sample String 5",
  "id": "6",
  "roles": [
    "1",
    "2"
  ],
  "users": [
    "1",
    "2"
  ]
}

text/html

Sample:
{"category":"sample String 1","code":"sample String 2","description":"sample String 3","displayOrder":1,"isActive":true,"subCategory":"sample String 5","id":"6","roles":["1","2"],"users":["1","2"]}