POST api/SaveRole

Request Information

URI Parameters

None.

Body Parameters

RoleModel
Name Description Type Additional information
RoleId

integer

None.

RoleName

string

None.

RoleRights

Collection of RoleRights

None.

Status

integer

None.

CreatedBy

integer

None.

strRoleRights

string

None.

Key

string

None.

Request Formats

application/json, text/json

Sample:
{
  "RoleId": 1,
  "RoleName": "sample string 2",
  "RoleRights": [
    {
      "MenuId": 1,
      "MenuName": "sample string 2",
      "MenuLevel": 3,
      "ViewRight": true,
      "CreateRight": true,
      "EditRight": true,
      "DeleteRight": true
    },
    {
      "MenuId": 1,
      "MenuName": "sample string 2",
      "MenuLevel": 3,
      "ViewRight": true,
      "CreateRight": true,
      "EditRight": true,
      "DeleteRight": true
    }
  ],
  "Status": 1,
  "CreatedBy": 1,
  "strRoleRights": "sample string 3",
  "Key": "sample string 4"
}

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

BaseApiResponse
Name Description Type Additional information
Success

boolean

None.

Message

Collection of string

None.

Response Formats

application/json, text/json

Sample:
{
  "Success": true,
  "Message": [
    "sample string 1",
    "sample string 2"
  ]
}