curl --request POST \
--url https://api.quiva.ai/hub/workflows \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "MyWorkflow",
"collection": "ms.hub.config.collection.workflow.1234567890",
"description": "A workflow that processes data",
"config": {
"nodes": [
{
"data": {
"id": "start",
"name": "Start",
"node_type": "map",
"payload": {
"message": "Start of workflow"
}
}
},
{
"data": {
"id": "process",
"name": "Process",
"node_type": "function",
"subject": "quiva-function.process-function",
"payload": {
"input": "{start}"
}
}
}
],
"edges": [
{
"source": "start",
"target": "process",
"id": "edge1"
}
],
"result": "process"
}
}
'