> ## 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.

# Resend: Automations Update

> Update an automation. Resend Automations Update reference includes SDK V2 and CLI requests, input constraints, response fields, and Deepline cost.

Update an automation.

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

## 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(
  'resend_automations_update',
  {
    "automation_id": "123e4567-e89b-42d3-a456-426614174000"
  },
);

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

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline run resend_automations_update --input '{
  "automation_id": "123e4567-e89b-42d3-a456-426614174000"
}'
```

## Example response

The SDK returns this shape at `result.toolResponse.raw`. The example values illustrate the response.

```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
{
  "data": {
    "object": "example",
    "id": "id_123"
  }
}
```

Use `deepline describe resend_automations_update --json` for the latest machine-readable contract.

## Input reference

At least one of `name`, `status`, or `steps` and `connections` must be provided. When updating the workflow graph, both `steps` and `connections` must be provided together.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.automation_id` | `string` | Yes | — | The ID of the automation. Format: `uuid`. |
| `payload.name` | `string` | No | — | The name of the automation. Minimum length: 1. |
| `payload.status` | `"enabled" \| "disabled"` | No | — | The status of the automation. Allowed: `enabled`, `disabled`. |
| `payload.steps` | `array` | No | — | The steps that compose the automation workflow. Must be provided together with `connections`. Minimum items: 1. Maximum items: 150. |
| `payload.connections` | `array` | No | — | The connections between steps in the automation graph. Must be provided together with `steps`. |

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

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "At least one of `name`, `status`, or `steps` and `connections` must be provided. When updating the workflow graph, both `steps` and `connections` must be provided together.",
    "properties": {
      "automation_id": {
        "type": "string",
        "description": "The ID of the automation.",
        "format": "uuid"
      },
      "name": {
        "type": "string",
        "description": "The name of the automation.",
        "minLength": 1
      },
      "status": {
        "type": "string",
        "description": "The status of the automation.",
        "enum": [
          "enabled",
          "disabled"
        ]
      },
      "steps": {
        "type": "array",
        "description": "The steps that compose the automation workflow. Must be provided together with `connections`.",
        "minItems": 1,
        "maxItems": 150,
        "items": {
          "type": "object",
          "description": "A step in an automation workflow. The `config` object varies based on the step `type`.",
          "properties": {
            "key": {
              "type": "string",
              "description": "A unique key for this step within the automation graph."
            },
            "type": {
              "type": "string",
              "description": "The type of automation step.",
              "enum": [
                "trigger",
                "send_email",
                "delay",
                "wait_for_event",
                "condition",
                "contact_update",
                "contact_delete",
                "add_to_segment"
              ]
            },
            "config": {
              "type": "object",
              "description": "Configuration for the step. Shape depends on `type`: - **trigger**: `{ event_name: string }` - **send_email**: `{ template: { id: string, variables?: object }, subject?: string, from?: string, reply_to?: string }` - **delay**: `{ duration: string }` — a human-readable duration (e.g. `\"30 minutes\"`) - **wait_for_event**: `{ event_name: string, timeout?: string, filter_rule?: object }` — `timeout` is a human-readable duration (e.g. `\"1 hour\"`) - **condition**: A rule tree with `type` (`rule`, `and`, `or`), `field`, `operator`, and `value` - **contact_update**: `{ first_name?: string|object, last_name?: string|object, unsubscribed?: boolean|object, properties?: object }` - **contact_delete**: `{}` - **add_to_segment**: `{ segment_id: string }`"
            }
          },
          "required": [
            "key",
            "type",
            "config"
          ],
          "additionalProperties": false
        }
      },
      "connections": {
        "type": "array",
        "description": "The connections between steps in the automation graph. Must be provided together with `steps`.",
        "items": {
          "type": "object",
          "description": "A connection between two steps in the automation graph.",
          "properties": {
            "from": {
              "type": "string",
              "description": "The `key` of the source step."
            },
            "to": {
              "type": "string",
              "description": "The `key` of the target step."
            },
            "type": {
              "type": "string",
              "description": "The type of connection. Defaults to `default`.",
              "default": "default",
              "enum": [
                "default",
                "condition_met",
                "condition_not_met",
                "timeout",
                "event_received"
              ]
            }
          },
          "required": [
            "from",
            "to"
          ],
          "additionalProperties": false
        }
      }
    },
    "required": [
      "automation_id"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | Provider response payload. |
| `result.data.object` | `string` | No | — | Type of the response object. |
| `result.data.id` | `string` | No | — | The ID of the updated automation. |
| `result.meta` | `object` | No | — | Additional response metadata (status, paging). |

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

  ### Output JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Standard tool result payload.",
    "properties": {
      "data": {
        "type": "object",
        "description": "Provider response payload.",
        "properties": {
          "object": {
            "type": "string",
            "description": "Type of the response object."
          },
          "id": {
            "type": "string",
            "description": "The ID of the updated automation."
          }
        },
        "additionalProperties": false
      },
      "meta": {
        "type": "object",
        "description": "Additional response metadata (status, paging).",
        "additionalProperties": true
      }
    },
    "required": [
      "data"
    ],
    "additionalProperties": false
  }
  ```
</details>

## 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.