POST api/UserRole/Create

Insert User Role Details using User Role Model

Request Information

URI Parameters

None.

Body Parameters

User Role Model

mlUserRole
NamedescriptionTypeAdditional information
RoleSysId

integer

None.

RoleID

string

None.

RoleName

string

None.

Locked

mlLockedDetails

None.

CreatedBy

string

None.

CreatedDate

string

None.

UpdatedBy

string

None.

UpdatedDate

string

None.

IsDeleted

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "CreatedBy": "sample string 4",
  "CreatedDate": "sample string 5",
  "IsDeleted": true,
  "UpdatedBy": "sample string 6",
  "UpdatedDate": "sample string 7",
  "Locked": {
    "IsLocked": true,
    "LockedBy": "sample string 1",
    "LockedDate": "sample string 2",
    "LockedReason": "sample string 3"
  },
  "RoleID": "sample string 2",
  "RoleName": "sample string 3",
  "RoleSysId": 1
}

application/xml, text/xml

Sample:
<mlUserRole xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Systemic.MLM.Model.Admin">
  <CreatedBy xmlns="http://schemas.datacontract.org/2004/07/Systemic.MLM.Model.Common">sample string 4</CreatedBy>
  <CreatedDate xmlns="http://schemas.datacontract.org/2004/07/Systemic.MLM.Model.Common">sample string 5</CreatedDate>
  <IsDeleted xmlns="http://schemas.datacontract.org/2004/07/Systemic.MLM.Model.Common">true</IsDeleted>
  <UpdatedBy xmlns="http://schemas.datacontract.org/2004/07/Systemic.MLM.Model.Common">sample string 6</UpdatedBy>
  <UpdatedDate xmlns="http://schemas.datacontract.org/2004/07/Systemic.MLM.Model.Common">sample string 7</UpdatedDate>
  <Locked xmlns:d2p1="http://schemas.datacontract.org/2004/07/Systemic.MLM.Model.Common">
    <d2p1:IsLocked>true</d2p1:IsLocked>
    <d2p1:LockedBy>sample string 1</d2p1:LockedBy>
    <d2p1:LockedDate>sample string 2</d2p1:LockedDate>
    <d2p1:LockedReason>sample string 3</d2p1:LockedReason>
  </Locked>
  <RoleID>sample string 2</RoleID>
  <RoleName>sample string 3</RoleName>
  <RoleSysId>1</RoleSysId>
</mlUserRole>

response Information

Resource description

Role Inserted Successfully

ApiResponse
NamedescriptionTypeAdditional information
response

string

Required

failure

MlError

None.

success

MlSuccess

None.