{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/peoplehr/main/json-schema/peoplehr-post-maternitypaternity-request-schema.json",
  "title": "PostMaternitypaternityRequest",
  "x-generated": "2026-10-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/peoplehr-openapi-generated.yml#/components/schemas/PostMaternitypaternityRequest",
  "type": "object",
  "properties": {
    "Action": {
      "type": "string",
      "description": "One of the actions documented (e.g., GetByMaternityPaternityId, GetMaternityPaternityByEmployeeId, AddNewMaternityPaternity, UpdateMaternityPaternity, UpdateMaternityPaternityReferenceId, DeleteMaternityPaternity)"
    },
    "EmployeeId": {
      "type": "string",
      "description": "Employee identifier"
    },
    "MaternityPaternityTxnId": {
      "type": "string",
      "description": "Transaction ID for specific actions"
    },
    "DueDate": {
      "type": "string",
      "description": "Due date (yyyy-MM-dd) for Add/Update actions"
    },
    "ActualStartDate": {
      "type": "string",
      "description": "Actual start date (yyyy-MM-dd)"
    },
    "ActualEndDate": {
      "type": "string",
      "description": "Actual end date (yyyy-MM-dd)"
    },
    "AddComments": {
      "type": "array",
      "description": "Array of comment objects"
    },
    "AddFiles": {
      "type": "array",
      "description": "Array of file objects"
    },
    "ReferenceId": {
      "type": "string",
      "description": "Reference ID for UpdateMaternityPaternityReferenceId"
    }
  },
  "required": [
    "Action",
    "EmployeeId"
  ]
}