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

# Tweak Your Robot Blueprint

> Rename your flow, flick the power switch on or off, or rearrange the building blocks.

Need to rename your automation, swap an email template, or turn the robot on? Send a quick tweak request!

> 🛑 **Safety Brake**: If your robot is currently running live (`"status": "enabled"`), Mailofly will not let you rearrange its tracks while contacts are traveling on them! To remodel the track, flick it to `"disabled"` first, or clone a twin copy using [Clone a Twin Robot](duplicate-automation).

### Path Parameters

<ParamField path="id" type="string" required>
  The special ID badge of the automation you want to tweak (e.g. `"auto_9b83b384..."`).
</ParamField>

### Body

<ParamField body="name" type="string">
  Give your automation a fresh new nickname if you want to rename it.
</ParamField>

<ParamField body="status" type="string">
  Flick the power switch! Set to `"enabled"` to put it to work, or `"disabled"` to let it take a nap.
</ParamField>

<ParamField body="steps" type="object[]">
  A brand new set of Lego blocks to replace the old ones. (Only allowed while the flow is disabled!).
</ParamField>

<ParamField body="connections" type="object[]">
  The new train tracks connecting your blocks together. (Must be sent along with `steps`).
</ParamField>

### Response

<ResponseField name="object" type="string">
  Always says `"automation"`.
</ResponseField>

<ResponseField name="id" type="string">
  The ID of the robot you just polished.
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X PATCH 'https://api.mailofly.com/automations/auto_9b83b384-3c66-4f81-a201-3829028198f1' \
    -H 'Authorization: Bearer mf_live_xxxxxxxx' \
    -H 'Content-Type: application/json' \
    -d '{
      "name": "Super Welcome Wagon (Version 2)",
      "status": "enabled"
    }'
  ```

  ```javascript Node.js theme={null}
  import { Mailofly } from "@mailofly/node";

  const mailofly = new Mailofly("mf_live_xxxxxxxx");

  const updated = await mailofly.automations.update("auto_9b83b384-3c66-4f81-a201-3829028198f1", {
    name: "Super Welcome Wagon (Version 2)",
    status: "enabled"
  });

  console.log("Successfully tweaked robot:", updated.id);
  ```
</RequestExample>

<ResponseExample>
  ```json 200 OK theme={null}
  {
    "object": "automation",
    "id": "auto_9b83b384-3c66-4f81-a201-3829028198f1"
  }
  ```
</ResponseExample>


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