{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/when-i-work/json-schema/when-i-work-request-type-schema.json",
  "title": "RequestType",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/when-i-work-request-type-api-openapi.yml#/components/schemas/RequestType",
  "properties": {
    "id": {
      "description": "Unique ID of the request type.",
      "type": "integer"
    },
    "account_id": {
      "description": "The ID of the account this request type belongs to.",
      "type": "integer"
    },
    "name": {
      "type": "string",
      "description": "Label for the time off request type."
    },
    "built_in": {
      "type": "boolean",
      "description": "Is this a default type all accounts have or a custom type. Built in types cannot be deleted."
    },
    "enabled": {
      "type": "boolean",
      "description": "Enabled toggles if the type is available for selecting."
    },
    "allow_paid": {
      "type": "boolean",
      "description": "Describes if the timeoff type is available for paid time off."
    },
    "allow_unpaid": {
      "type": "boolean",
      "description": "Describes if the timeoff type is available for unpaid time off."
    },
    "is_deleted": {
      "type": "boolean",
      "description": "Has the timeoff type been deleted."
    },
    "created_at": {
      "type": "string",
      "description": "Full datetime for when the type was created in ISO8601."
    },
    "updated_at": {
      "type": "string",
      "description": "Full datetime for when the type was last updated in ISO8601."
    },
    "deleted_at": {
      "type": "string",
      "description": "Full datetime for when the type was deleted in ISO8601."
    }
  }
}