Skip to main content

Create Document Collection

POST 

/v1/collections/:workspace_id

Create a new document collection.

Args

workspace_id (str): The ID of the workspace, document_collection (DocumentCollectionCreate): The document collection to create, repository_collection: DocumentCollectionRepository = Depends(get_repository(DocumentCollectionRepository)), user (TokenData): The token data of the authenticated user,

Returns

DocumentCollectionCreate: The created document collection.

Raises

HTTP_409: If a document collection with the same name already exists in the workspace.

Request

Responses

Successful Response