GET api/Privileges/getByID/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

None.

Response Information

Resource Description

PrivilegesDTO
NameDescriptionTypeAdditional information
PrivilegeID

integer

None.

SystemUserID

integer

None.

StaffID

integer

None.

StaffName

string

None.

SystemUser

string

None.

PrivilegeType

string

None.

PrivilegeValue

decimal number

None.

Note

string

None.

IsDeleted

boolean

None.

CreationDate

date

None.

ModifiedDate

date

None.

IsActive

boolean

None.

Year

integer

None.

Month

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "PrivilegeID": 1,
  "SystemUserID": 2,
  "StaffID": 3,
  "StaffName": "sample string 4",
  "SystemUser": "sample string 5",
  "PrivilegeType": "sample string 6",
  "PrivilegeValue": 7.0,
  "Note": "sample string 8",
  "IsDeleted": true,
  "CreationDate": "2025-12-12T10:39:50.1657787-08:00",
  "ModifiedDate": "2025-12-12T10:39:50.1657787-08:00",
  "IsActive": true,
  "Year": 13,
  "Month": 14
}

application/xml, text/xml

Sample:
<PrivilegesDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HR.Objects.DTOs">
  <CreationDate>2025-12-12T10:39:50.1657787-08:00</CreationDate>
  <IsActive>true</IsActive>
  <IsDeleted>true</IsDeleted>
  <ModifiedDate>2025-12-12T10:39:50.1657787-08:00</ModifiedDate>
  <Month>14</Month>
  <Note>sample string 8</Note>
  <PrivilegeID>1</PrivilegeID>
  <PrivilegeType>sample string 6</PrivilegeType>
  <PrivilegeValue>7</PrivilegeValue>
  <StaffID>3</StaffID>
  <StaffName>sample string 4</StaffName>
  <SystemUser>sample string 5</SystemUser>
  <SystemUserID>2</SystemUserID>
  <Year>13</Year>
</PrivilegesDTO>