# reorder_campaign_steps (/docs/mcp/tools/reorder-campaign-steps)

{/* Generated by scripts/sync-mcp-tools.mjs from happierleads-api. Do not edit: change src/routes/mcp/toolDocs.json there, or add content/mcp-notes/reorder_campaign_steps.mdx. */}

**Reorder campaign steps** · Changes data

Puts a campaign's emails in a new order. templateIds must list every step of the campaign exactly once, in the new order (from get_campaign, emailCampaignTemplates); anything else returns 400 and changes nothing.

| Connection | Account URL, team member URL or OAuth |
| --- | --- |

## Parameters [#parameters]

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `websiteId` | `string` | Yes | Website ID from list_websites (the campaign's website). |
| `campaignId` | `string` | Yes | campaignId from list_campaigns. |
| `templateIds` | `string[]` | Yes | Every step _id of the campaign, in the new order. |

## Tool definition [#tool-definition]

What your assistant receives from `tools/list`:

```json
{
  "name": "reorder_campaign_steps",
  "title": "Reorder campaign steps",
  "annotations": {
    "title": "Reorder campaign steps",
    "readOnlyHint": false,
    "destructiveHint": false,
    "idempotentHint": true,
    "openWorldHint": false
  },
  "inputSchema": {
    "type": "object",
    "properties": {
      "websiteId": {
        "type": "string",
        "description": "Website ID from list_websites (the campaign's website)."
      },
      "campaignId": {
        "type": "string",
        "description": "campaignId from list_campaigns."
      },
      "templateIds": {
        "type": "array",
        "items": {
          "type": "string"
        },
        "description": "Every step _id of the campaign, in the new order."
      }
    },
    "required": [
      "websiteId",
      "campaignId",
      "templateIds"
    ]
  }
}
```
