---
title: "GET /repositories/{repository_id}/preset/live"
method: GET
path: "/repositories/{repository_id}/preset/live"
tags: ["Git Providers"]
---

# GET /repositories/{repository_id}/preset/live

`GET /repositories/{repository_id}/preset/live`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/repositories/{repository_id}/preset/live`
- Auth: HTTP bearer

## Path parameters

- `repository_id` integer, required

## Query parameters

- `branch` string

## Response `200`

Repository presets calculated successfully - includes root preset and projects in subdirectories

- RepositoryPresetResponse
  - `calculated_at` string, date-time, required
  - `name` string, required
  - `owner` string, required
  - `presets` ProjectPresetResponse[], required
    - `composeFiles` string[], nullable: Compose file paths found in the repository (only for docker-compose preset)
    - `dockerfilePath` string, nullable: Repository-root-relative path to the Dockerfile, when it does not live directly under `{path}/Dockerfile` (e.g. `docker/Dockerfile` rolled up to a `path` of `"./"`). `None` for a Dockerfile located directly at `{path}/Dockerfile` and for every non-Dockerfile preset.
    - `exposedPort` integer, nullable: Default exposed port for this preset (e.g., 3000 for Next.js, 8000 for FastAPI)
    - `iconUrl` string, nullable: Icon URL for the preset
    - `path` string, required
    - `preset` string, required
    - `presetLabel` string, required
    - `projectType` string, required: Project type category (e.g., "frontend", "backend", "fullstack")
  - `repository_id` integer, required

## Other responses

- `400`: Bad request
- `401`: The git provider rejected the stored credential - the connection must be re-authorized
- `404`: Repository not found
- `500`: Internal server error

## Changes

- **2026-09-07** `c2a1f69745e7`: 1 info
  - added the optional property `presets/items/dockerfilePath` to the response with the `200` status
- **2026-09-07** `7a3103561bd0`: 1 warning
  - removed the optional property `presets/items/dockerfilePath` from the response with the `200` status
- **2026-09-07** `7fcff272f099`: 1 info
  - added the optional property `presets/items/dockerfilePath` to the response with the `200` status
- **2026-09-07** `c1fa498b6377`: 1 warning
  - removed the optional property `presets/items/dockerfilePath` from the response with the `200` status
- **2026-09-07** `c43de0e360be`: 1 info
  - added the optional property `presets/items/dockerfilePath` to the response with the `200` status

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/repositories/:repository_id/preset/live/get.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
