POST api/UserManagement/InsertRoleData

Request Information

URI Parameters

None.

Body Parameters

RoleView
NameDescriptionTypeAdditional 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.

Request 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:22.1603806+00:00",
  "CreateBy": 1,
  "ModifiedDate": "2025-12-28T06:19:22.1603806+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:
<RoleView xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ViewModelHRMS">
  <Company_Code>6</Company_Code>
  <CreateBy>1</CreateBy>
  <CreatedDate>2025-12-28T06:19:22.1603806+00:00</CreatedDate>
  <IsActive>true</IsActive>
  <IsDelete>true</IsDelete>
  <IsMultyDepartment>true</IsMultyDepartment>
  <IsSync>true</IsSync>
  <ModifiedBy>1</ModifiedBy>
  <ModifiedDate>2025-12-28T06:19:22.1603806+00:00</ModifiedDate>
  <Name>sample string 3</Name>
  <Plant_Code>1</Plant_Code>
  <Plants xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
    <d2p1:long>1</d2p1:long>
    <d2p1:long>1</d2p1: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>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

string

Response Formats

application/json, text/json

Sample:
"sample string 1"

application/xml, text/xml

Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>