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

# revertMarketingAutomation

> Revert a store's customized Return tracking automation to Redo's default by deleting the store's version. Redo's default for that trigger runs again once the store has no other automation, on or off, for the trigger. Runs of the store's version already in progress finish. Returns true if an owned automation was reverted, false if none matched. Errors with AUTOMATION_NOT_REVERTIBLE if the automation is not a customized Redo default.

**Required scopes:** [`marketing_automations_write`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-marketing_automations_write)

**Store must have one of:** `EMAIL_SMS`, `HSA`, `ORDER_TRACKING`, `RETURNS`, `TNPL`, `REVIEWS`

## Arguments

**id** `ID!` *required*

The automation's `id`, or its `legacyId` from an earlier version of the Redo API.

## Returns

**revertMarketingAutomation** `Boolean!` *required*

## Example

```graphql theme={null}
mutation {
  revertMarketingAutomation(id: "...")
}
```


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