---
updatedAt: 2026-04-21T16:11:36.000Z
agentTools:
  projectIndex: https://apidoc.factorialhr.com/llms.txt
---

# Timeoff > LeaveType > Updates

Subscription_type: `timeoff/leave_type/update`

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Factorial API",
    "description": "",
    "version": "2026-10-01"
  },
  "webhooks": {
    "Webhooks > Timeoff > LeaveType > Updates": {
      "post": {
        "tags": [
          "Webhooks"
        ],
        "description": "Subscription_type: `timeoff/leave_type/update`",
        "deprecated": false,
        "summary": "Timeoff > LeaveType > Updates",
        "parameters": [],
        "responses": {
          "200": {
            "description": "Return a 200 status to indicate that the data was received successfully"
          }
        },
        "requestBody": {
          "description": "Callback payload",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/timeoff_leave_type"
              }
            }
          }
        }
      }
    }
  },
  "x-readme": {
    "proxy-enabled": false
  },
  "servers": [
    {
      "url": "https://api.factorialhr.com",
      "description": "Production server"
    },
    {
      "url": "https://api.demo.factorial.dev",
      "description": "Demo server (deprecated)"
    },
    {
      "url": "https://api.eu2.demo.factorial.dev",
      "description": "Demo server"
    }
  ],
  "security": [
    {
      "oauth2": []
    }
  ],
  "components": {
    "securitySchemes": {
      "oauth2": {
        "type": "oauth2",
        "flows": {
          "authorizationCode": {
            "authorizationUrl": "https://id.factorialhr.com/oauth/authorize",
            "tokenUrl": "https://id.factorialhr.com/api/oauth/token",
            "refreshUrl": "https://id.factorialhr.com/api/oauth/token",
            "scopes": {
              "read": "Required for all operations",
              "write": "Required for write operations",
              "approvals": "Access to approvals",
              "banking": "Access to banking",
              "company_holidays": "Access to company holidays",
              "company_legal_entities": "Access to company legal entities",
              "company_locations": "Access to company locations",
              "compensations": "Access to compensations",
              "contracts": "Access to contracts",
              "custom_fields": "Access to custom fields",
              "documents": "Access to documents",
              "employee_updates": "Access to employee updates",
              "employees": "Access to employees",
              "expenses": "Access to expenses",
              "finance": "Access to finance",
              "integrations": "Access to integrations",
              "it_management": "Access to it management",
              "job_catalog": "Access to job catalog",
              "marketplace": "Access to marketplace",
              "payroll": "Access to payroll",
              "payroll_supplements": "Access to payroll supplements",
              "performance": "Access to performance",
              "posts": "Access to posts",
              "processes": "Access to processes",
              "project_management_expenses": "Access to project management expenses",
              "project_management_projects": "Access to project management projects",
              "project_management_time": "Access to project management time",
              "recruitment": "Access to recruitment",
              "shift_management": "Access to shift management",
              "tasks": "Access to tasks",
              "time_off": "Access to time off",
              "time_tracking": "Access to time tracking",
              "trainings": "Access to trainings"
            }
          }
        }
      }
    },
    "schemas": {
      "timeoff_leave_type": {
        "type": "object",
        "required": [
          "id",
          "name",
          "identifier",
          "color",
          "attachment",
          "visibility",
          "workable",
          "company_id",
          "allowance_ids",
          "details_required"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "Identifier of the leave type",
            "example": "1"
          },
          "name": {
            "type": "string",
            "description": "Name of the leave type",
            "example": "Annual Leave"
          },
          "translated_name": {
            "type": "string",
            "description": "Translated name of the leave type, if available",
            "example": "Congé Annuel"
          },
          "identifier": {
            "type": "string",
            "description": "Unique identifier of the leave type",
            "example": "annual_leave"
          },
          "color": {
            "type": "string",
            "description": "The color associated with this leave type",
            "example": "red"
          },
          "active": {
            "type": "boolean",
            "description": "Whether the leave type is active",
            "example": true
          },
          "editable": {
            "type": "boolean",
            "description": "Whether the leave type is editable",
            "example": false
          },
          "approval_required": {
            "type": "boolean",
            "description": "Whether leaves of this type must be approved before they take effect (when false, requests are auto-approved on creation)",
            "example": true
          },
          "accrues": {
            "type": "boolean",
            "description": "Whether leaves of this type consume an accruing balance/allowance (vs. a non-accruing type that does not draw down a balance)",
            "example": true
          },
          "attachment": {
            "type": "boolean",
            "description": "Whether an attachment (e.g. a sick note) can be added to leaves of this type",
            "example": true
          },
          "allow_endless": {
            "type": "boolean",
            "description": "Whether leaves of this type may be open-ended (created with no finish date)",
            "example": false
          },
          "restricted": {
            "type": "boolean",
            "description": "Whether requesting this leave type is restricted to specific employees or conditions rather than open to everyone",
            "example": false
          },
          "visibility": {
            "type": "boolean",
            "description": "Whether the leave type is visible to employees (vs. admin-only)",
            "example": true
          },
          "workable": {
            "type": "boolean",
            "description": "Whether days taken under this leave type still count as workable (working) days",
            "example": false
          },
          "payable": {
            "type": "boolean",
            "description": "Whether leaves of this type are paid",
            "example": true
          },
          "company_id": {
            "type": "string",
            "description": "ID of the company this leave type belongs to",
            "example": "1"
          },
          "is_attachment_mandatory": {
            "type": "boolean",
            "description": "Whether an attachment is mandatory (not just allowed) to request this leave type",
            "example": false
          },
          "allowance_ids": {
            "type": "array",
            "description": "IDs of the allowances this leave type draws its balance from",
            "example": [
              "1",
              "2"
            ],
            "items": {
              "type": "string"
            }
          },
          "half_days_units_enabled": {
            "type": "boolean",
            "description": "Whether leaves of this type can be requested in half-day units",
            "example": true
          },
          "max_days_in_cents": {
            "type": "integer",
            "description": "Maximum number of days a single request may take, in hundredths of a day (e.g. 5000 = 50 days); null if unbounded",
            "example": 5000
          },
          "min_days_in_cents": {
            "type": "integer",
            "description": "Minimum number of days a single request must take, in hundredths of a day (e.g. 1000 = 10 days); null if unbounded",
            "example": 1000
          },
          "description": {
            "type": "string",
            "description": "Free-text description of the leave type",
            "example": "This leave type is for annual holidays."
          },
          "details_required": {
            "type": "boolean",
            "description": "Whether the requester must provide additional details (a reason) when requesting this leave type",
            "example": false
          }
        }
      }
    }
  }
}
```