Skip to main content
POST
/
hub
/
nodes
Create a new node
curl --request POST \
  --url https://api.quiva.ai/hub/nodes \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "collection": "ms.hub.config.collection.node.1234567890",
  "data": {
    "name": "MyNode",
    "node_type": "function",
    "subject": "quiva-function.some-function",
    "payload": {
      "param1": "value1",
      "param2": "value2"
    }
  }
}
'
{
"subject": "ms.hub.config.node.1234567890.98765432",
"collection": "ms.hub.config.collection.node.1234567890",
"data": {
"id": "some-id",
"name": "MyNode",
"node_type": "function",
"subject": "quiva-function.some-function",
"payload": {
"param1": "value1",
"param2": "value2"
}
},
"type": "created",
"modified": 1651395678
}

Authorizations

Authorization
string
header
required

JWT Authorization header using the Bearer scheme

Body

application/json
collection
string
required

Subject of the collection this node belongs to

data
object
required

Response

Node created successfully

subject
string

Subject identifier for the node

collection
string

Subject of the collection this node belongs to

data
object

Node data

type
string

Action type (created)

modified
integer

Timestamp of last modification