# Update Sticky — Mural

> Update or move an existing sticky note on a mural. Every field except the mural and widget is optional, and only the fields you set are sent, so you can reposition a note by supplying just X Position and Y Position or reword it by…

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

## Description

Update or move an existing sticky note on a mural. Every field except the mural and widget is optional, and only the fields you set are sent, so you can reposition a note by supplying just **X Position** and **Y Position** or reword it by supplying just **Text**. At least one updatable field must be set. [See the documentation](https://developers.mural.co/public/reference/updatestickynote)

## Props

| Prop | Type | Required | Description |
|---|---|---|---|
| `workspaceId` | `string` | Yes | The ID of the Workspace. Options are loaded from the connected account. |
| `muralId` | `string` | Yes | The ID of the Mural. Options are loaded from the connected account. |
| `widgetId` | `string` | Yes | The id of a widget, as returned by the List Widgets action (e.g. 0-12345). Options are loaded from the connected account. |
| `text` | `string` | No | The text in the widget |
| `htmlText` | `string` | No | The text in the widget with inline HTML formatting, for example <p><strong>Blocked</strong> on <em>vendor review</em></p>. Supports <strong>, <em>, <u>, <s>, <ul>, <ol>, and <li>. When set, this takes priority over Text, and these tags override the widget's bold, italic, underline, and strike style properties. |
| `xPosition` | `integer` | No | The horizontal position of the widget in px (e.g. 100) |
| `yPosition` | `integer` | No | The vertical position of the widget in px (e.g. 100) |
| `title` | `string` | No | The title of the widget in the outline |
| `height` | `integer` | No | The height of the widget in px (e.g. 300) |
| `width` | `integer` | No | The width of the widget in px (e.g. 500) |
| `hidden` | `boolean` | No | If true, the widget is hidden from non-facilitators. Applies only when the widget is in the outline |
| `tagIds` | `string[]` | No | Unique identifiers of the tags in the widget Options are loaded from the connected account. |
| `parentId` | `string` | No | The ID of the area widget that should contain this sticky note, for example 0-12345. When set, X Position and Y Position are measured from the area's top-left corner instead of the mural's. Options are loaded from the connected account. |

## 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": "mural",
      },
    },
  },
)

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: "mural-update-sticky",
  arguments: {
    workspaceId: "Workspace ID",
    muralId: "Mural ID",
  },
})
```

**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: "mural-update-sticky",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    mural: { authProvisionId: "apn_xxxxxxx" },
    workspaceId: "Workspace ID",
    muralId: "Mural ID",
  },
})

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": "mural-update-sticky",
    "configured_props": {
      "mural": { "authProvisionId": "apn_xxxxxxx" },
      "workspaceId": "Workspace ID",
      "muralId": "Mural ID"
    }
  }'
```

---

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