---
title: "Limit a connection to one folder"
method: PUT
path: "/v1/sources/connections/{id}/root-folder"
tags: ["Sources"]
---

# Limit a connection to one folder

`PUT /v1/sources/connections/{id}/root-folder`

## Request

- Base URL: `https://api.talonic.com`
- URL: `https://api.talonic.com/v1/sources/connections/{id}/root-folder`
- Auth: HTTP bearer

Limits a file store connection to one folder: browsing, importing and syncing stay inside it. An empty or null `folder_id` lifts the limit. Allowed to the person who connected it, or a member with the Integrations permission; a personal connection only to the person who connected it.

**Scope:** `sources:write`. A key holding only the legacy `write` scope does not satisfy it.

## Path parameters

- `id` string, uuid, required

## Request body

- object
  - `folder_id` string, nullable: Folder id from `GET /v1/sources/{id}/browse`; empty or null lifts the limit.
  - `name` string: Folder name to show.

## Response `200`

The connection with its folder limit.

- SourceConnection
  - `id` string, uuid, required
  - `customer_id` string, uuid
  - `type` string, required: Connector type, e.g. `s3`, `gmail`, `google_drive`, `sql`.
  - `status` 'active' | 'revoked', required
  - `name` string, required
  - `config` object: Connector settings.
  - `sync_status` 'idle' | 'queued' | 'syncing' | 'error'
  - `sync_error` string, nullable
  - `last_synced_at` string, date-time, nullable
  - `sync_interval` 'off' | 'hourly' | 'daily' | 'weekly' | 'every_minute'
  - `sync_scope` object, nullable
  - `document_count` integer
  - `connected_by` string, uuid, nullable: The person who connected it.
  - `created_at` string, date-time
  - `updated_at` string, date-time

## Other responses

- `400`: The request is invalid.
- `401`: Missing or invalid API key.
- `403`: The API key does not have the required scope.
- `404`: The requested resource was not found.
- `429`: Daily rate limit exceeded.

## Changes

- **2026-11-26** `622d429de7ea`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/talonic/apis/talonic-api/changes/v1/sources/connections/:id/root-folder/put.md)

---

[API](https://skmtc.dev/talonic/apis/talonic-api.md) - [All operations](https://skmtc.dev/talonic/apis/talonic-api/llms.txt) - [OpenAPI document](https://skmtc.dev/talonic/apis/talonic-api/revisions/9f6d53e2ab5e?raw)
