---
title: "Choose whether a GitLab workspace follows every project of its group or only the projects it monitors"
method: PATCH
path: "/workspaces/{workspaceSlug}/repositories/selection"
tags: ["workspace"]
---

# Choose whether a GitLab workspace follows every project of its group or only the projects it monitors

`PATCH /workspaces/{workspaceSlug}/repositories/selection`

## Request

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

## Path parameters

- `workspaceSlug` string, required

## Request body

- GitLabRepositorySelection: Whether a GitLab workspace follows every project of its group or only the projects it monitors
  - `repositorySelection` 'ALL' | 'SELECTED', required: ALL admits projects that discovery later finds in the group, except stopped ones. SELECTED admits only the projects the workspace monitors.

## Response `200`

OK

- GitLabRepositorySelection: Whether a GitLab workspace follows every project of its group or only the projects it monitors
  - `repositorySelection` 'ALL' | 'SELECTED', required: ALL admits projects that discovery later finds in the group, except stopped ones. SELECTED admits only the projects the workspace monitors.

## Changes

- **2026-10-22** `b95ef253588c`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/hephaestus-build/apis/hephaestus-api/changes/workspaces/:workspaceSlug/repositories/selection/patch.md)

---

[API](https://skmtc.dev/hephaestus-build/apis/hephaestus-api.md) · [All operations](https://skmtc.dev/hephaestus-build/apis/hephaestus-api/llms.txt) · [OpenAPI document](https://skmtc.dev/hephaestus-build/apis/hephaestus-api/revisions/3592ab716973?raw)
