# Update Watch — Rendex

> Update a watch, including pausing or resuming it. Only the fields you set are changed. See the documentation.

- Key: `rendex-update-watch`
- Type: Action (Write)
- Version: 0.0.2
- App: Rendex (`rendex`) — https://pipedream.com/apps/rendex.md
- This page (HTML): https://pipedream.com/apps/rendex/actions/update-watch
- Hints: open-world
- Source: https://github.com/PipedreamHQ/pipedream/blob/master/components/rendex/actions/update-watch/update-watch.mjs

## Description

Update a watch, including pausing or resuming it. Only the fields you set are changed. [See the documentation](https://rendex.dev/docs/watch#endpoints).

## Props

| Prop | Type | Required | Description |
|---|---|---|---|
| `watchId` | `string` | Yes | The watch to act on. Options are loaded from the connected account. |
| `url` | `string` | No | New page URL to monitor. Changing it re-baselines the watch on the next run. |
| `name` | `string` | No | A human-friendly label for the watch. |
| `intervalMinutes` | `integer` | No | Minutes between automatic checks. Per-plan floors apply (Free 1440, Starter 180, Pro 30, Enterprise 5). |
| `diffMode` | `string` | No | How a change is detected: visual (pixel diff), text (extracted text), or both. |
| `threshold` | `string` | No | Fraction of the page (between 0 and 1) that must change to count as a change. Defaults to 0.01. |
| `webhookUrl` | `string` | No | URL that receives an HMAC-signed POST when a change is detected. Requires a Starter plan or higher. |
| `notifyEmail` | `string` | No | Email to alert on a change. Must match the email on your Rendex account. |
| `paused` | `boolean` | No | When true, the watch is created/left paused and is not scheduled (no credits charged). |
| `renderFullPage` | `boolean` | No | Capture (and diff) the entire scrollable page. Defaults to true for watches. |
| `renderSelector` | `string` | No | Monitor only the element matching this CSS selector instead of the whole page. |
| `ignoreText` | `string[]` | No | Text patterns stripped from both captures before text-diffing so volatile substrings (timestamps, rotating prices, CSRF tokens) don't trigger a change. Wrap a pattern in /…/flags for a regex; anything else is a case-insensitive substring. |
| `minTextChars` | `integer` | No | A text change must add and remove at least this many characters to count — drops micro-edits. |
| `suppressWhilePresent` | `string[]` | No | While the page text contains any of these strings (e.g. Out of stock, Loading), the run is treated as unchanged — no alert, no baseline drift. |
| `uaMode` | `string` | No | Fetch identity for the watch: auto (lead with the RendexWatch UA, retry once with a browser identity if blocked), identify (always the RendexWatch UA), or stealth (always a standard browser identity). |

## Run it

**MCP**

```ts
import { Client } from "@modelcontextprotocol/sdk/client/index.js"
import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js"
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const accessToken = await pd.rawAccessToken

const transport = new StreamableHTTPClientTransport(
  new URL("https://remote.mcp.pipedream.net/v3"),
  {
    requestInit: {
      headers: {
        Authorization: `Bearer ${accessToken}`,
        "x-pd-project-id": process.env.PIPEDREAM_PROJECT_ID!,
        "x-pd-environment": "production",
        "x-pd-external-user-id": "{external_user_id}", // any stable ID for this user in your system
        "x-pd-app-slug": "rendex",
      },
    },
  },
)

const mcp = new Client({ name: "my-agent", version: "1.0.0" })
await mcp.connect(transport)

const { tools } = await mcp.listTools()

// listTools() hands your model this tool's input schema, so it can
// fill the arguments itself:
const result = await mcp.callTool({
  name: "rendex-update-watch",
  arguments: {
    watchId: "Watch",
    url: "URL",
  },
})
```

**TypeScript**

```ts
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "rendex-update-watch",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    rendex: { authProvisionId: "apn_xxxxxxx" },
    watchId: "Watch",
    url: "URL",
  },
})

console.log(result)
```

**cURL**

```bash
curl -X POST https://api.pipedream.com/v1/connect/{project_id}/actions/run \
  -H "Content-Type: application/json" \
  -H "X-PD-Environment: production" \
  -H "Authorization: Bearer {access_token}" \
  -d '{
    "external_user_id": "{external_user_id}",
    "id": "rendex-update-watch",
    "configured_props": {
      "rendex": { "authProvisionId": "apn_xxxxxxx" },
      "watchId": "Watch",
      "url": "URL"
    }
  }'
```

---

- App: https://pipedream.com/apps/rendex.md · All apps: https://pipedream.com/apps
