---
title: "Find repositories that were updated within the given timeframe."
method: POST
path: "/filter/repositories"
tags: ["filter", "default"]
---

# Find repositories that were updated within the given timeframe.

`POST /filter/repositories`

## Request

- Base URL: `{{ server_url }}/v1`
- URL: `{{ server_url }}/v1/filter/repositories`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-API-Key`
- TypeScript: <https://skmtc.dev/athenian/apis/title/docs/filter/repositories/post.ts> (a function with typed inputs; its response is checked against the schema)

## Request body

- FilterRepositoriesRequest: Filters for `/filter/repositories`.
  - `account` integer, required: Session account ID.
  - `date_from` string, date, required: Updates must be later than or equal to this date. An update is any action that influences the stage assignment.
  - `date_to` string, date, required: Updates must be earlier than or equal to this date. An update is any action that influences the stage assignment.
  - `timezone` integer: Local time zone offset in minutes, used to adjust `date_from` and `date_to`.
  - `in` RepositoryID[]: Set of repositories. An empty list raises a bad response 400. Duplicates are automatically ignored.
  - `exclude_inactive` boolean: Value indicating whether PRs without events in the given time frame shall be ignored as repository triggers.

## Response `200`

Repositories that were updated within the given timeframe.

- RepositoryID[]: Set of repositories. An empty list raises a bad response 400. Duplicates are automatically ignored.

## Other responses

- `400`: The request is invalid.
- `403`: Calling user is not allowed to access the specified repositories.
- `404`: The specified account does not exist or the user is not a member.
- `422`: The account's installation has not finished yet.
- `424`: One or more logical repositories miss the release settings.

---

[API](https://skmtc.dev/athenian/apis/title.md) - [All operations](https://skmtc.dev/athenian/apis/title/llms.txt) - [OpenAPI document](https://skmtc.dev/athenian/apis/title/revisions/110c9f7cffdd?raw)
