POST api/UserManager/DuplicateRole

Role cloning

Request Information

URI Parameters

None.

Body Parameters

Operation parameters

TwoValuesEventArgsOfInt32AndString
NameDescriptionTypeAdditional information
Data

integer

None.

AuxData

string

None.

Request Formats

application/json, text/json

Sample:
{
  "data": 1,
  "auxData": "sample string 2"
}

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

data

Property Description
Data (Int32)

				
AuxData (String)