Demiton · Schema

leave_request contract v1

Leave requests and their approval status.

CompanyConstructionCivil EngineeringProject ManagementComplianceMCPArtificial IntelligenceOpen Contracting

Properties

Name Type Description
days integer number of per-day leave rows behind the request
hours number paid hours of leave, summed from the per-day intervals
reason string the employee's stated reason
status string the source status label (e.g. pending)
worker string the employee the leave belongs to
to_date string last day of the leave
from_date string first day of the leave
leave_type string category of leave (annual, personal/carer's, …)
is_approved boolean whether the request is approved
leave_dates array the per-day leave intervals the request comprises
leave_type_id integer the bound system's numeric leave-type id
financial_period string the pay period the leave falls in
leave_type_label string the vendor's display name for the leave type
source_record_id string the source record's identity, for idempotent upsert
View JSON Schema on GitHub

JSON Schema

demiton-io-leave_request-v1-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://docs.demiton.io/registers/leave_request/v1.json",
  "title": "leave_request contract v1",
  "type": "object",
  "required": [
    "from_date",
    "hours",
    "is_approved",
    "leave_type",
    "source_record_id",
    "to_date",
    "worker"
  ],
  "properties": {
    "days": {
      "type": "integer",
      "description": "number of per-day leave rows behind the request",
      "x-demiton-requiredness": "optional",
      "x-demiton-unit": "leave-day rows"
    },
    "hours": {
      "type": "number",
      "description": "paid hours of leave, summed from the per-day intervals",
      "x-demiton-requiredness": "required",
      "x-demiton-unit": "hours",
      "x-demiton-type": "decimal"
    },
    "reason": {
      "type": "string",
      "description": "the employee's stated reason",
      "x-demiton-requiredness": "optional"
    },
    "status": {
      "type": "string",
      "description": "the source status label (e.g. pending)",
      "x-demiton-requiredness": "optional"
    },
    "worker": {
      "type": "string",
      "description": "the employee the leave belongs to",
      "x-demiton-requiredness": "required",
      "x-demiton-reference": true
    },
    "to_date": {
      "type": "string",
      "description": "last day of the leave",
      "x-demiton-requiredness": "required",
      "format": "date",
      "x-demiton-type": "date"
    },
    "from_date": {
      "type": "string",
      "description": "first day of the leave",
      "x-demiton-requiredness": "required",
      "format": "date",
      "x-demiton-type": "date"
    },
    "leave_type": {
      "type": "string",
      "description": "category of leave (annual, personal/carer's, …)",
      "x-demiton-requiredness": "required"
    },
    "is_approved": {
      "type": "boolean",
      "description": "whether the request is approved",
      "x-demiton-requiredness": "required"
    },
    "leave_dates": {
      "type": "array",
      "description": "the per-day leave intervals the request comprises",
      "x-demiton-requiredness": "optional",
      "x-demiton-unit": "datetime (local)"
    },
    "leave_type_id": {
      "type": "integer",
      "description": "the bound system's numeric leave-type id",
      "x-demiton-requiredness": "tenant-specific"
    },
    "financial_period": {
      "type": "string",
      "description": "the pay period the leave falls in",
      "x-demiton-requiredness": "optional",
      "x-demiton-reference": true
    },
    "leave_type_label": {
      "type": "string",
      "description": "the vendor's display name for the leave type",
      "x-demiton-requiredness": "optional"
    },
    "source_record_id": {
      "type": "string",
      "description": "the source record's identity, for idempotent upsert",
      "x-demiton-requiredness": "required"
    }
  },
  "x-demiton-register-type": "leave_request",
  "x-demiton-contract-version": "1.0.2",
  "x-demiton-store": "tenant",
  "x-demiton-axes": [
    {
      "axis": "financial_period",
      "requirement": "optional",
      "role": "context"
    },
    {
      "axis": "worker",
      "requirement": "required",
      "role": "subject"
    }
  ],
  "x-demiton-measures": [],
  "x-demiton-provenance": {
    "standards": [
      {
        "code": "Fair Work Act 2009 (Cth)",
        "title": "Fair Work Act 2009 - employee records and National Employment Standards",
        "access": "full_text_verified",
        "clause": "ss.87(1), 96(1), 535 ; s.106A",
        "region": "Australia",
        "edition": "compilation 2026-07-07",
        "checked_on": "2026-09-14"
      },
      {
        "code": "Fair Work Regulations 2009 (Cth)",
        "title": "Fair Work Regulations 2009 - employee record content",
        "access": "full_text_verified",
        "clause": "regs 3.32-3.34, 3.36",
        "region": "Australia",
        "edition": "compilation 2026-06-20",
        "checked_on": "2026-09-14"
      },
      {
        "code": "Privacy Act 1988 (Cth)",
        "title": "Privacy Act 1988 - Australian Privacy Principles; employee-records exemption; health information s.6FA",
        "access": "public_summary",
        "region": "Australia",
        "edition": "current",
        "checked_on": "2026-09-14"
      },
      {
        "code": "ISO 30414:2025",
        "title": "Human resource management - Requirements and recommendations for human capital reporting and disclosure",
        "access": "paywalled_secondary",
        "region": "International",
        "edition": "2nd ed. 2025 (supersedes ISO 30414:2018)",
        "checked_on": "2026-09-14"
      },
      {
        "code": "Employment Leave Act 2026 (NZ)",
        "title": "Employment Leave Act 2026 (2026 No 48)",
        "access": "full_text_verified",
        "clause": "ss.24(1), 73(1), 75(1), 127-130",
        "region": "New Zealand",
        "edition": "assent 6 Aug 2026; not yet in force",
        "checked_on": "2026-09-14"
      },
      {
        "code": "Holidays Act 2003 (NZ)",
        "title": "Holidays Act 2003 (2003 No 129) - holiday and leave record",
        "access": "full_text_verified",
        "clause": "ss.16(1), 65(2), 66, 81",
        "region": "New Zealand",
        "edition": "version as at 20 Dec 2023 (repealed on commencement of Employment Leave Act 2026)",
        "checked_on": "2026-09-14"
      },
      {
        "code": "Privacy Act 2020 (NZ)",
        "title": "Privacy Act 2020 and Health Information Privacy Code 2020",
        "access": "public_summary",
        "region": "New Zealand",
        "edition": "Act 2020; HIPC version as at 1 May 2026",
        "checked_on": "2026-09-14"
      },
      {
        "code": "SI 1998/1833",
        "title": "Working Time Regulations 1998",
        "access": "full_text_verified",
        "clause": "regs 4-6, 9, 13, 13A, 15B",
        "region": "United Kingdom",
        "edition": "as amended by SI 2023/1426 from 1 Jan 2024",
        "checked_on": "2026-09-14"
      },
      {
        "code": "Statutory Sick Pay (Social Security Contributions and Benefits Act 1992)",
        "title": "Statutory Sick Pay - weekly statutory payment, no day entitlement",
        "access": "public_summary",
        "region": "United Kingdom",
        "edition": "rate read 2026-09-11",
        "checked_on": "2026-09-14"
      },
      {
        "code": "UK GDPR",
        "title": "UK GDPR and Data Protection Act 2018",
        "access": "public_summary",
        "region": "United Kingdom",
        "edition": "current",
        "checked_on": "2026-09-14"
      }
    ]
  },
  "description": "Leave requests and their approval status.",
  "x-demiton-contract-url": "https://docs.demiton.io/registers/leave_request/",
  "x-demiton-register-catalog": "https://docs.demiton.io/concepts/register-catalog"
}

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/demiton-io-leave_request-v1"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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.