---
title: "Create a PY Employee Leave History"
slug: "create-a-py-employee-leave-history"
updated: 2026-05-26T12:53:14Z
published: 2026-05-26T12:53:48Z
canonical: "developers.cmicglobal.com/create-a-py-employee-leave-history"
---

> ## Documentation Index
> Fetch the complete documentation index at: https://developers.cmicglobal.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Create a PY Employee Leave History

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

## Create Employee Leave Histories

### 

SecurityHTTPType basic

Basic authentication

Header parametersContent-TypestringExampleapplication/vnd.oracle.adf.resourceItem+json

Body parameters<select class='api-response-data' aria-label='Media type'><option value='adfa6992-ec3d-41fb-b81a-307e1acf5b04'>application/json</option>
</select>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": ""
}PlhTranTypestring    Required

Transaction Type. Set to 'LE'

Max length2
PlhCompCodestring    Required

Company Code

Max length8
PlhLastUpdDatestring    Required
PlhPrnCodestring    Required

Payrun Code

Max length4
PlhUserstring    RequiredMax length30
PlhTranCodestring    Required

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

Max length4
PlhEmpNostring    Required

Employee Number

Max length16
PlhSeqNonumber    RequiredMax length2238
PlhPprYearnumber    Required

Pay Period Year

Max length224
PlhPprPeriodnumber    Required

Pay Period

Max length222
PlhVUuidstring    Required

Row ID. Leave blank.

Max length64

Responses201

Created

HeadersContent-TypestringExampleapplication/vnd.oracle.adf.resourceitem+json
<select class='api-response-data' aria-label='Media type'><option value='74ea0d76-8f1e-4f2b-a158-da65d91a25db'>application/json</option>
</select>

```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
