Skip to main content
PATCH
/
hub
/
nodes
/
batch
curl --request PATCH \
  --url https://api.quiva.ai/hub/nodes/batch \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
[
  {
    "subject": "ms.hub.config.node.805092869.98765432",
    "data": {
      "name": "ProcessPaymentV2",
      "node_type": "function",
      "subject": "quiva-function.stripe-charge-v2",
      "payload": {
        "amount": "{{trigger.amount}}",
        "currency": "{{trigger.currency}}"
      },
      "options": {
        "timeout": 45000
      }
    }
  },
  {
    "subject": "ms.hub.config.node.805092869.11223344",
    "data": {
      "name": "ValidateCardV2",
      "node_type": "function",
      "subject": "quiva-function.card-validator-v2",
      "payload": {
        "card_number": "{{trigger.card}}",
        "cvv": "{{trigger.cvv}}"
      }
    }
  }
]
'
[
  {
    "node": {
      "subject": "ms.hub.config.node.805092869.98765432",
      "data": {
        "name": "ProcessPaymentV2",
        "node_type": "function",
        "subject": "quiva-function.stripe-charge-v2",
        "payload": {
          "amount": "{{trigger.amount}}"
        }
      }
    },
    "result": "success"
  },
  {
    "node": {
      "subject": "ms.hub.config.node.805092869.11223344",
      "data": {
        "name": "ValidateCardV2",
        "node_type": "function",
        "subject": "quiva-function.card-validator-v2",
        "payload": {
          "card_number": "{{trigger.card}}"
        }
      }
    },
    "result": "success"
  }
]

Authorizations

Authorization
string
header
required

JWT Authorization header using the Bearer scheme

Body

application/json
data
object
required
archived
boolean

Whether the node is archived

Response

All nodes updated successfully

node
object
result
string

Result of the update operation