···255255256256<small>[<- back to toc](#table-of-contents)</small>
257257258258-- `GET /repos`: get an NDJSON stream of repositories and their sync status. supports pagination and filtering:
258258+all `/repos` endpoints that return lists respond with NDJSON by default. send `Accept: application/json` or `Content-Type: application/json` to get a JSON array instead.
259259+260260+- `GET /repos`: get a list of repositories and their sync status. supports pagination and filtering:
259261 - `limit`: max results (default 100, max 1000)
260262 - `cursor`: opaque key for paginating.
261263 - `partition`: `all` (default), `pending` (backfill queue), or `resync` (retries)
···264266 available before the repo has been backfilled once at least).
265267- `PUT /repos`: explicitly track repositories. accepts an NDJSON body of `{"did": "..."}` (or JSON array of the same).
266268 only affects repositories that are not known or are untracked.
267267- returns a JSON array of the DIDs that were tracked.
269269+ returns a list of the DIDs that were queued for backfill.
268270- `DELETE /repos`: untrack repositories.
269271 accepts an NDJSON body of `{"did": "..."}` (or JSON array of the same).
270272 only affects repositories that are currently tracked.
271271- returns a JSON array of the DIDs that were untracked.
273273+ returns a list of the DIDs that were untracked.
272274- `POST /repos/resync`: force a new backfill for one or more repositories.
273275 accepts an NDJSON body of `{"did": "..."}` (or JSON array of the same).
274276 only affects repositories hydrant already knows about.
275275- returns a JSON array of the DIDs that were queued.
277277+ returns a list of the DIDs that were queued.
276278277279### database operations
278280