{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/zoho-projects/json-schema/zoho-projects-patch-api-v3-portal-portal-id-settings-timelog-request-schema.json",
  "title": "PatchApiV3PortalPortalIdSettingsTimelogRequest",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/zoho-projects-openapi-generated.yml#/components/schemas/PatchApiV3PortalPortalIdSettingsTimelogRequest",
  "type": "object",
  "properties": {
    "allow_timelog_for": {
      "type": "string"
    },
    "closed_entity_restriction": {
      "type": "boolean"
    },
    "multi_timer_restriction": {
      "type": "boolean"
    },
    "workhour_restriction": {
      "type": "boolean"
    },
    "entity_date_restriction": {
      "type": "boolean"
    },
    "allow_unassigned_entity_logs": {
      "type": "boolean"
    },
    "zpeople_attendance_restriction": {
      "type": "boolean"
    },
    "project_status_restriction": {
      "type": "object",
      "properties": {
        "is_enabled": {
          "type": "boolean"
        },
        "restricted_statuses": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "add": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    }
                  }
                }
              },
              "remove": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "restrict_timelogs": {
      "type": "object",
      "properties": {
        "weekend": {
          "type": "boolean"
        },
        "holiday": {
          "type": "boolean"
        },
        "zpeople_leave": {
          "type": "boolean"
        }
      }
    },
    "timelog_configuration": {
      "type": "object",
      "properties": {
        "log_type": {
          "type": "string"
        },
        "is_tasklog_enabled": {
          "type": "boolean"
        },
        "is_issuelog_enabled": {
          "type": "boolean"
        },
        "is_generallog_enabled": {
          "type": "boolean"
        }
      }
    },
    "overlap_restriction": {
      "type": "string"
    },
    "period_settings": {
      "type": "object",
      "properties": {
        "past_log": {
          "type": "string"
        },
        "future_log": {
          "type": "string"
        },
        "is_editlog_restricted": {
          "type": "boolean"
        },
        "period_customized_data": {
          "type": "object",
          "properties": {
            "past_value": {
              "type": "integer"
            },
            "past_unit": {
              "type": "string"
            },
            "future_value": {
              "type": "integer"
            },
            "future_unit": {
              "type": "string"
            }
          }
        },
        "past_log_excluded_users": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "add": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "zpuid": {
                      "type": "string"
                    }
                  }
                }
              },
              "remove": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "zpuid": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "loghour_restriction": {
      "type": "object",
      "properties": {
        "is_enabled": {
          "type": "boolean"
        },
        "max_per_day": {
          "type": "string"
        },
        "max_per_week": {
          "type": "string"
        }
      }
    },
    "reminder": {
      "type": "object",
      "properties": {
        "is_enabled": {
          "type": "boolean"
        },
        "threshold": {
          "type": "integer"
        },
        "daily_reminder": {
          "type": "object",
          "properties": {
            "minutes": {
              "type": "integer"
            },
            "condition": {
              "type": "string"
            },
            "notify_running_timers": {
              "type": "string"
            }
          }
        },
        "weekly_reminder": {
          "type": "object",
          "properties": {
            "minutes": {
              "type": "integer"
            },
            "condition": {
              "type": "string"
            }
          }
        },
        "exclude_reminder_for": {
          "type": "object",
          "properties": {
            "users": {
              "type": "object",
              "properties": {
                "add": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "remove": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              }
            },
            "profiles": {
              "type": "object",
              "properties": {
                "add": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "remove": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              }
            }
          }
        }
      }
    },
    "approval": {
      "type": "object",
      "properties": {
        "is_enabled": {
          "type": "boolean"
        },
        "type": {
          "type": "string"
        },
        "is_auto_approval": {
          "type": "boolean"
        },
        "email_notification": {
          "type": "object",
          "properties": {
            "is_enabled": {
              "type": "boolean"
            },
            "frequency": {
              "type": "string"
            },
            "time": {
              "type": "string"
            }
          }
        }
      }
    },
    "is_draft_enabled": {
      "type": "boolean"
    },
    "ip_based_restriction": {
      "type": "boolean"
    },
    "allowed_ips": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string"
        },
        "from": {
          "type": "string"
        },
        "to": {
          "type": "string"
        }
      }
    },
    "completion_pct_restriction": {
      "type": "boolean"
    },
    "timer_restricted_profiles": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  }
}