Skip to main content
PATCH
/
hub
/
workflows
/
{collection_topic}
/
{flow_topic}
Update a workflow
curl --request PATCH \
  --url https://api.quiva.ai/hub/workflows/{collection_topic}/{flow_topic} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "UpdatedWorkflow",
  "description": "Updated workflow description",
  "config": {
    "nodes": [
      {
        "data": {
          "id": "start",
          "name": "Start",
          "node_type": "map",
          "payload": {
            "message": "Updated start of workflow"
          }
        }
      },
      {
        "data": {
          "id": "process",
          "name": "Process",
          "node_type": "function",
          "subject": "quiva-function.updated-process-function",
          "payload": {
            "input": "{start}"
          }
        }
      }
    ],
    "edges": [
      {
        "source": "start",
        "target": "process",
        "id": "edge1"
      }
    ],
    "result": "process"
  }
}
'
{
"subject": "ms.hub.config.workflow.draft.1234567890.98765432",
"name": "UpdatedWorkflow",
"description": "Updated workflow description",
"config": {
"nodes": [
{
"data": {
"id": "start",
"name": "Start",
"node_type": "map",
"payload": {
"message": "Updated start of workflow"
}
}
},
{
"data": {
"id": "process",
"name": "Process",
"node_type": "function",
"subject": "quiva-function.updated-process-function",
"payload": {
"input": "{start}"
}
}
}
],
"edges": [
{
"source": "start",
"target": "process",
"id": "edge1"
}
],
"result": "process"
},
"modified": 1651395678
}

Authorizations

Authorization
string
header
required

JWT Authorization header using the Bearer scheme

Path Parameters

collection_topic
string
required

The topic is a hash of the name that was used when a collection was created

flow_topic
string
required

Flow topic - hash of the names the node was created with

Body

application/json
name
string

Updated name of the workflow

description
string

Updated description of the workflow

config
object
archived
boolean

Whether the workflow is archived

Response

Workflow updated successfully

subject
string

Subject identifier for the workflow

name
string

Name of the workflow

description
string

Description of the workflow

config
object
modified
integer

Timestamp of last modification