---
title: "Change Knowledge base access for a person or workspace API key"
method: PATCH
path: "/knowledge/{folderId}/access"
---

# Change Knowledge base access for a person or workspace API key

`PATCH /knowledge/{folderId}/access`

## Request

- Base URL: `https://api.langdock.com`
- URL: `https://api.langdock.com/knowledge/{folderId}/access`
- Auth: HTTP bearer

## Path parameters

- `folderId` string, required

## Request body

- object
  - `type` 'USER' | 'API_KEY', required
  - `targetId` string, uuid, required
  - `role` 'USER' | 'EDITOR', required

## Response `200`

Access updated successfully

## Changes

- **2026-11-03** `c62bf90b4013`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/langdock/apis/langdock-api/changes/knowledge/:folderId/access/patch.md)

---

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