Mcp Update Hook

PATCH
/v1/nodes/{owner_node_id}/hooks/{hook_id}

Authorization

HTTPBearer
headerAuthorizationBearer <token>

Path Parameters

owner_node_id*Owner Node Id
hook_id*Hook Id

Request Body

application/json
  1. body

Fields to change on a hook; send at least one.

A null name, scope or rerun_policy leaves that field unchanged, but a null workflow_yaml is rejected: it must be a non-empty workflow YAML string. Enable or disable a hook through the /enabled route instead.

Properties1 <= properties
name?string|null
rerun_policy?string|null
scope?|null
workflow_yaml?string|null

Response Body

Successful Response

application/json
  1. response
hook*
[key: string]?any
Example Request
curl -X PATCH 'https://flywheel.paradigma.inc/api/v1/nodes/string/hooks/string' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "hook": {    "action_config": {},    "action_type": "string",    "created_at": "string",    "enabled": true,    "hook_id": "string",    "name": "string",    "owner_node_id": "string",    "rerun_policy": "if_inputs_changed",    "scope": "self",    "trigger_event": "artifact.finalized",    "trigger_events": [      "artifact.finalized"    ],    "updated_at": "string",    "workflow": {},    "workflow_yaml": "string"  }}