Create a PY Employee Leave History
  • 12 Feb 2025
  • 1 Minute to read
  • Dark
    Light

Create a PY Employee Leave History

  • Dark
    Light

Article summary

Post
/hcm-rest-api/rest/1/pyempleavehist

Create Employee Leave Histories

Security
HTTP
Type basic

Basic authentication

Header parameters
Content-Type
string
Exampleapplication/vnd.oracle.adf.resourceItem+json
Body parameters
object
Example{ "PlhCompCode": "001", "PlhPprYear": 2016.0, "PlhTranType": "LE", "PlhTranCode": "JURY", "PlhPprPeriod": 3.0, "PlhSeqNo": 365820.0, "PlhPrnCode": "SM", "PlhEmpNo": "1005", "PlhUser": "DAR", "PlhLastUpdDate": "2016-10-25T14:41:19-04:00", "PlhVUuid": "" }
PlhTranType
string Required

Transaction Type. Set to 'LE'

Max length2
PlhCompCode
string Required

Company Code

Max length8
PlhLastUpdDate
string Required
PlhPrnCode
string Required

Payrun Code

Max length4
PlhUser
string Required
Max length30
PlhTranCode
string Required

Leave Code. Must be a valid Leave Code set up in CMiC (PYLEAVE).

Max length4
PlhEmpNo
string Required

Employee Number

Max length16
PlhSeqNo
number Required
Max length2238
PlhPprYear
number Required

Pay Period Year

Max length224
PlhPprPeriod
number Required

Pay Period

Max length222
PlhVUuid
string Required

Row ID. Leave blank.

Max length64
Responses
201

Created

Headers
Content-Type
string
Exampleapplication/vnd.oracle.adf.resourceitem+json
{
  "PlhAccrued": null,
  "PlhActivateSeq": null,
  "PlhAdjustment": null,
  "PlhAmount": null,
  "PlhAssignedCheckNum": null,
  "PlhBatchNum": null,
  "PlhBillingRate": null,
  "PlhCategory": null,
  "PlhChargeOutRate": null,
  "PlhChequeSeqNumber": null,
  "PlhChequeVoidDate": null,
  "PlhCompCode": "001",
  "PlhDataType": null,
  "PlhDate": null,
  "PlhDeptCode": null,
  "PlhEmpCrAccCode": null,
  "PlhEmpDeptCode": null,
  "PlhEmpNo": "1005",
  "PlhEmplrContr": null,
  "PlhEmplrContrAccCode": null,
  "PlhEmplrContrDeptCode": null,
  "PlhEmplrContrFlag": null,
  "PlhEqpCrAccCode": null,
  "PlhEqpDeptCode": null,
  "PlhEquipCategory": null,
  "PlhEquipPhsCode": null,
  "PlhEquipTranNo": null,
  "PlhEquipment": null,
  "PlhEquipmentCost": null,
  "PlhGlAccCode": null,
  "PlhGlpostFlag": null,
  "PlhGrossEarning": null,
  "PlhHireFlag": null,
  "PlhHrlyEquipRate": null,
  "PlhHrsPaid": null,
  "PlhHrsWorked": null,
  "PlhJob": null,
  "PlhLastUpdDate": "2016-10-25T18:41:19Z",
  "PlhLeaveTakenTmshtYear": null,
  "PlhLeaveUpdatedInsummary": null,
  "PlhLevCalcDate": null,
  "PlhLevCalcMethod": null,
  "PlhLevTypeFlag": null,
  "PlhPayAmount": null,
  "PlhPayRate": null,
  "PlhPhase": null,
  "PlhPostDate": null,
  "PlhPostDateChangeDate": null,
  "PlhPprPeriod": 3,
  "PlhPprYear": 2016,
  "PlhPrintCheckOnly": null,
  "PlhPrnCode": "SM",
  "PlhProcessFlag": null,
  "PlhQuantity": null,
  "PlhRateCode": null,
  "PlhRefCheckNum": null,
  "PlhRetpayFlag": null,
  "PlhSeqNo": 365820,
  "PlhTaxtypeFlag": null,
  "PlhTotalHours": null,
  "PlhTradeCode": null,
  "PlhTranCode": "JURY",
  "PlhTranType": "LE",
  "PlhUnionCode": null,
  "PlhUpdateBchFlag": null,
  "PlhUser": "DAR",
  "PlhWorkCompCode": null,
  "PlhWorkLocation": null,
  "PlhVUuid": "F29F45B6ACB840FEE05316821FACBB96",
  "links": [
    {
      "rel": "self",
      "href": "http://mobtest.cmiccloudr12.com:80/cmictestrti/hcm-rest-api/rest/1/pyempleavehist/F29F45B6ACB840FEE05316821FACBB96",
      "name": "pyempleavehist",
      "kind": "item"
    },
    {
      "rel": "canonical",
      "href": "http://mobtest.cmiccloudr12.com:80/cmictestrti/hcm-rest-api/rest/1/pyempleavehist/F29F45B6ACB840FEE05316821FACBB96",
      "name": "pyempleavehist",
      "kind": "item"
    }
  ]
}
object