> ## Documentation Index
> Fetch the complete documentation index at: https://deepline.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Clarify: Update Workflow

> Update a workflow. Clarify Update Workflow reference includes SDK V2 and CLI requests, input constraints, response fields, and Deepline cost.

Update a workflow.

> [!NOTE]
>
> Tool ID: `clarify_update_workflow`

## Run this action

Use the TypeScript SDK for one call. Use `ctx.tools.execute(...)` inside a Play for durable calls, scheduled calls, or CSV processing.

```ts theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
import { Deepline } from 'deepline';

const deepline = await Deepline.connect();
const result = await deepline.tools.execute(
  'clarify_update_workflow',
  {
    "workspace": "example",
    "id": "id_123",
    "data": {
      "type": "example",
      "id": "id_123",
      "attributes": {
        "name": "Example",
        "description": "Example description",
        "enabled": true
      }
    }
  },
);

console.log(result.toolResponse.raw);
```

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline run clarify_update_workflow --input '{
  "workspace": "example",
  "id": "id_123",
  "data": {
    "type": "example",
    "id": "id_123",
    "attributes": {
      "name": "Example",
      "description": "Example description",
      "enabled": true
    }
  }
}'
```

## Example response

The static output schema lacks the details for a reliable example. Use `deepline describe clarify_update_workflow --json` for the complete live contract.

## Input reference

Applies a partial update to a workflow: only the fields present in `attributes` are changed. Use it to rename, enable or disable, or edit the trigger and blocks. Returns the updated workflow.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.workspace` | `string` | Yes | — | The workspace slug — the `&#123;slug&#125;` segment of your Clarify workspace URL. |
| `payload.id` | `string` | Yes | — | The unique ID of the workflow. |
| `payload.silent` | `boolean` | No | — | When true, suppresses in-app and Slack notifications for this mutation. |
| `payload.data` | `object` | Yes | — | The changes to apply. |

