---
title: "Clears all the existing access rights under this rule (whatever type they are) then sets back the access rights according to the Schedule(array of from-to object) and EntryPointsSelected parameters"
method: POST
path: "/KindooSaveAccessSetRuleFromToWithEntryPoints"
tags: ["Access Rule Management"]
---

# Clears all the existing access rights under this rule (whatever type they are) then sets back the access rights according to the Schedule(array of from-to object) and EntryPointsSelected parameters

`POST /KindooSaveAccessSetRuleFromToWithEntryPoints`

## Response `200`

OK

- AccessScheduleObject
  - `AccessRules` Rule[]
    - `AcceptedInvitation` boolean
    - `AccessScheduleID` integer
    - `AccessScheduleName` string
    - `AccessScheduleRules` object[]
    - `AddedByAccessSchedule` boolean
    - `ChildrenIDs` integer[]
    - `DepartmentType` integer
    - `Description` string
    - `DoorID` integer
    - `EUID` string, uuid
    - `EnvironmentID` integer
    - `F` object
    - `FromDate` string, date-time — format YYYY-MM-DDTHH:mm:ss
    - `ID` integer
    - `IsAlways` boolean
    - `IsMain` boolean
    - `IsParsed` boolean
    - `IsValid` boolean
    - `IsWeeklyRecurrent` boolean
    - `LastCommand` string, date-time — format YYYY-MM-DDTHH:mm:ss
    - `M` object
    - `PrimaryKey` string, uuid
    - `S` object
    - `SU` object
    - `T` object
    - `TH` object
    - `TimeZone` string
    - `TimeZoneDiff` integer
    - `TimeZoneInfo` string[]
    - `ToDate` string, date-time — format YYYY-MM-DDTHH:mm:ss
    - `UserDisplayName` string
    - `UserEmail` string
    - `UserFirstName` string
    - `UserID` string, uuid
    - `UserLastName` string
    - `UserProfilePic` string
    - `VID` string
    - `VidName` string
    - `W` object
    - `WiegandID` string
    - `DayOfWeek` integer
    - `GrantedBy` object
    - `GrantedOn` string, date-time — format YYYY-MM-DDTHH:mm:ss
  - `EnvironmentID` integer
  - `HolidaysAndSpecialEvents` HolidayObject[]
    - `DoorID` integer
    - `DoorRelayID` integer
    - `FromDate` string, date-time — format YYYY-MM-DDTHH:mm:ss
    - `HolidayCountryID` integer
    - `HolidayCountryName` string
    - `HolidayName` string
    - `ID` integer
    - `IncludeInAccessRules` boolean
    - `IsHoliday` boolean
    - `RuleSetID` boolean
    - `TimeZone` string
    - `ToDate` string, date-time — format YYYY-MM-DDTHH:mm:ss
  - `ID` integer
  - `IsForAllKins` boolean
  - `ModifiedBy` string, uuid
  - `ModifiedOn` string, date-time — format YYYY-MM-DDTHH:mm:ss
  - `Name` string
  - `Type` integer
  - `doors` EntryPointObject[]
    - `DeniedResponse` string
    - `EnvironmentID` integer
    - `ID` integer
    - `IsContractorAccess` boolean
    - `IsSelected` boolean
    - `IsSentNotification` boolean
    - `IsVisible` boolean
    - `MaximumNumberOfPins` integer
    - `ModifiedBy` string
    - `ModifiedOn` string, date-time — format YYYY-MM-DDTHH:mm:ss
    - `Name` string
    - `SuccessResponse` string
    - `VIDID` integer
    - `rules_sets` object[]
    - `rules_sets_vids` RuleSetVIDObject[]
      - `DoorID` integer
      - `RuleID` integer
      - `VIDID` integer
    - `vid` KinObject
      - `Action1Name` string
      - `Action1Pulse` string
      - `Action1Rest` string
      - `Action2Name` string
      - `Action2Pulse` string
      - `Action2Rest` string
      - `BatchID` integer
      - `BatchName` string
      - `CalibratorPhoneID` string
      - `CalibratorPhoneListID` integer
      - `DistanceThreshold` number
      - `DistanceThresholdUnit` string
      - `EditCode` integer
      - `EnvironmentID` integer
      - `EnvironmentName` string
      - `ID` integer
      - `IsAuto` boolean
      - `IsResetInitiated` boolean
      - `IsSeenBeyondThreshold` boolean
      - `IsSelected` boolean
      - `IsTypeC` boolean
      - `KINSatusInEmission` boolean
      - `LastSavedINC` integer
      - `MaxTemperature` number
      - `MaximumNumberOfPins` integer
      - `ModifiedBy` string
      - `Name` string
      - `NumberOfRelay` integer
      - `PulsePeriod` integer
      - `RSSI` number
      - `RestPeriod` integer
      - `TypeCPushToNearbyKins` boolean
      - `VID1` string
      - `_CurrentTemperature` integer
      - `_IsVerified` boolean
      - `_LastCheckChipTime` integer
      - `_LastCommandTime` integer
      - `_RemainingBattery` integer
      - `_Temperature` integer
      - `_Url` string
      - `batch` string
      - `dailyRules` object[]
      - `door_relays` DoorRelayObject[]
        - `Action1` string
        - `Action1Name` string
        - `Action1Response` string
        - `Action2` string
        - `Action2Name` string
        - `Action2Response` string
        - `BuzzerDuration` integer
        - `CommandUpdateDuration` integer
        - `CommandUpdateID` string
        - `CommandUpdateState` integer
        - `DeniedAction` string
        - `DeniedResponse` string
        - `DiodeDuration` integer
        - `ID` integer
        - `IsAutomaticWithinThreshold` boolean
        - `IsSeenBeyondThreshold` boolean
        - `ModifiedBy` string
        - `ModifyedOn` string, date-time — format YYYY-MM-DDTHH:mm:ss
        - `NumberOfKindooCommands` integer
        - `PIO` integer
        - `Protocol` string
        - `RelayName` string
        - `State` integer
        - `VIDID` integer
        - `access_rules` string[]
        - `user` object
      - `dummy` boolean
      - `isBuzzer` boolean
      - `isSendNotification` boolean
      - `rules` object[]
      - `vids_pin` object[]
    - `vids_pin` VidPinObject[]
      - `CreatedBy` string
      - `CreatedOn` string, date-time — format YYYY-MM-DDTHH:mm:ss
      - `Description` string
      - `DoorID` integer
      - `ExpiryDate` string, date-time — format YYYY-MM-DDTHH:mm:ss
      - `ExpiryDateTicks` integer
      - `ExpiryTimeZone` string
      - `PIN` string
      - `VIDID` integer
      - `WorkOrderNumberIsMandatory` boolean
      - `user` object
  - `rules_sets_vids` RuleSetVIDObject[]
    - `DoorID` integer
    - `RuleID` integer
    - `VIDID` integer

## Other responses

- `303` — See Other
- `401` — Unauthorized - your session is not valid

---

[API](https://skmtc.net/kindoo/apis/kindoo-tech.md) · [All operations](https://skmtc.net/kindoo/apis/kindoo-tech/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/kindoo/kindoo-tech/versions/0f2499440f4b/schema)
