Deputy · Schema

Leave Request

Workforce ManagementEmployee SchedulingTime and AttendanceTimesheetsHuman ResourcesShift PlanningAustraliaScheduling

Properties

Name Type Description
id integer
employeeId integer
employeeHistoryId integer
locationId integer
leaveRuleId integer
startAt string
endAt string
timeApprovedBy integer
payApprovedBy integer
comment string
notifyManagerIds array
status object
approverComment string
totalHours number
createdById integer
createdAt string
modifiedAt string
externalId string
allDay boolean
View JSON Schema on GitHub

JSON Schema

deputy-v2model-leave-request-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/deputy/main/json-schema/deputy-v2model-leave-request-schema.json",
  "title": "Leave Request",
  "x-generated": "2026-10-14",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/deputy-v2-api-openapi.yml#/components/schemas/v2modelLeaveRequest",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer",
      "format": "int32",
      "title": "Leave ID"
    },
    "employeeId": {
      "type": "integer",
      "format": "int32",
      "title": "Employee ID"
    },
    "employeeHistoryId": {
      "type": "integer",
      "format": "int32",
      "title": "Employee History ID"
    },
    "locationId": {
      "type": "integer",
      "format": "int32",
      "title": "Location ID"
    },
    "leaveRuleId": {
      "type": "integer",
      "format": "int32",
      "title": "Leave Rule ID"
    },
    "startAt": {
      "type": "string",
      "format": "date-time",
      "title": "Leave start date time"
    },
    "endAt": {
      "type": "string",
      "format": "date-time",
      "title": "Leave end date time"
    },
    "timeApprovedBy": {
      "type": "integer",
      "format": "int32",
      "title": "Date Time Range Approver ID"
    },
    "payApprovedBy": {
      "type": "integer",
      "format": "int32",
      "title": "Pay Approver ID"
    },
    "comment": {
      "type": "string",
      "title": "Comment"
    },
    "notifyManagerIds": {
      "type": "array",
      "items": {
        "type": "integer",
        "format": "int32"
      },
      "title": "Notify Manager ID"
    },
    "status": {
      "$ref": "#/$defs/modelLeaveStatus",
      "title": "Leave Status"
    },
    "approverComment": {
      "type": "string",
      "title": "Approver Comment"
    },
    "totalHours": {
      "type": "number",
      "format": "float",
      "title": "Total Hours"
    },
    "createdById": {
      "type": "integer",
      "format": "int32",
      "title": "Employee ID of who created the leave request"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "title": "Timestamp when the leave request was created"
    },
    "modifiedAt": {
      "type": "string",
      "format": "date-time",
      "title": "Timestamp when the leave request was modified"
    },
    "externalId": {
      "type": "string",
      "title": "ExternalId"
    },
    "allDay": {
      "type": "boolean",
      "title": "Indicates if the leave is the full day"
    }
  },
  "$defs": {
    "modelLeaveStatus": {
      "type": "string",
      "enum": [
        "STATUS_AWAITING",
        "STATUS_APPROVED",
        "STATUS_DECLINED",
        "STATUS_CANCELLED",
        "STATUS_DATE_APPROVED",
        "STATUS_PAY_APPROVED"
      ],
      "default": "STATUS_AWAITING"
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/deputy-v2model-leave-request"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.