Skip to main content
PATCH
/
api
/
v2
/
public
/
slug
/
:slug
/
config
/
:config_id
/
workflows
/
:workflow_id
curl -X PATCH "https://app.refold.ai/api/v2/public/slug/{slug}/config/{config_id}/workflows/{workflow_id}" \
  -H "x-api-key: YOUR_API_KEY" \
  -H "linked_account_id: YOUR_LINKED_ACCOUNT_ID" \
  -H "Content-Type: application/json" \
  -d '{ "enabled": false }'
{
  "workflows": [
    {
      "id": "699d8648a81ba363578cc2f4",
      "name": "Sync Contacts",
      "description": "Sync contacts to HubSpot",
      "enabled": false
    }
  ]
}
Enable or disable a single workflow within an app’s config installation. Returns the updated list of workflows in the config.

Authentication

Configs are scoped to a linked account via the linked_account_id header.
x-api-key
string
required
Your Refold API key.
linked_account_id
string
required
The linked account.

Path Parameters

slug
string
required
The app slug. Example: hubspot
config_id
string
required
The config ID (defaults to the linked account ID).
workflow_id
string
required
The workflow to enable or disable.

Body Parameters

enabled
boolean
required
true to enable the workflow, false to disable it.

Response

workflows
array
The config’s workflows after the change, each {id, name, description, enabled}.
{
  "workflows": [
    {
      "id": "699d8648a81ba363578cc2f4",
      "name": "Sync Contacts",
      "description": "Sync contacts to HubSpot",
      "enabled": false
    }
  ]
}
curl -X PATCH "https://app.refold.ai/api/v2/public/slug/{slug}/config/{config_id}/workflows/{workflow_id}" \
  -H "x-api-key: YOUR_API_KEY" \
  -H "linked_account_id: YOUR_LINKED_ACCOUNT_ID" \
  -H "Content-Type: application/json" \
  -d '{ "enabled": false }'