---
search:
  tags:
    - files
    - POST
seo:
  description: >-
    Remembers what is under the directory path now (the files' types,… Reference
    for the POST /v1/sandboxes/{sandbox}/files/changes endpoint in the pols.so
    API.
sidebar:
  label: Start tracking the changes under a directory
  badge: POST
title: Start tracking the changes under a directory
type: openapi-operation
---
Remembers what is under the directory `path` now (the files' types,
sizes, modification times and inodes), so that `GET` lists what
changed since. Starting again for the same path starts over.
Tracking is the user's: the record lives in its home
(`~/.local/state/pols/changes`), so it stays across stop, resume
and standby, and forks and templates copy it; another user does not
see it. At most 100,000 files and directories (400 `bad_request`
beyond: track a narrower path); directories the user may not read
are left out.

`POST /v1/sandboxes/{sandbox}/files/changes`
