Skip to content

setting cleanupIntervalS value via api call resets it to 1h #10746

Closed

Description

@pokegamer5547

What happened?

When we set a folder to pause via api call, it resets the rescan interval and watch for changes values to default. It was reported in 10389

Another value seems to reset too which is cleanupIntervalS, resets to 1h again whenever we send pause api call.

So i thought to workaround by sending api call
curl -s -k -X PATCH -H "X-API-Key:xxxxx" -H "Content-Type: application/json" https://localhost:8384/rest/config/folders/{folderid} -d '{"cleanupIntervalS":86400}'

But it's again resetting the value to 1h.
If i set rescanIntervalS via api call, that seems to reset cleanupIntervalS too back to 1h.

curl -s -k -X PATCH -H "X-API-Key:xxxxxx" -H "Content-Type: application/json" https://localhost:8384/rest/config/folders/{folderid} -d '{"rescanIntervalS":86400}'

Syncthing version

2.1.1

Platform & operating system

Fedora Linux

Browser version

No response

Relevant log output

Activity

  1. added
    bug
    needs-triage
    on Jun 14, 2026
  2. added a commit that references this issue on Jun 23, 2026
    e4d08b3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugneeds-triage

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions