MCPcopy Create free account
hub / github.com/SecureAI-Tools/SecureAI-Tools / createDocumentCollection

Function createDocumentCollection

apps/web/lib/fe/document-utils.ts:17–27  ·  view source on GitHub ↗
(
  orgSlug: string,
  req: DocumentCollectionCreateRequest,
)

Source from the content-addressed store, hash-verified

15import { DocumentCollectionResponse, Id, DocumentResponse, DataSource } from "@repo/core";
16
17export const createDocumentCollection = async (
18 orgSlug: string,
19 req: DocumentCollectionCreateRequest,
20): Promise<DocumentCollectionResponse> => {
21 return (
22 await post<DocumentCollectionCreateRequest, DocumentCollectionResponse>(
23 postOrganizationsIdOrSlugDocumentCollectionApiPath(orgSlug),
24 req,
25 )
26 ).response;
27};
28
29export const updateDocumentCollection = async (
30 documentCollectionId: Id<DocumentCollectionResponse>,

Callers 2

handleSubmitFunction · 0.90
handleSubmitFunction · 0.90

Tested by

no test coverage detected