GET api/UserManagement/GetRoleDataForEdit?roleCode={roleCode}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| roleCode | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
Collection of RoleView| Name | Description | Type | Additional information |
|---|---|---|---|
| Role_Code | integer |
None. |
|
| Sys_Code | string |
None. |
|
| Name | string |
None. |
|
| ShortName | string |
None. |
|
| ShortCode | string |
None. |
|
| Company_Code | integer |
None. |
|
| Plant_Code | integer |
None. |
|
| Plants | Collection of integer |
None. |
|
| IsMultyDepartment | boolean |
None. |
|
| CreatedDate | date |
None. |
|
| CreateBy | integer |
None. |
|
| ModifiedDate | date |
None. |
|
| ModifiedBy | integer |
None. |
|
| IsActive | boolean |
None. |
|
| IsDelete | boolean |
None. |
|
| IsSync | boolean |
None. |
|
| RoleModule | Collection of RoleModule |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"Role_Code": 1,
"Sys_Code": "sample string 2",
"Name": "sample string 3",
"ShortName": "sample string 4",
"ShortCode": "sample string 5",
"Company_Code": 6,
"Plant_Code": 1,
"Plants": [
1,
1
],
"IsMultyDepartment": true,
"CreatedDate": "2025-12-28T06:19:13.0495155+00:00",
"CreateBy": 1,
"ModifiedDate": "2025-12-28T06:19:13.0495155+00:00",
"ModifiedBy": 1,
"IsActive": true,
"IsDelete": true,
"IsSync": true,
"RoleModule": [
{
"Id": 1,
"PageList": [
{
"Id": 1,
"ActionList": "sample string 1"
},
{
"Id": 1,
"ActionList": "sample string 1"
}
]
},
{
"Id": 1,
"PageList": [
{
"Id": 1,
"ActionList": "sample string 1"
},
{
"Id": 1,
"ActionList": "sample string 1"
}
]
}
]
},
{
"Role_Code": 1,
"Sys_Code": "sample string 2",
"Name": "sample string 3",
"ShortName": "sample string 4",
"ShortCode": "sample string 5",
"Company_Code": 6,
"Plant_Code": 1,
"Plants": [
1,
1
],
"IsMultyDepartment": true,
"CreatedDate": "2025-12-28T06:19:13.0495155+00:00",
"CreateBy": 1,
"ModifiedDate": "2025-12-28T06:19:13.0495155+00:00",
"ModifiedBy": 1,
"IsActive": true,
"IsDelete": true,
"IsSync": true,
"RoleModule": [
{
"Id": 1,
"PageList": [
{
"Id": 1,
"ActionList": "sample string 1"
},
{
"Id": 1,
"ActionList": "sample string 1"
}
]
},
{
"Id": 1,
"PageList": [
{
"Id": 1,
"ActionList": "sample string 1"
},
{
"Id": 1,
"ActionList": "sample string 1"
}
]
}
]
}
]
application/xml, text/xml
Sample:
<ArrayOfRoleView xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ViewModelHRMS">
<RoleView>
<Company_Code>6</Company_Code>
<CreateBy>1</CreateBy>
<CreatedDate>2025-12-28T06:19:13.0495155+00:00</CreatedDate>
<IsActive>true</IsActive>
<IsDelete>true</IsDelete>
<IsMultyDepartment>true</IsMultyDepartment>
<IsSync>true</IsSync>
<ModifiedBy>1</ModifiedBy>
<ModifiedDate>2025-12-28T06:19:13.0495155+00:00</ModifiedDate>
<Name>sample string 3</Name>
<Plant_Code>1</Plant_Code>
<Plants xmlns:d3p1="http://schemas.datacontract.org/2004/07/System">
<d3p1:long>1</d3p1:long>
<d3p1:long>1</d3p1:long>
</Plants>
<RoleModule>
<RoleModule>
<Id>1</Id>
<PageList>
<RolemodulePage>
<ActionList>sample string 1</ActionList>
<Id>1</Id>
</RolemodulePage>
<RolemodulePage>
<ActionList>sample string 1</ActionList>
<Id>1</Id>
</RolemodulePage>
</PageList>
</RoleModule>
<RoleModule>
<Id>1</Id>
<PageList>
<RolemodulePage>
<ActionList>sample string 1</ActionList>
<Id>1</Id>
</RolemodulePage>
<RolemodulePage>
<ActionList>sample string 1</ActionList>
<Id>1</Id>
</RolemodulePage>
</PageList>
</RoleModule>
</RoleModule>
<Role_Code>1</Role_Code>
<ShortCode>sample string 5</ShortCode>
<ShortName>sample string 4</ShortName>
<Sys_Code>sample string 2</Sys_Code>
</RoleView>
<RoleView>
<Company_Code>6</Company_Code>
<CreateBy>1</CreateBy>
<CreatedDate>2025-12-28T06:19:13.0495155+00:00</CreatedDate>
<IsActive>true</IsActive>
<IsDelete>true</IsDelete>
<IsMultyDepartment>true</IsMultyDepartment>
<IsSync>true</IsSync>
<ModifiedBy>1</ModifiedBy>
<ModifiedDate>2025-12-28T06:19:13.0495155+00:00</ModifiedDate>
<Name>sample string 3</Name>
<Plant_Code>1</Plant_Code>
<Plants xmlns:d3p1="http://schemas.datacontract.org/2004/07/System">
<d3p1:long>1</d3p1:long>
<d3p1:long>1</d3p1:long>
</Plants>
<RoleModule>
<RoleModule>
<Id>1</Id>
<PageList>
<RolemodulePage>
<ActionList>sample string 1</ActionList>
<Id>1</Id>
</RolemodulePage>
<RolemodulePage>
<ActionList>sample string 1</ActionList>
<Id>1</Id>
</RolemodulePage>
</PageList>
</RoleModule>
<RoleModule>
<Id>1</Id>
<PageList>
<RolemodulePage>
<ActionList>sample string 1</ActionList>
<Id>1</Id>
</RolemodulePage>
<RolemodulePage>
<ActionList>sample string 1</ActionList>
<Id>1</Id>
</RolemodulePage>
</PageList>
</RoleModule>
</RoleModule>
<Role_Code>1</Role_Code>
<ShortCode>sample string 5</ShortCode>
<ShortName>sample string 4</ShortName>
<Sys_Code>sample string 2</Sys_Code>
</RoleView>
</ArrayOfRoleView>