Skip to main content
POST
/
v1
/
collections
/
create
Create Collection
curl --request POST \
  --url https://api.clarm.com/v1/collections/create \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "sources": [
    123
  ]
}
'
{
  "id": 123,
  "name": "<string>",
  "sources": [
    {
      "id": 123,
      "name": "<string>",
      "type": "<string>",
      "configuration": {}
    }
  ]
}
Create a new collection by combining multiple data sources. Collections allow you to group related sources together for more targeted searches and knowledge organization.

Usage

You can only add sources (connectors) that you have access to. The API will validate that all specified source IDs exist and are accessible to your user account.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
name
string
required
sources
integer[]

List of source IDs to add to the collection

Response

Successful Response

id
integer
required
name
string
required
sources
SourceResponse · object[]

List of sources in the collection