# Update Contact — Less Annoying CRM

> Updates an existing contact or company in Less Annoying CRM. Only the fields you provide are changed; omitted fields are left as-is. Get the contactId from Search Contacts first. name renames the record (for a company it sets the company…

- Key: `less_annoying_crm-update-contact`
- Type: Action (Write)
- Version: 0.0.1
- App: Less Annoying CRM (`less_annoying_crm`) — https://pipedream.com/apps/less-annoying-crm.md
- This page (HTML): https://pipedream.com/apps/less-annoying-crm/actions/update-contact
- Hints: open-world
- Source: https://github.com/PipedreamHQ/pipedream/blob/master/components/less_annoying_crm/actions/update-contact/update-contact.mjs

## Description

Updates an existing contact or company in Less Annoying CRM. Only the fields you provide are changed; omitted fields are left as-is. Get the `contactId` from **Search Contacts** first. `name` renames the record (for a company it sets the company name; the action detects which). `employer` changes the company a person works for. Warning: `emails`, `phones`, `websites`, and the address fields REPLACE the existing values for that field rather than appending, so include existing entries you want to keep (read them with **Get Contact**). Use `assignedTo` (user ID from **List Users**) to reassign ownership, and `customFields` for account-specific fields. Returns a confirmation; call **Get Contact** to see the updated record. Example: `contactId: "1234567890123456789012345678901", jobTitle: "CEO", phones: ["555-123-4567"]` returns `{"success": true, "ContactId": "1234567890123456789012345678901"}`. [See the documentation](https://account.lessannoyingcrm.com/api_docs/v2/Core_Functions/Contacts#Goto-EditContact)

## Props

| Prop | Type | Required | Description |
|---|---|---|---|
| `contactId` | `string` | Yes | The ID of a contact or company (a long numeric string, e.g. 4135054762542398391286410820683). Use Search Contacts to find it by name, email, or phone. |
| `name` | `string` | No | New full name of the person, or new company name for a company, e.g. Jane Smith or Acme Inc. |
| `employer` | `string` | No | For a person: the company they work for, e.g. Acme Inc. Ignored for companies. |
| `assignedTo` | `string` | No | User ID to reassign the record to (a numeric string, e.g. 1240220). Use List Users to find IDs (the UserId field). Omit to keep the current owner. |
| `emails` | `string[]` | No | Email addresses, e.g. ["jane@acme.com"]. All are saved with the label in Contact Info Label. |
| `phones` | `string[]` | No | Phone numbers, e.g. ["555-123-4567"]. All are saved with the label in Contact Info Label. |
| `websites` | `string[]` | No | Website URLs, e.g. ["https://acme.com"]. |
| `infoType` | `string` | No | Label applied to the emails, phones, and address (e.g. Work, Home, Other). Must match a type configured in the CRM. Leave blank to use the account's first type. |
| `street` | `string` | No | Street address, e.g. 123 Main St. Street, city, state, zip, and country are saved together as one address. |
| `city` | `string` | No | City for the address, e.g. Austin. |
| `state` | `string` | No | State or region for the address, e.g. TX. |
| `zip` | `string` | No | Zip or postal code for the address, e.g. 78701. |
| `country` | `string` | No | Country for the address, e.g. United States. |
| `jobTitle` | `string` | No | Job title, e.g. VP of Sales. Applies to people only, not companies. |
| `backgroundInfo` | `string` | No | Free-text background information shown on the record, e.g. Met at the 2026 trade show; prefers email over phone. |
| `birthday` | `string` | No | Birthday as YYYY-MM-DD, e.g. 1985-03-21, or 0000-MM-DD (e.g. 0000-03-21) if the year is unknown. People only. |
| `customFields` | `string` | No | JSON object of account-specific custom field values keyed by field name, e.g. {"Lead Source": "Referral"}. Merged into the request as-is. |

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

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: "less_annoying_crm-update-contact",
  arguments: {
    contactId: "Contact ID",
    name: "Name",
  },
})
```

**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: "less_annoying_crm-update-contact",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    less_annoying_crm: { authProvisionId: "apn_xxxxxxx" },
    contactId: "Contact ID",
    name: "Name",
  },
})

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": "less_annoying_crm-update-contact",
    "configured_props": {
      "less_annoying_crm": { "authProvisionId": "apn_xxxxxxx" },
      "contactId": "Contact ID",
      "name": "Name"
    }
  }'
```

---

- App: https://pipedream.com/apps/less-annoying-crm.md · All apps: https://pipedream.com/apps
