POST api/UserManager/CreateRole

Creating a user role

Request Information

URI Parameters

None.

Body Parameters

Object containing the role name

ObjResultOfString
NameDescriptionTypeAdditional information
Data

string

None.

Error

Error description

string

None.

Success

Flag of successful operation

boolean

None.

ErrorCode

Error code

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "data": "sample string 1",
  "error": "sample string 2",
  "success": true,
  "errorCode": 4
}

Response Information

Resource Description

Result containing the created role

ObjResultOfRoleItem
NameDescriptionTypeAdditional information
Data

RoleItem

None.

Error

Error description

string

None.

Success

Flag of successful operation

boolean

None.

ErrorCode

Error code

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "data": {
    "roleId": 1,
    "permissions": [
      1,
      2
    ],
    "name": "sample string 2",
    "systemName": "sample string 3",
    "readOnly": true,
    "builtIn": true,
    "systemRole": true
  },
  "error": "sample string 1",
  "success": true,
  "errorCode": 3
}

Parameter Information

roleName

Property Description
Data (String)

				
Error (String)
Error description
Success (Boolean)
Flag of successful operation
ErrorCode (Int32)
Error code