# Update Record — Ironclad

> Updates properties on an existing Ironclad record. Provide properties as a JSON object where each key maps to a {type, value} wrapper — the same shape as Create Record. Run Search Records first to find the recordId, and Describe Workspace…

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

## Description

Updates properties on an existing Ironclad record. Provide `properties` as a JSON object where each key maps to a `{type, value}` wrapper — the same shape as **Create Record**. Run **Search Records** first to find the `recordId`, and **Describe Workspace** to discover valid property keys and their exact required `type` (record property types are snake_case, e.g. `string`, `number`, `monetary_amount`, `address`, `date`, `duration`, `boolean` — do not guess). Only the properties you include are changed; omitted properties are left as-is. Example: set `recordId` to `"rec_abc123"` and `properties` to `{"contractValue": {"type": "monetary_amount", "value": {"currency": "USD", "amount": 75000}}}`; returns the updated record. [See the documentation](https://developer.ironcladapp.com/reference/replace-a-record)

## Props

| Prop | Type | Required | Description |
|---|---|---|---|
| `recordId` | `string` | Yes | The identifier of a record. Obtain via Search Records. Options are loaded from the connected account. |
| `properties` | `string` | Yes | JSON object of property key to {type, value} wrapper pairs to update. Run Describe Workspace first to discover valid keys and their exact required type — do not guess the type. Example: {"contractValue": {"type": "monetary_amount", "value": {"currency": "USD", "amount": 75000}}}. |

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

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: "ironclad-update-record",
  arguments: {
    recordId: "Record ID",
    properties: "Properties",
  },
})
```

**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: "ironclad-update-record",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    ironclad: { authProvisionId: "apn_xxxxxxx" },
    recordId: "Record ID",
    properties: "Properties",
  },
})

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": "ironclad-update-record",
    "configured_props": {
      "ironclad": { "authProvisionId": "apn_xxxxxxx" },
      "recordId": "Record ID",
      "properties": "Properties"
    }
  }'
```

---

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