GET api/Common/getRole/{UserTypeId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
UserTypeId

integer

Required

Body Parameters

None.

Response Information

Resource Description

Collection of RoleDto
NameDescriptionTypeAdditional information
RoleId

decimal number

None.

RoleName

string

None.

OrganizationId

decimal number

None.

RoleType

integer

None.

FromAccessTime

time interval

None.

ToAccessTime

time interval

None.

EnableOTP

integer

None.

EditReason

string

None.

CreatedBy

decimal number

None.

CreatedDate

date

None.

UpdatedBy

decimal number

None.

UpdatedDate

date

None.

Status

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "RoleId": 1.0,
    "RoleName": "sample string 2",
    "OrganizationId": 3.0,
    "RoleType": 4,
    "FromAccessTime": "00:00:00.1234567",
    "ToAccessTime": "00:00:00.1234567",
    "EnableOTP": 7,
    "EditReason": "sample string 8",
    "CreatedBy": 9.0,
    "CreatedDate": "2022-08-19T05:22:23.9405173+05:30",
    "UpdatedBy": 11.0,
    "UpdatedDate": "2022-08-19T05:22:23.9405173+05:30",
    "Status": "sample string 13"
  },
  {
    "RoleId": 1.0,
    "RoleName": "sample string 2",
    "OrganizationId": 3.0,
    "RoleType": 4,
    "FromAccessTime": "00:00:00.1234567",
    "ToAccessTime": "00:00:00.1234567",
    "EnableOTP": 7,
    "EditReason": "sample string 8",
    "CreatedBy": 9.0,
    "CreatedDate": "2022-08-19T05:22:23.9405173+05:30",
    "UpdatedBy": 11.0,
    "UpdatedDate": "2022-08-19T05:22:23.9405173+05:30",
    "Status": "sample string 13"
  }
]

application/xml, text/xml

Sample:
<ArrayOfRoleDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ZenoxERP.API.Models.Extensions">
  <RoleDto>
    <CreatedBy>9</CreatedBy>
    <CreatedDate>2022-08-19T05:22:23.9405173+05:30</CreatedDate>
    <EditReason>sample string 8</EditReason>
    <EnableOTP>7</EnableOTP>
    <FromAccessTime>PT0.1234567S</FromAccessTime>
    <OrganizationId>3</OrganizationId>
    <RoleId>1</RoleId>
    <RoleName>sample string 2</RoleName>
    <RoleType>4</RoleType>
    <Status>sample string 13</Status>
    <ToAccessTime>PT0.1234567S</ToAccessTime>
    <UpdatedBy>11</UpdatedBy>
    <UpdatedDate>2022-08-19T05:22:23.9405173+05:30</UpdatedDate>
  </RoleDto>
  <RoleDto>
    <CreatedBy>9</CreatedBy>
    <CreatedDate>2022-08-19T05:22:23.9405173+05:30</CreatedDate>
    <EditReason>sample string 8</EditReason>
    <EnableOTP>7</EnableOTP>
    <FromAccessTime>PT0.1234567S</FromAccessTime>
    <OrganizationId>3</OrganizationId>
    <RoleId>1</RoleId>
    <RoleName>sample string 2</RoleName>
    <RoleType>4</RoleType>
    <Status>sample string 13</Status>
    <ToAccessTime>PT0.1234567S</ToAccessTime>
    <UpdatedBy>11</UpdatedBy>
    <UpdatedDate>2022-08-19T05:22:23.9405173+05:30</UpdatedDate>
  </RoleDto>
</ArrayOfRoleDto>