# ReplaceFormTriggers

> Replace a form's triggers; the old ones are not kept. Irreversible. Write access, forms toolset, MCP tool replace_form_triggers.

> **Warning:**
> Irreversible. This operation removes or replaces something. MCP clients see it with `destructiveHint` set, and an agent should tell you what it will change and wait for your yes.

**Access:** [Write](https://developer.missin.co.uk/get-started/authentication.md#access-levels)

## Variables

| Variable | Type | Required | Accepts | Description |
|---|---|---|---|---|
| `input` | `ReplaceFormTriggersInput!` | yes | Input object, below |  |

## Input types

### ReplaceFormTriggersInput

| Field | Type | Required | Accepts | Description |
|---|---|---|---|---|
| `formId` | `UUID!` | yes |  |  |
| `triggers` | `JSON!` | yes | Any JSON value. at most 6 items | The whole set, replace-style — [\{ type, ...params \}]. |

## Call it

```bash curl
curl https://api.missin.co.uk/graphql/v1 \
  -H "Authorization: Bearer $MISSIN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"operationName":"ReplaceFormTriggers","variables":{"input":{"formId":"00000000-0000-0000-0000-000000000000","triggers":[]}},"extensions":{"persistedQuery":{"version":1,"sha256Hash":"cded6158746a842327f3ee40ffa9e83597660224635d906477d52ad8761d7e0b"}}}'
```

## Document

```graphql
mutation ReplaceFormTriggers($input: ReplaceFormTriggersInput!) { __typename replaceFormTriggers(input: $input) { __typename formId userErrors { __typename code field message } } }
```

Source: https://developer.missin.co.uk/reference/forms/replace-form-triggers
