Skip to main content
POST
/
hub
/
collections
Create a new collection
curl --request POST \
  --url https://api.quiva.ai/hub/collections \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "MyNewCollection",
  "collection_type": "node",
  "description": "Collection for storing node templates"
}
'
{
"subject": "ms.hub.config.collection.node.1234567890",
"name": "MyNewCollection",
"collection_type": "node",
"topic": "1234567890",
"description": "Collection for storing node templates",
"modified": 1651395678
}

Authorizations

Authorization
string
header
required

JWT Authorization header using the Bearer scheme

Body

application/json
name
string
required

Name of the collection

collection_type
enum<string>
required

Type of the collection (node or workflow)

Available options:
node,
workflow
description
string

Optional description of the collection

Response

Collection created successfully

subject
string

Subject identifier for the collection

name
string

Name of the collection

collection_type
string

Type of the collection (node or workflow)

topic
string

Hash of the collection name

description
string

Description of the collection

modified
integer

Timestamp of last modification