<details>
  <summary>Show raw input schema</summary>

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Applies a partial update to a workflow: only the fields present in `attributes` are changed. Use it to rename, enable or disable, or edit the trigger and blocks. Returns the updated workflow.",
    "properties": {
      "workspace": {
        "type": "string",
        "description": "The workspace slug — the `{slug}` segment of your Clarify workspace URL."
      },
      "id": {
        "type": "string",
        "description": "The unique ID of the workflow."
      },
      "silent": {
        "type": "boolean",
        "description": "When true, suppresses in-app and Slack notifications for this mutation."
      },
      "data": {
        "type": "object",
        "description": "The changes to apply.",
        "properties": {
          "type": {
            "type": "string",
            "description": "The resource type; matches the `object` path parameter."
          },
          "id": {
            "type": "string",
            "description": "The unique ID of the resource to update."
          },
          "attributes": {
            "type": "object",
            "description": "The field values to change, keyed by field name; omitted fields keep their current values. System fields (prefixed with a single `_`) cannot be set.",
            "properties": {
              "name": {
                "type": "string",
                "description": "The workflow’s display name."
              },
              "description": {
                "type": "string",
                "description": "A human-readable description of the workflow."
              },
              "enabled": {
                "type": "boolean",
                "description": "Whether the workflow is active and processing triggers."
              },
              "published_at": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "The time the workflow was published, or null to unpublish it.",
                "format": "date-time"
              },
              "trigger": {
                "type": "object",
                "description": "The block that starts each run.",
                "properties": {
                  "_id": {
                    "type": "string",
                    "description": "The block identifier, unique within the workflow. The trigger block is always `trigger`."
                  },
                  "plugin_id": {
                    "type": "string",
                    "description": "The plugin that defines what this block does (for example `clarify:create:record`).",
                    "enum": [
                      "on:clarify:add-to-list",
                      "on:clarify:remove-from-list",
                      "on:clarify:set-relationship",
                      "on:clarify:unset-relationship",
                      "on:clarify:change-relationship",
                      "on:clarify:stream-event",
                      "on:clarify:automation-webhook",
                      "on:manual:execution",
                      "on:general:time:heartbeat",
                      "on:clarify:create:record",
                      "on:clarify:update:record",
                      "on:clarify:delete:record",
                      "on:clarify:upsert:record",
                      "on:email:bounce",
                      "on:email:click",
                      "on:email:open",
                      "on:email:reply",
                      "on:email:send",
                      "clarify:upsert:record",
                      "clarify:create:record",
                      "clarify:update:record",
                      "clarify:delete:record",
                      "clarify:find:records",
                      "clarify:set-relationship",
                      "clarify:unset-relationship",
                      "clarify:send:email",
                      "clarify:email-validation",
                      "clarify:linkedin:visit",
                      "clarify:linkedin:connect",
                      "clarify:linkedin:message",
                      "clarify:linkedin:inmail",
                      "clarify:signal:exa",
                      "clarify:signal:field-change",
                      "webhook:send:outbound",
                      "code:execute",
                      "general:delay:for",
                      "ai:generate"
                    ]
                  },
                  "filters": {
                    "type": "array",
                    "description": "Conditions that must all pass for the block to run.",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string",
                          "description": "The path to the value the condition is tested against (for example `state.event.object.data.person.name`)."
                        },
                        "condition": {
                          "type": "object",
                          "description": "The condition the field value must satisfy for the block to run.",
                          "additionalProperties": {}
                        }
                      },
                      "required": [
                        "field",
                        "condition"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "input": {
                    "type": "object",
                    "description": "The block’s configuration, keyed by input name.",
                    "additionalProperties": {}
                  },
                  "prev": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "The `_id` of the previous block, or null for the trigger."
                  },
                  "next": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "The `_id` of the next block, or null for the last block."
                  }
                },
                "required": [
                  "_id",
                  "plugin_id",
                  "filters",
                  "input",
                  "prev",
                  "next"
                ],
                "additionalProperties": false
              },
              "blocks": {
                "type": "object",
                "description": "The workflow’s blocks keyed by block id.",
                "additionalProperties": {
                  "type": "object",
                  "properties": {
                    "_id": {
                      "type": "string",
                      "description": "The block identifier, unique within the workflow. The trigger block is always `trigger`."
                    },
                    "plugin_id": {
                      "type": "string",
                      "description": "The plugin that defines what this block does (for example `clarify:create:record`).",
                      "enum": [
                        "on:clarify:add-to-list",
                        "on:clarify:remove-from-list",
                        "on:clarify:set-relationship",
                        "on:clarify:unset-relationship",
                        "on:clarify:change-relationship",
                        "on:clarify:stream-event",
                        "on:clarify:automation-webhook",
                        "on:manual:execution",
                        "on:general:time:heartbeat",
                        "on:clarify:create:record",
                        "on:clarify:update:record",
                        "on:clarify:delete:record",
                        "on:clarify:upsert:record",
                        "on:email:bounce",
                        "on:email:click",
                        "on:email:open",
                        "on:email:reply",
                        "on:email:send",
                        "clarify:upsert:record",
                        "clarify:create:record",
                        "clarify:update:record",
                        "clarify:delete:record",
                        "clarify:find:records",
                        "clarify:set-relationship",
                        "clarify:unset-relationship",
                        "clarify:send:email",
                        "clarify:email-validation",
                        "clarify:linkedin:visit",
                        "clarify:linkedin:connect",
                        "clarify:linkedin:message",
                        "clarify:linkedin:inmail",
                        "clarify:signal:exa",
                        "clarify:signal:field-change",
                        "webhook:send:outbound",
                        "code:execute",
                        "general:delay:for",
                        "ai:generate"
                      ]
                    },
                    "filters": {
                      "type": "array",
                      "description": "Conditions that must all pass for the block to run.",
                      "items": {
                        "type": "object",
                        "properties": {
                          "field": {
                            "type": "string",
                            "description": "The path to the value the condition is tested against (for example `state.event.object.data.person.name`)."
                          },
                          "condition": {
                            "type": "object",
                            "description": "The condition the field value must satisfy for the block to run.",
                            "additionalProperties": {}
                          }
                        },
                        "required": [
                          "field",
                          "condition"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "input": {
                      "type": "object",
                      "description": "The block’s configuration, keyed by input name.",
                      "additionalProperties": {}
                    },
                    "prev": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The `_id` of the previous block, or null for the trigger."
                    },
                    "next": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "The `_id` of the next block, or null for the last block."
                    }
                  },
                  "required": [
                    "_id",
                    "plugin_id",
                    "filters",
                    "input",
                    "prev",
                    "next"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "additionalProperties": true
          }
        },
        "required": [
          "type",
          "id",
          "attributes"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "workspace",
      "id",
      "data"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | Provider response payload. |
| `result.data.data` | `object` | Yes | — | The resource. |
| `result.data.data.type` | `"workflow"` | Yes | — | The resource type. matches the `object` path parameter. Allowed: `workflow`. |
| `result.data.data.id` | `string` | Yes | — | The unique ID of the resource. |
| `result.data.data.attributes` | `object` | Yes | — | Field values keyed by field name. available fields depend on the object’s schema. |
| `result.data.data.attributes._id` | `string` | Yes | — | The unique ID of the workflow. |
| `result.data.data.attributes.name` | `string` | Yes | — | The workflow’s display name. |
| `result.data.data.attributes.description` | `string` | Yes | — | A human-readable description of the workflow. |
| `result.data.data.attributes.enabled` | `boolean` | Yes | — | Whether the workflow is active and processing triggers. |
| `result.data.data.attributes.enabled_by` | `string \| null` | No | — | The ID of the user who first enabled the workflow. |
| `result.data.data.attributes.published_at` | `string \| null` | Yes | — | The time the workflow was published, or null if it has never been published. |
| `result.data.data.attributes.exits` | `record` | No | `&#123;&#125;` | Exit blocks keyed by block id, run when a record leaves the workflow. |
| `result.data.data.attributes.run_limits` | `object` | No | `&#123;&#125;` | Limits on how often a record can run through the workflow. |
| `result.data.data.attributes.run_limits.max_runs_per_record` | `number \| null` | No | — | The maximum number of runs allowed per record. Null means unlimited. |
| `result.data.data.attributes.run_limits.cooldown_period_days` | `number \| null` | No | — | The number of days a record must wait before it can re-enter the workflow. |
| `result.data.data.attributes._created_at` | `string` | Yes | — | The time the workflow was created. |
| `result.data.data.attributes._created_by` | `string` | Yes | — | The ID of the user who created the workflow. |
| `result.data.data.attributes._updated_at` | `string` | Yes | — | The time the workflow was last updated. |
| `result.data.data.attributes._updated_by` | `string` | Yes | — | The ID of the user who last updated the workflow. |
| `result.data.data.attributes.type` | `"sequence"` | Yes | — | The workflow type. `sequence` workflows are email sequences (campaigns). |
| `result.data.data.attributes.trigger` | `object` | Yes | — | The block that starts each run. |
| `result.data.data.attributes.trigger._id` | `string` | Yes | — | The block identifier, unique within the workflow. The trigger block is always `trigger`. |
| `result.data.data.attributes.trigger.plugin_id` | `"clarify:email-validation" \| "clarify:send:email" \| "clarify:linkedin:visit" \| "clarify:linkedin:connect" \| "clarify:linkedin:message" \| "clarify:linkedin:inmail" \| "general:delay:for" \| "on:clarify:add-to-list" \| "on:manual:execution"` | Yes | — | The plugin that defines what this block does, restricted to plugins valid in sequence workflows. |
| `result.data.data.attributes.trigger.filters` | `array` | Yes | — | Conditions that must all pass for the block to run. |
| `result.data.data.attributes.trigger.filters[].field` | `string` | Yes | — | The path to the value the condition is tested against (for example `state.event.object.data.person.name`). |
| `result.data.data.attributes.trigger.filters[].condition` | `record` | Yes | — | The condition the field value must satisfy for the block to run. |
| `result.data.data.attributes.trigger.input` | `record` | Yes | — | The block’s configuration, keyed by input name. |
| `result.data.data.attributes.trigger.prev` | `string \| null` | Yes | — | The `_id` of the previous block, or null for the trigger. |
| `result.data.data.attributes.trigger.next` | `string \| null` | Yes | — | The `_id` of the next block, or null for the last block. |
| `result.data.data.attributes.blocks` | `record` | Yes | — | The workflow’s blocks keyed by block id. |
| `result.data.data.relationships` | `object` | No | — | Related resources keyed by relationship name, present when requested via `include`. |
| `result.meta` | `object` | No | — | Additional response metadata (status, paging). |

> [!NOTE]
>
> This output schema is too large for an inline display. Read the complete live contract with `deepline describe clarify_update_workflow --json`.

## Deepline cost

* Pricing model: `fixed` (per call).
* Estimated Deepline credits: `0` per pricing unit.
* Provider-native pricing may still exist outside Deepline credit billing.

## Related documentation

* [Connect integrations](https://deepline.com/docs/integrations.md)
* [SDK V2 quickstart](https://deepline.com/docs/sdk-v2/quickstart.md)
* [SDK reference](https://deepline.com/docs/sdk-v2/sdk-reference.md)
* [Run tools across a CSV](https://deepline.com/docs/sdk-v2/batch-csv.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.