Create collection
Create the collections with the same names. Otherwise given the error.
- knowledgearticles
- closedtickets
- assignmentgrouphub
**Endpoint:** http://{{API_URL}}/external/api/collections/create
**Method:** `POST`
**Description:** This endpoint allows users to create collection in the database
**Request Body:**
{
"name": "examplecollection",
"description": "this is an example collection",
"source": "exampleSource"
}
Response:
{
"collection": {
"acknowledged": true,
"insertedId": "1"
}
}
- The response gives an id as “insertedId” of the collection created, which will be used to insert documents into that specific collection.