Gewährt, ändert oder entzieht Zugriff auf eine bestehende Wissensdatenbank. Ziele sind Personen und Workspace-API-Schlüssel. Gruppen bleiben im In-App-Teilen.
API-Key-Scope: Erfordert einen API-Schlüssel mit dem KNOWLEDGE_FOLDER_API Scope. Der API-Schlüssel selbst braucht die Rolle Bearbeiter auf der Wissensdatenbank. Siehe Wissensdatenbanken mit der API teilen für die Einrichtung.
Wissensdatenbanken: Die Knowledge Folder API verwaltet Ressourcen, die in der Library als Wissensdatenbanken erscheinen.
Hochladen, aktualisieren, löschen, Zugriff teilen und umbenennen
Ein Schlüssel nur mit Betrachter-Zugriff, auch über die API-Suche der Wissensdatenbank, kann diese Endpoints nicht aufrufen.Ein Bearbeiter-Workspace-Schlüssel kann andere qualifizierte Workspace-Schlüssel freigeben, auch wenn der Schlüsselbesitzer kein Workspace-Admin ist. Der Teilen-Dialog in der App listet API-Schlüssel weiterhin nur für Workspace-Admins.
User-IDs und Workspace-API-Schlüssel-IDs. Minimum: 1. Maximum: 100.
role
string
Ja
USER oder EDITOR
Alle IDs müssen zu einem menschlichen Workspace-Mitglied oder einem qualifizierten Workspace-API-Schlüssel gehören. Gruppen-IDs werden nicht akzeptiert. Persönliche API-Schlüssel sind nicht berechtigt. Fehlt eine ID oder ist sie nicht berechtigt, schlägt die Anfrage fehl und es wird nichts geschrieben.
Ungültiger Body, unzulässiges Ziel oder Änderung am Besitzer
401
Ungültiger oder fehlender API-Schlüssel
403
Fehlender KNOWLEDGE_FOLDER_API Scope, oder der Schlüssel ist kein Bearbeiter dieser Wissensdatenbank
404
Wissensdatenbank oder Zugriffs-Ziel nicht gefunden
429
Rate Limit überschritten
500
Unerwarteter Serverfehler
Langdock blockiert bewusst Browser-basierte Anfragen, um deinen API-Schlüssel zu schützen und die Sicherheit deiner Anwendungen zu gewährleisten. Weitere Informationen findest du in unserem Guide zu Best Practices für API-Schlüssel.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Docs","colors":{"primary":"#4469FC","light":"#ECF0FF","dark":"#0D001D"},"logo":{"light":"https://mintcdn.com/langdock-34/URgvNwU7CYGZq8R7/logo/light.svg?fit=max\u0026auto=format\u0026n=URgvNwU7CYGZq8R7\u0026q=85\u0026s=594b4bd597e2629fb1a7dccfae6aa1c4","dark":"https://mintcdn.com/langdock-34/URgvNwU7CYGZq8R7/logo/dark.svg?fit=max\u0026auto=format\u0026n=URgvNwU7CYGZq8R7\u0026q=85\u0026s=d063d52fb4d331afb82adad972214673"},"favicon":"https://mintcdn.com/langdock-34/KbxhVmfYOcTup72x/favicon.png?fit=max\u0026auto=format\u0026n=KbxhVmfYOcTup72x\u0026q=85\u0026s=e12cd6cccfe5c94bf4ae6ea4fba7959c","background":{"color":{"dark":"#090014"}},"navbar":{"primary":{"type":"button","label":"Back to app","href":"https://app.langdock.com"}},"footer":{"socials":{"linkedin":"https://www.linkedin.com/company/langdock"}},"errors":{"404":{"redirect":true}},"contextual":{"options":["copy","view","mcp","cursor","vscode",{"title":"Ask Langdock","description":"Ask Langdock about the current page","icon":"/favicon.png","href":{"base":"https://app.langdock.com/chat","query":[{"key":"q","value":"Read from https://docs.langdock.com$path.md so I can ask questions about it."},{"key":"sendPrompt","value":"true"}]}}],"display":"header"},"styling":{"latex":true},"navigation":{"global":{"anchors":[{"anchor":"Changelog","icon":"newspaper","href":"https://www.langdock.com/changelog"},{"anchor":"Status","icon":"signal-bars","href":"https://status.langdock.com/"},{"anchor":"Support","icon":"messages-question","href":"https://www.langdock.com/contact-us"}]},"languages":[{"language":"en","default":true,"href":"en/using-langdock/get-started/introduction"},{"language":"de","href":"de/using-langdock/get-started/introduction"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"langdock-34","hasAudioNarration":false,"actualSubdomain":"langdock-34","customDomains":["docs.langdock.com"],"gitSource":{"type":"github","owner":"langdock","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ae2596e5bd361c12dc2d13a","collectionId":"5b5dfdc5-7192-4208-bba1-253d72fae631","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ae2596e5bd361c12dc2d13a"},"feedback":{"thumbs":true,"agentFeedback":false},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"REMOVE_BRANDING":{"status":"DISABLED"},"CONTEXTUAL_FEEDBACK":{"status":"DISABLED"},"CODE_SNIPPET_FEEDBACK":{"status":"DISABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6ae2596e5bd361c12dc2d13a","clientVersion":"0.0.4044","searchFilterCounts":[{"language":"en","tag":"Using Langdock","count":133},{"language":"de","tag":"Langdock nutzen","count":133},{"language":"en","tag":"Developer","count":118},{"language":"de","tag":"Entwickler","count":118},{"language":"en","tag":"Admin","count":100},{"language":"de","tag":"Admin","count":100},{"language":"en","tag":"Manage Integrations","count":43},{"language":"de","tag":"Integrationen verwalten","count":43},{"language":"en","tag":"Guides","count":40},{"language":"de","tag":"Anleitungen","count":40},{"language":"en","tag":"Workflows","count":28},{"language":"de","tag":"Workflows","count":28},{"language":"en","tag":"Billing API","count":19},{"language":"en","tag":"Integrations","count":19},{"language":"de","tag":"Billing API","count":19},{"language":"de","tag":"Integrationen","count":19},{"language":"en","tag":"Node Types","count":18},{"language":"de","tag":"Node Types","count":18},{"language":"en","tag":"Integration Setup Guides","count":17},{"language":"de","tag":"Integrations-Setup-Anleitungen","count":17}]},"assistantConfig":{"deflection":{"enabled":false}},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"de/developer/knowledge-folder-api/share-access","slug":"/de/developer/knowledge-folder-api/share-access","pageMetadata":{"title":"Zugriff auf Wissensdatenbanken teilen","description":"Gewähre, ändere oder entziehe Zugriff auf eine Wissensdatenbank für Personen und Workspace-API-Schlüssel","openapi":"post /knowledge/{folderId}/access","keywords":["api","wissensdatenbank","teilen","zugriff","api-schlüssel"],"href":"/de/developer/knowledge-folder-api/share-access"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Gewähre, ändere oder entziehe Zugriff auf eine Wissensdatenbank für Personen und Workspace-API-Schlüssel\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Info,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Info)_missingMdxReference(`Info`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Gewährt, ändert oder entzieht Zugriff auf eine bestehende Wissensdatenbank. Ziele sind Personen und Workspace-API-Schlüssel. Gruppen bleiben im `,_jsx(_components.a,{href:`/de/developer/knowledge-folder-api/sharing`,children:`In-App-Teilen`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`bevor-du-startest`,children:`Bevor du startest`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`API-Key-Scope`}),`: Erfordert einen API-Schlüssel mit dem `,_jsx(_components.code,{children:`KNOWLEDGE_FOLDER_API`}),` Scope. Der API-Schlüssel selbst braucht die Rolle Bearbeiter auf der Wissensdatenbank. Siehe `,_jsx(_components.a,{href:`/de/developer/knowledge-folder-api/sharing`,children:`Wissensdatenbanken mit der API teilen`}),` für die Einrichtung.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Wissensdatenbanken`}),`: Die Knowledge Folder API verwaltet Ressourcen, die in der Library als Wissensdatenbanken erscheinen.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`basis-url`,children:`Basis-URL`}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`https://api.langdock.com`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsxs(Warning,{children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`Dedicated Deployments`})}),_jsxs(_components.p,{children:[`Ersetze `,_jsx(_components.code,{children:`api.langdock.com`}),` durch `,_jsx(_components.code,{children:`\u003cyour-deployment-url>/api/public`}),` in allen Anfragen.`]})]}),`\n`,_jsx(Heading,{level:`2`,id:`rollen`,children:`Rollen`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`API-Wert`}),_jsx(_components.th,{children:`Label in Dateien`}),_jsx(_components.th,{children:`Zugriff`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`USER`})}),_jsx(_components.td,{children:`Betrachter`}),_jsx(_components.td,{children:`Suchen und Dateien abrufen`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`EDITOR`})}),_jsx(_components.td,{children:`Bearbeiter`}),_jsx(_components.td,{children:`Hochladen, aktualisieren, löschen, Zugriff teilen und umbenennen`})]})]})]}),`\n`,_jsx(_components.p,{children:`Ein Schlüssel nur mit Betrachter-Zugriff, auch über die API-Suche der Wissensdatenbank, kann diese Endpoints nicht aufrufen.`}),`\n`,_jsx(_components.p,{children:`Ein Bearbeiter-Workspace-Schlüssel kann andere qualifizierte Workspace-Schlüssel freigeben, auch wenn der Schlüsselbesitzer kein Workspace-Admin ist. Der Teilen-Dialog in der App listet API-Schlüssel weiterhin nur für Workspace-Admins.`}),`\n`,_jsx(Heading,{level:`2`,id:`zugriff-gewähren`,children:`Zugriff gewähren`}),`\n`,_jsx(_components.p,{children:_jsx(_components.code,{children:`POST /knowledge/{folderId}/access`})}),`\n`,_jsx(Heading,{level:`3`,id:`pfadparameter`,children:`Pfadparameter`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Parameter`}),_jsx(_components.th,{children:`Typ`}),_jsx(_components.th,{children:`Pflicht`}),_jsx(_components.th,{children:`Beschreibung`})]})}),_jsx(_components.tbody,{children:_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`folderId`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Ja`}),_jsx(_components.td,{children:`Die ID der Wissensdatenbank`})]})})]}),`\n`,_jsx(Heading,{level:`3`,id:`request-body`,children:`Request Body`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Feld`}),_jsx(_components.th,{children:`Typ`}),_jsx(_components.th,{children:`Pflicht`}),_jsx(_components.th,{children:`Beschreibung`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`targetIds`})}),_jsx(_components.td,{children:`string[]`}),_jsx(_components.td,{children:`Ja`}),_jsxs(_components.td,{children:[`User-IDs und Workspace-API-Schlüssel-IDs. Minimum: `,_jsx(_components.code,{children:`1`}),`. Maximum: `,_jsx(_components.code,{children:`100`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`role`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Ja`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`USER`}),` oder `,_jsx(_components.code,{children:`EDITOR`})]})]})]})]}),`\n`,_jsx(_components.p,{children:`Alle IDs müssen zu einem menschlichen Workspace-Mitglied oder einem qualifizierten Workspace-API-Schlüssel gehören. Gruppen-IDs werden nicht akzeptiert. Persönliche API-Schlüssel sind nicht berechtigt. Fehlt eine ID oder ist sie nicht berechtigt, schlägt die Anfrage fehl und es wird nichts geschrieben.`}),`\n`,_jsx(Heading,{level:`3`,id:`gewähren-mit-curl`,children:`Gewähren mit cURL`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`10`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`10`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api.langdock.com/knowledge/{folderId}/access\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer YOUR_API_KEY\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"targetIds\": [`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"7c9e6679-7425-40de-944b-e07fc1f90ae7\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"550e8400-e29b-41d4-a716-446655440000\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ],`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"role\": \"EDITOR\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`gewähren-mit-javascript`,children:`Gewähren mit JavaScript`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`23`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`23`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` axios`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` require`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"axios\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`async`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` function`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` grantAccess`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`folderId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`targetIds`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`role`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` response`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` axios`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`post`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\" `https://api.langdock.com/knowledge/\"}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`folderId`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"/access`\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`targetIds`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`role`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` headers:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` Authorization:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Bearer YOUR_API_KEY\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"application/json\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` );`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` return`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`data`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` result`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` grantAccess`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"3fa85f64-5717-4562-b3fc-2c963f66afa6\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"7c9e6679-7425-40de-944b-e07fc1f90ae7\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"EDITOR\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`result`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`result`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`granted`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`erfolgreiche-antwort-200-ok`,children:`Erfolgreiche Antwort (200 OK)`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`17`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`17`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"success\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"result\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"granted\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"USER\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"targetId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"7c9e6679-7425-40de-944b-e07fc1f90ae7\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"role\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"EDITOR\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"API_KEY\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"targetId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"550e8400-e29b-41d4-a716-446655440000\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"role\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"EDITOR\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`rolle-ändern`,children:`Rolle ändern`}),`\n`,_jsx(_components.p,{children:_jsx(_components.code,{children:`PATCH /knowledge/{folderId}/access`})}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Feld`}),_jsx(_components.th,{children:`Typ`}),_jsx(_components.th,{children:`Pflicht`}),_jsx(_components.th,{children:`Beschreibung`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`type`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Ja`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`USER`}),` oder `,_jsx(_components.code,{children:`API_KEY`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`targetId`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Ja`}),_jsx(_components.td,{children:`ID der Person oder des Workspace-Schlüssels`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`role`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Ja`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`USER`}),` oder `,_jsx(_components.code,{children:`EDITOR`})]})]})]})]}),`\n`,_jsx(_components.p,{children:`Du kannst den Zugriff des Besitzers nicht ändern. Übertrage die Besitzerschaft zuerst in Dateien. Fehlt noch eine Freigabe, legt diese Anfrage sie an.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`8`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`8`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` PATCH`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api.langdock.com/knowledge/{folderId}/access\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer YOUR_API_KEY\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"type\": \"API_KEY\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"targetId\": \"550e8400-e29b-41d4-a716-446655440000\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"role\": \"USER\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`3`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"success\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`zugriff-entziehen`,children:`Zugriff entziehen`}),`\n`,_jsx(_components.p,{children:_jsx(_components.code,{children:`DELETE /knowledge/{folderId}/access`})}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Feld`}),_jsx(_components.th,{children:`Typ`}),_jsx(_components.th,{children:`Pflicht`}),_jsx(_components.th,{children:`Beschreibung`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`type`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Ja`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`USER`}),` oder `,_jsx(_components.code,{children:`API_KEY`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`targetId`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Ja`}),_jsx(_components.td,{children:`ID der Person oder des Workspace-Schlüssels`})]})]})]}),`\n`,_jsx(_components.p,{children:`Du kannst den Zugriff des Besitzers nicht entziehen.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`7`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`7`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` DELETE`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api.langdock.com/knowledge/{folderId}/access\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer YOUR_API_KEY\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"type\": \"API_KEY\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"targetId\": \"550e8400-e29b-41d4-a716-446655440000\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`3`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"success\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`fehlerbehandlung`,children:`Fehlerbehandlung`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Status`}),_jsx(_components.th,{children:`Bedeutung`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`400`})}),_jsx(_components.td,{children:`Ungültiger Body, unzulässiges Ziel oder Änderung am Besitzer`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`401`})}),_jsx(_components.td,{children:`Ungültiger oder fehlender API-Schlüssel`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`403`})}),_jsxs(_components.td,{children:[`Fehlender `,_jsx(_components.code,{children:`KNOWLEDGE_FOLDER_API`}),` Scope, oder der Schlüssel ist kein Bearbeiter dieser Wissensdatenbank`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`404`})}),_jsx(_components.td,{children:`Wissensdatenbank oder Zugriffs-Ziel nicht gefunden`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`429`})}),_jsx(_components.td,{children:`Rate Limit überschritten`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`500`})}),_jsx(_components.td,{children:`Unerwarteter Serverfehler`})]})]})]}),`\n`,_jsx(Info,{children:_jsxs(_components.p,{children:[`Langdock blockiert bewusst Browser-basierte Anfragen, um deinen API-Schlüssel zu schützen und die Sicherheit deiner Anwendungen zu gewährleisten. Weitere Informationen findest du in unserem Guide zu `,_jsx(_components.a,{href:`/de/admin/ai-adoption-and-rollout/best-practices/api-key-best-practices`,children:`Best Practices für API-Schlüssel`}),`.`]})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Zugriff auf Wissensdatenbanken teilen","description":"Gewähre, ändere oder entziehe Zugriff auf eine Wissensdatenbank für Personen und Workspace-API-Schlüssel","openapi":"post /knowledge/{folderId}/access","keywords":["api","wissensdatenbank","teilen","zugriff","api-schlüssel"],"href":"/de/developer/knowledge-folder-api/share-access"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Bevor du startest","slug":"bevor-du-startest","depth":2,"children":[]},{"title":"Basis-URL","slug":"basis-url","depth":2,"children":[]},{"title":"Rollen","slug":"rollen","depth":2,"children":[]},{"title":"Zugriff gewähren","slug":"zugriff-gewähren","depth":2,"children":[{"title":"Pfadparameter","slug":"pfadparameter","depth":3,"children":[]},{"title":"Request Body","slug":"request-body","depth":3,"children":[]},{"title":"Gewähren mit cURL","slug":"gewähren-mit-curl","depth":3,"children":[]},{"title":"Gewähren mit JavaScript","slug":"gewähren-mit-javascript","depth":3,"children":[]},{"title":"Erfolgreiche Antwort (200 OK)","slug":"erfolgreiche-antwort-200-ok","depth":3,"children":[]}]},{"title":"Rolle ändern","slug":"rolle-ändern","depth":2,"children":[]},{"title":"Zugriff entziehen","slug":"zugriff-entziehen","depth":2,"children":[]},{"title":"Fehlerbehandlung","slug":"fehlerbehandlung","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"summary":"Grant Knowledge base access to people or workspace API keys","parameters":["cb0754b2-e2bd-41d3-b443-ead09c7d6300"],"requestBody":"47f1585d-6e69-4005-be61-055bbdbcbb2a","responses":{"200":"bc61fd99-ab21-450d-b992-c014ed858dd8"},"security":["0bbc69e3-8c85-48dc-bf69-1d675752c187"],"method":"post","type":"path","servers":["1381f949-6199-4dbd-84cd-46b83b072e11"],"path":"/knowledge/{folderId}/access","baseUrlOptions":["https://api.langdock.com"],"title":"Grant Knowledge base access to people or workspace API keys","description":"Gewähre, ändere oder entziehe Zugriff auf eine Wissensdatenbank für Personen und Workspace-API-Schlüssel","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"cb0754b2-e2bd-41d3-b443-ead09c7d6300":{"name":"folderId","in":"path","required":true,"description":"The ID of the knowledge folder","schema":{"type":"string","isRequired":true,"description":"The ID of the knowledge folder","uniqueKey":"","typeLabel":"string"}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["targetIds","role"],"properties":{"targetIds":{"type":"array","items":{"type":"string","format":"uuid","uniqueKey":"targetIds.items.[INDEX]","typeLabel":"string\u003cuuid>"},"minItems":1,"maxItems":100,"isRequired":true,"uniqueKey":"targetIds","typeLabel":"string\u003cuuid>[]"},"role":{"type":"string","enum":["USER","EDITOR"],"isRequired":true,"uniqueKey":"role","typeLabel":"enum\u003cstring>"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"targetIds":["3c90c3cc-0d44-4b50-8888-8dd25736052a"]}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"bc61fd99-ab21-450d-b992-c014ed858dd8":{"description":"Access granted successfully","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}}},"security":{"0bbc69e3-8c85-48dc-bf69-1d675752c187":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"API Key","description":"API key as Bearer token. Format \"Bearer YOUR_API_KEY\"","scopes":[],"schemeName":"bearerAuth"}}},"servers":{"1381f949-6199-4dbd-84cd-46b83b072e11":{"url":"https://api.langdock.com","description":"Production"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","bearerFormat":"API Key","description":"API key as Bearer token. Format \"Bearer YOUR_API_KEY\"","scopes":[],"schemeName":"bearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"API key as Bearer token. Format \"Bearer YOUR_API_KEY\"","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearerAuth","name":"Authorization"}],"title":"bearerAuth"}]},"originalFileLocation":"openapi.yaml"},"subdomain":"langdock-34","siteName":"Docs","title":"Zugriff auf Wissensdatenbanken teilen - Docs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/en/developer/knowledge-folder-api/share-access","matchLevel":1},"de":{"href":"/de/developer/knowledge-folder-api/share-access","matchLevel":0}}},"lastModified":"2026-09-02T09:11:52.620Z","originalFileLocation":"de/developer/knowledge-folder-api/share-access.mdx","locale":"de"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Gewähre, ändere oder entziehe Zugriff auf eine Wissensdatenbank für Personen und Workspace-API-Schlüssel\">\u003cmeta data-mint-head name=\"application-name\" content=\"Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/langdock-34/8EMNQyrrZlRONhj1/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/langdock-34/8EMNQyrrZlRONhj1/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/langdock-34/8EMNQyrrZlRONhj1/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/langdock-34/8EMNQyrrZlRONhj1/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/langdock-34/8EMNQyrrZlRONhj1/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/langdock-34/8EMNQyrrZlRONhj1/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/langdock-34/8EMNQyrrZlRONhj1/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/langdock-34/8EMNQyrrZlRONhj1/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/langdock-34/8EMNQyrrZlRONhj1/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Zugriff auf Wissensdatenbanken teilen - Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Gewähre, ändere oder entziehe Zugriff auf eine Wissensdatenbank für Personen und Workspace-API-Schlüssel\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.langdock.com/de/developer/knowledge-folder-api/share-access\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://langdock-34.mintlify.app/_mintlify/api/og/v2?division=Knowledge+Folder+API\u0026amp;title=Zugriff+auf+Wissensdatenbanken+teilen\u0026amp;description=Gew%C3%A4hre%2C+%C3%A4ndere+oder+entziehe+Zugriff+auf+eine+Wissensdatenbank+f%C3%BCr+Personen+und+Workspace-API-Schl%C3%BCssel\u0026amp;theme=af251cb8027ba7e8fe3cc77e\u0026amp;signature=e05ff3e99a3bc4c6864698ee5311db0d442f4d5fe16222825fc778d4cbf01cdf\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Zugriff auf Wissensdatenbanken teilen - Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Gewähre, ändere oder entziehe Zugriff auf eine Wissensdatenbank für Personen und Workspace-API-Schlüssel\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://langdock-34.mintlify.app/_mintlify/api/og/v2?division=Knowledge+Folder+API\u0026amp;title=Zugriff+auf+Wissensdatenbanken+teilen\u0026amp;description=Gew%C3%A4hre%2C+%C3%A4ndere+oder+entziehe+Zugriff+auf+eine+Wissensdatenbank+f%C3%BCr+Personen+und+Workspace-API-Schl%C3%BCssel\u0026amp;theme=af251cb8027ba7e8fe3cc77e\u0026amp;signature=e05ff3e99a3bc4c6864698ee5311db0d442f4d5fe16222825fc778d4cbf01cdf\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/langdock-34/8EMNQyrrZlRONhj1/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#4469FC\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.langdock.com/de/developer/knowledge-folder-api/share-access\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/de/developer/knowledge-folder-api/share-access.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"de\" href=\"https://docs.langdock.com/de/developer/knowledge-folder-api/share-access\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://docs.langdock.com/en/developer/knowledge-folder-api/share-access\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://docs.langdock.com/en/developer/knowledge-folder-api/share-access\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.langdock.com/#organization\",\"name\":\"Docs\",\"url\":\"https://docs.langdock.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/langdock-34/URgvNwU7CYGZq8R7/logo/light.svg?fit=max\u0026auto=format\u0026n=URgvNwU7CYGZq8R7\u0026q=85\u0026s=594b4bd597e2629fb1a7dccfae6aa1c4\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.langdock.com#website\",\"name\":\"Docs\",\"url\":\"https://docs.langdock.com\",\"publisher\":{\"@id\":\"https://docs.langdock.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.langdock.com/de/developer/knowledge-folder-api/share-access#webpage\",\"url\":\"https://docs.langdock.com/de/developer/knowledge-folder-api/share-access\",\"name\":\"Zugriff auf Wissensdatenbanken teilen\",\"description\":\"Gewähre, ändere oder entziehe Zugriff auf eine Wissensdatenbank für Personen und Workspace-API-Schlüssel\",\"dateModified\":\"2026-09-02T09:11:52.620Z\",\"isPartOf\":{\"@id\":\"https://docs.langdock.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.langdock.com/de/developer/knowledge-folder-api/share-access#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.langdock.com/de/developer/knowledge-folder-api/share-access#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Knowledge Folder API\",\"item\":\"https://docs.langdock.com/de/developer/knowledge-folder-api/knowledge-folder-overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Zugriff auf Wissensdatenbanken teilen\",\"item\":\"https://docs.langdock.com/de/developer/knowledge-folder-api/share-access\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.langdock.com/de/developer/knowledge-folder-api/share-access#apireference\",\"headline\":\"Zugriff auf Wissensdatenbanken teilen\",\"name\":\"Zugriff auf Wissensdatenbanken teilen\",\"description\":\"Gewähre, ändere oder entziehe Zugriff auf eine Wissensdatenbank für Personen und Workspace-API-Schlüssel\",\"url\":\"https://docs.langdock.com/de/developer/knowledge-folder-api/share-access\",\"mainEntityOfPage\":{\"@id\":\"https://docs.langdock.com/de/developer/knowledge-folder-api/share-access#webpage\"},\"dateModified\":\"2026-09-02T09:11:52.620Z\",\"keywords\":\"api, wissensdatenbank, teilen, zugriff, api-schlüssel\",\"publisher\":{\"@id\":\"https://docs.langdock.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.langdock.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Docs\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Docs","nav":{"global":{"anchors":[{"anchor":"Changelog","icon":"newspaper","href":"https://www.langdock.com/changelog"},{"anchor":"Status","icon":"signal-bars","href":"https://status.langdock.com/"},{"anchor":"Support","icon":"messages-question","href":"https://www.langdock.com/contact-us"}]},"languages":[{"language":"en","default":true,"pages":[{"title":"en","href":"/en/developer/knowledge-folder-api/share-access"}]},{"language":"de","tabs":[{"tab":"Langdock nutzen","pages":[{"title":"Langdock nutzen","href":"/de/using-langdock/get-started/introduction"}]},{"tab":"Entwickler","groups":[{"group":"Überblick","pages":[{"title":"API Einführung","href":"/de/developer/overview/api-introduction"},{"title":"Cookbook","href":"/de/developer/overview/cookbook"}]},{"group":"Completion API","pages":[{"title":"Completion API Übersicht","href":"/de/developer/completion-api/completion-overview"},{"title":"OpenAI Chat Completion","openapi":"POST /openai/{region}/v1/chat/completions","href":"/de/developer/completion-api/openai"},{"title":"OpenAI Responses API","openapi":"POST /openai/{region}/v1/responses","href":"/de/developer/completion-api/openai-responses"},{"title":"OpenAI Image Generations","openapi":"POST /openai/{region}/v1/images/generations","href":"/de/developer/completion-api/openai-images"},{"title":"Anthropic Messages","openapi":"POST /anthropic/{region}/v1/messages","href":"/de/developer/completion-api/anthropic"},{"title":"Google Completion API","openapi":"POST /google/{region}/v1beta/models/{model}:generateContent","href":"/de/developer/completion-api/google"},{"title":"Codestral","openapi":"POST /mistral/{region}/v1/fim/completions","href":"/de/developer/completion-api/mistral"}]},{"group":"Embedding API","pages":[{"title":"OpenAI Embeddings","openapi":"POST /openai/{region}/v1/embeddings","href":"/de/developer/embedding-api/openai-embedding"}]},{"group":"Agents API","pages":[{"title":"Agents API Übersicht","href":"/de/developer/agents-api/agents-overview"},{"title":"Agenten mit API-Schlüsseln teilen","href":"/de/developer/agents-api/agent-api-guide"},{"title":"Agents Completions API","openapi":"POST /agent/v1/chat/completions","href":"/de/developer/agents-api/agent"},{"title":"Agent Get API","openapi":"GET /agent/v1/get","href":"/de/developer/agents-api/agent-get"},{"title":"Agent Create API","openapi":"POST /agent/v1/create","href":"/de/developer/agents-api/agent-create"},{"title":"Agent Update API","openapi":"PATCH /agent/v1/update","href":"/de/developer/agents-api/agent-update"},{"title":"Agent Veröffentlichen API","openapi":"POST /agent/v1/publish","href":"/de/developer/agents-api/agent-publish"},{"title":"Agent Deaktivieren API","openapi":"PATCH /agent/v1/disable","href":"/de/developer/agents-api/agent-disable"},{"title":"Modelle für Agent API","openapi":"GET /agent/v1/models","href":"/de/developer/agents-api/agent-models"},{"title":"Upload Attachment API","openapi":"POST /attachment/v1/upload","href":"/de/developer/agents-api/upload-attachments"},{"title":"Delete Attachment API","openapi":"DELETE /attachment/v1/delete","href":"/de/developer/agents-api/delete-attachments"},{"title":"Agenten-Migrations-Anleitung","href":"/de/developer/agents-api/agent-migration"},{"title":"Migration von der Assistants API zur Agents API","href":"/de/developer/agents-api/assistant-to-agent-migration"}]},{"group":"Integrations API","pages":[{"title":"Integrations API Übersicht","href":"/de/developer/integrations-api/integrations-overview"},{"title":"Integrationen auflisten","openapi":"GET /integrations/v1/get","href":"/de/developer/integrations-api/list-integrations"},{"title":"Integration erstellen","openapi":"POST /integrations/v1/create","href":"/de/developer/integrations-api/create-integration"},{"title":"Integration abrufen","openapi":"GET /integrations/v1/{integrationId}","href":"/de/developer/integrations-api/get-integration"},{"title":"Integration aktualisieren","openapi":"PATCH /integrations/v1/{integrationId}","href":"/de/developer/integrations-api/update-integration"},{"title":"Integrations-Icon abrufen","openapi":"GET /integrations/v1/{integrationId}/icon","href":"/de/developer/integrations-api/get-icon"},{"title":"Integrations-Icon ersetzen","openapi":"PUT /integrations/v1/{integrationId}/icon","href":"/de/developer/integrations-api/replace-icon"},{"title":"Auth-Konfiguration aktualisieren","openapi":"PATCH /integrations/v1/{integrationId}/auth","href":"/de/developer/integrations-api/update-auth"},{"title":"Action erstellen","openapi":"POST /integrations/v1/{integrationId}/actions/create","href":"/de/developer/integrations-api/create-action"},{"title":"Action aktualisieren","openapi":"PUT /integrations/v1/{integrationId}/actions/{actionId}","href":"/de/developer/integrations-api/update-action"},{"title":"Action löschen","openapi":"DELETE /integrations/v1/{integrationId}/actions/{actionId}","href":"/de/developer/integrations-api/delete-action"},{"title":"Trigger erstellen","openapi":"POST /integrations/v1/{integrationId}/triggers/create","href":"/de/developer/integrations-api/create-trigger"},{"title":"Trigger aktualisieren","openapi":"PUT /integrations/v1/{integrationId}/triggers/{triggerId}","href":"/de/developer/integrations-api/update-trigger"},{"title":"Trigger löschen","openapi":"DELETE /integrations/v1/{integrationId}/triggers/{triggerId}","href":"/de/developer/integrations-api/delete-trigger"}]},{"group":"Skills API","pages":[{"title":"Skills API Übersicht","href":"/de/developer/skills-api/skills-overview"},{"title":"Skills auflisten","openapi":"GET /skills/v1","href":"/de/developer/skills-api/list-skills"},{"title":"Skill erstellen","openapi":"POST /skills/v1","href":"/de/developer/skills-api/create-skill"},{"title":"Skill abrufen","openapi":"GET /skills/v1/{skillId}","href":"/de/developer/skills-api/get-skill"},{"title":"Skill-Datei abrufen","openapi":"GET /skills/v1/{skillId}/files","href":"/de/developer/skills-api/get-skill-file"},{"title":"Skill aktualisieren","openapi":"PATCH /skills/v1/{skillId}","href":"/de/developer/skills-api/update-skill"},{"title":"Skill löschen","openapi":"DELETE /skills/v1/{skillId}","href":"/de/developer/skills-api/delete-skill"},{"title":"Skill importieren","openapi":"POST /skills/v1/import","href":"/de/developer/skills-api/import-skill"}]},{"group":"Knowledge Folder API","pages":[{"title":"Knowledge Folder API Übersicht","href":"/de/developer/knowledge-folder-api/knowledge-folder-overview"},{"title":"Wissensdatenbanken mit der API teilen","description":"Erfahre, wie du einen API-Schlüssel erstellst und eine Wissensdatenbank mit diesem API-Schlüssel teilst.","href":"/de/developer/knowledge-folder-api/sharing"},{"title":"Zugriff auf Wissensdatenbanken teilen","openapi":"post /knowledge/{folderId}/access","href":"/de/developer/knowledge-folder-api/share-access"},{"title":"Wissensdatenbanken auflisten","description":"Liste die Wissensdatenbanken, die ein Workspace-API-Schlüssel bereits nutzen kann","openapi":"get /knowledge","href":"/de/developer/knowledge-folder-api/list-knowledge-folders"},{"title":"Datei in eine Wissensdatenbank hochladen","openapi":"post /knowledge/{folderId}","href":"/de/developer/knowledge-folder-api/upload-file"},{"title":"Attachment in einer Wissensdatenbank aktualisieren","openapi":"patch /knowledge/{folderId}","href":"/de/developer/knowledge-folder-api/update-attachment"},{"title":"Wissensdatenbank aktualisieren","openapi":"patch /knowledge/{folderId}/folder","href":"/de/developer/knowledge-folder-api/update-folder"},{"title":"Dateien aus Wissensdatenbank abrufen","openapi":"get /knowledge/{folderId}/list","href":"/de/developer/knowledge-folder-api/retrieve-files"},{"title":"Attachment aus Wissensdatenbank löschen","openapi":"delete /knowledge/{folderId}/{attachmentId}","href":"/de/developer/knowledge-folder-api/delete-attachment"},{"title":"Wissensdatenbank durchsuchen","openapi":"post /knowledge/search","href":"/de/developer/knowledge-folder-api/search-knowledge-folder"}]},{"group":"Prompt Library API","pages":[{"title":"Prompt Library API Übersicht","href":"/de/developer/prompts-api/prompts-overview"},{"title":"Prompts auflisten","openapi":"GET /prompts/v1","href":"/de/developer/prompts-api/list-prompts"},{"title":"Prompt erstellen","openapi":"POST /prompts/v1","href":"/de/developer/prompts-api/create-prompt"},{"title":"Prompt abrufen","openapi":"GET /prompts/v1/{promptId}","href":"/de/developer/prompts-api/get-prompt"},{"title":"Prompt aktualisieren","openapi":"PATCH /prompts/v1/{promptId}","href":"/de/developer/prompts-api/update-prompt"},{"title":"Prompt löschen","openapi":"DELETE /prompts/v1/{promptId}","href":"/de/developer/prompts-api/delete-prompt"},{"title":"Prompt-Ordner auflisten","openapi":"GET /prompts/v1/folders","href":"/de/developer/prompts-api/list-folders"},{"title":"Prompt-Ordner erstellen","openapi":"POST /prompts/v1/folders","href":"/de/developer/prompts-api/create-folder"},{"title":"Prompt-Ordner abrufen","openapi":"GET /prompts/v1/folders/{folderId}","href":"/de/developer/prompts-api/get-folder"},{"title":"Prompt-Ordner aktualisieren","openapi":"PATCH /prompts/v1/folders/{folderId}","href":"/de/developer/prompts-api/update-folder"},{"title":"Prompt-Ordner löschen","openapi":"DELETE /prompts/v1/folders/{folderId}","href":"/de/developer/prompts-api/delete-folder"}]},{"group":"Usage Export API","pages":[{"title":"Usage Export API Übersicht","href":"/de/developer/usage-export-api/intro-to-usage-export-api"},{"title":"Nutzer-Nutzung exportieren","openapi":"POST /export/users","href":"/de/developer/usage-export-api/export-users"},{"title":"Agenten-Nutzung exportieren","openapi":"POST /export/agents","href":"/de/developer/usage-export-api/export-agents"},{"title":"API-Schlüssel-Nutzung exportieren","openapi":"POST /export/api-keys","href":"/de/developer/usage-export-api/export-api-keys"},{"title":"Projekt-Nutzung exportieren","openapi":"POST /export/projects","href":"/de/developer/usage-export-api/export-projects"},{"title":"Modell-Nutzung exportieren","openapi":"POST /export/models","href":"/de/developer/usage-export-api/export-models"},{"title":"Workflow-Nutzung exportieren","openapi":"POST /export/workflows","href":"/de/developer/usage-export-api/export-workflows"}]},{"group":"Workflow API","pages":[{"title":"Workflow API Übersicht","href":"/de/developer/workflow-api/workflows-overview"},{"title":"Workflows auflisten","openapi":"GET /workflows/v1/list","href":"/de/developer/workflow-api/list-workflows"},{"title":"Workflow erstellen","openapi":"POST /workflows/v1/create","href":"/de/developer/workflow-api/create-workflow"},{"title":"Workflow abrufen","openapi":"GET /workflows/v1/get","href":"/de/developer/workflow-api/get-workflow"},{"title":"Workflow aktualisieren","openapi":"PATCH /workflows/v1/update","href":"/de/developer/workflow-api/update-workflow"},{"title":"Workflow veröffentlichen","openapi":"POST /workflows/v1/publish","href":"/de/developer/workflow-api/publish-workflow"},{"title":"Workflow löschen","openapi":"DELETE /workflows/v1/delete","href":"/de/developer/workflow-api/delete-workflow"},{"title":"Workflow-Ausführungen auflisten","openapi":"GET /workflows/v1/runs","href":"/de/developer/workflow-api/list-workflow-runs"},{"title":"Workflow-Ausführungs-Export-API","openapi":"GET /workflows/{workflowId}/runs","href":"/de/developer/workflow-api/intro-to-workflow-api"}]},{"group":"Scheduled Tasks API","pages":[{"title":"Scheduled Tasks API Übersicht","href":"/de/developer/scheduled-tasks-api/scheduled-tasks-overview"},{"title":"Scheduled Tasks auflisten","openapi":"GET /automations/v1","href":"/de/developer/scheduled-tasks-api/list-scheduled-tasks"},{"title":"Scheduled Task erstellen","openapi":"POST /automations/v1","href":"/de/developer/scheduled-tasks-api/create-scheduled-task"},{"title":"Scheduled Task abrufen","openapi":"GET /automations/v1/{automationId}","href":"/de/developer/scheduled-tasks-api/get-scheduled-task"},{"title":"Scheduled Task aktualisieren","openapi":"PATCH /automations/v1/{automationId}","href":"/de/developer/scheduled-tasks-api/update-scheduled-task"},{"title":"Scheduled Task löschen","openapi":"DELETE /automations/v1/{automationId}","href":"/de/developer/scheduled-tasks-api/delete-scheduled-task"},{"title":"Scheduled Task pausieren","openapi":"POST /automations/v1/{automationId}/pause","href":"/de/developer/scheduled-tasks-api/pause-scheduled-task"},{"title":"Scheduled Task fortsetzen","openapi":"POST /automations/v1/{automationId}/resume","href":"/de/developer/scheduled-tasks-api/resume-scheduled-task"},{"title":"Scheduled Task ausführen","openapi":"POST /automations/v1/{automationId}/run","href":"/de/developer/scheduled-tasks-api/run-scheduled-task"}]},{"group":"User Management API","pages":[{"title":"User Management API Übersicht","href":"/de/developer/user-management-api/user-management-overview"},{"title":"Nutzer einladen","openapi":"POST /user-management/v1/invite","href":"/de/developer/user-management-api/invite"},{"title":"Nutzerrolle ändern","openapi":"POST /user-management/v1/update-user-role","href":"/de/developer/user-management-api/update-user-role"},{"title":"Rollen auflisten","openapi":"GET /user-management/v1/roles","href":"/de/developer/user-management-api/roles"},{"title":"Nutzer deaktivieren","openapi":"POST /user-management/v1/deactivate-user","href":"/de/developer/user-management-api/deactivate-user"}]},{"group":"Billing API","pages":[{"title":"Billing API Übersicht","href":"/de/developer/billing-api/billing-api-overview"},{"title":"Billing-Modus abrufen","openapi":"GET /billing/v1/mode","href":"/de/developer/billing-api/get-mode"},{"title":"Workspace-Einstellungen abrufen","openapi":"GET /billing/v1/bring-your-own-keys/settings","href":"/de/developer/billing-api/get-settings"},{"title":"Workspace-Einstellungen ändern","openapi":"PATCH /billing/v1/bring-your-own-keys/settings","href":"/de/developer/billing-api/update-settings"},{"title":"Mitglieder pro Plan zählen","openapi":"GET /billing/v1/bring-your-own-keys/plans","href":"/de/developer/billing-api/get-plans"},{"title":"Nutzer auflisten","openapi":"GET /billing/v1/bring-your-own-keys/users","href":"/de/developer/billing-api/list-users"},{"title":"Nutzer abrufen","openapi":"GET /billing/v1/bring-your-own-keys/users/{userId}","href":"/de/developer/billing-api/get-user"},{"title":"Nutzerplan setzen","openapi":"PUT /billing/v1/bring-your-own-keys/users/{userId}/plan","href":"/de/developer/billing-api/set-user-plan"},{"title":"Extra-Usage-Budget setzen","openapi":"PUT /billing/v1/bring-your-own-keys/users/{userId}/extra-usage-budget","href":"/de/developer/billing-api/set-user-extra-usage-budget"},{"title":"Nutzerpläne in einem Rutsch setzen","openapi":"POST /billing/v1/bring-your-own-keys/users/plan/bulk","href":"/de/developer/billing-api/bulk-set-user-plans"},{"title":"Nutzungslimit-Anfragen auflisten","openapi":"GET /billing/v1/bring-your-own-keys/usage-requests","href":"/de/developer/billing-api/list-usage-requests"},{"title":"Nutzungslimit-Anfrage abrufen","openapi":"GET /billing/v1/bring-your-own-keys/usage-requests/{requestId}","href":"/de/developer/billing-api/get-usage-request"},{"title":"Nutzungslimit-Anfrage ablehnen","openapi":"POST /billing/v1/bring-your-own-keys/usage-requests/{requestId}/dismiss","href":"/de/developer/billing-api/dismiss-usage-request"},{"title":"Gruppen auflisten","openapi":"GET /billing/v1/bring-your-own-keys/groups","href":"/de/developer/billing-api/list-groups"},{"title":"Gruppe abrufen","openapi":"GET /billing/v1/bring-your-own-keys/groups/{groupId}","href":"/de/developer/billing-api/get-group"},{"title":"Monatsbudget einer Gruppe setzen","openapi":"PUT /billing/v1/bring-your-own-keys/groups/{groupId}/monthly-budget","href":"/de/developer/billing-api/set-group-monthly-budget"},{"title":"Agent-Budgets auflisten","openapi":"GET /billing/v1/bring-your-own-keys/agents","href":"/de/developer/billing-api/list-agents"},{"title":"Agent-Budget abrufen","openapi":"GET /billing/v1/bring-your-own-keys/agents/{agentId}","href":"/de/developer/billing-api/get-agent"},{"title":"Agent-Budget ändern","openapi":"PATCH /billing/v1/bring-your-own-keys/agents/{agentId}","href":"/de/developer/billing-api/update-agent-budget"}]},{"group":"Audit Logs API","pages":[{"title":"Audit Logs API Übersicht","href":"/de/developer/audit-logs-api/intro-to-audit-logs-api"},{"title":"Audit Logs auflisten","openapi":"GET /audit-logs/{workspace_id}","href":"/de/developer/audit-logs-api/list-audit-logs"}]},{"group":"Compliance API","pages":[{"title":"Tool-Parameter und Rückgabewerte exportieren","href":"/de/developer/compliance-api/export-tool-results"}]}]},{"tab":"Admin","pages":[{"title":"Admin","href":"/de/admin/workspace/workspace"}]}]}]},"basePath":"","title":"Zugriff auf Wissensdatenbanken teilen - Docs","buildId":"dpl_DeHjVRGfFnhYQwHnfC2pjeXXv8h9","deploymentId":"dpl_DeHjVRGfFnhYQwHnfC2pjeXXv8h9","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CS552b7R.js","utils-DDTCYAF2.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-De8ttokP.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-DrwRDvAh.js","snippetPresets-DtAN0nWx.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-D5rWArI6.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-O2i12wsz.js","shallow-DV8xABTt.js","getApiPlaygroundDisplay-DBZ0B5Jx.js","CodeSnippet-BVi0tPUX.js","CodeSnippets-CqASbIwY.js","Page-m07pfKpT.js","getPastedJson-DG9vsMS8.js","icon-CXzRSCr8.js","MethodPill-BdKVtEuX.js","DuplicateIcon-CZlmBrJI.js","createIcon-biFEUKPL.js","DynamicMarkdown-B54_zNBF.js","SectionHeading-DwwHK3Pt.js","axios-vUo_bRtp.js","Markdown-DfhCTwyA.js","clsx-xpJZXxdP.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-BTZUMDnx.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-DqdKa2R4.js"]}