ActiveCampaign ACTION
Update Deal
Updates an existing deal. See the docs here.
- Action
- Writes data
- Destructive
- API key
- SDK
- MCP
IMPLEMENTATION
Call this tool
Connect a user's ActiveCampaign account once, then configure and run Update Deal from your backend or agent.
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: "activecampaign-update-deal",
externalUserId: "{external_user_id}", // any stable ID for this user in your system
configuredProps: {
activecampaign: { authProvisionId: "apn_xxxxxxx" },
dealId: "Deal ID",
title: "Title",
},
})
console.log(result)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": "activecampaign-update-deal",
"configured_props": {
"activecampaign": { "authProvisionId": "apn_xxxxxxx" },
"dealId": "Deal ID",
"title": "Title"
}
}'// accessToken: mint a short-lived token with the Connect SDK — see the MCP guide
const transport = new StreamableHTTPClientTransport(
new URL("https://remote.mcp.pipedream.net/v3"),
{
requestInit: {
headers: {
Authorization: `Bearer ${accessToken}`,
"x-pd-project-id": "{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": "activecampaign",
},
},
},
)
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: "activecampaign-update-deal",
arguments: {
dealId: "Deal ID",
title: "Title",
},
})SCHEMA
Inputs
Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.
| Property | Type | Description |
|---|---|---|
dealId Deal ID | string | Id of the deal to update. Optional Dynamic |
title Title | string | Deal's title. Optional |
description Description | string | Deal's description. Optional |
account Account ID | string | Deal's account id. Optional |
contact Contact ID | string | Deal's primary contact id. Optional |
value Value | string | Deal's value in cents. (i.e. $456.78 => 45678). Must be greater than or equal to zero. int32 datatype. Optional |
currency Currency | string | Deal's currency in 3-digit ISO format, lowercased. Optional |
group Group | string | Deal's pipeline id. Deal's stage or deal.stage should belong to deal.group. Optional |
stage Stage | string | Deal's stage id. deal.stage should belong to Deal's pipeline or deal.group. Optional |
owner Owner | string | Deal's owner id. Optional |
percent Percent | string | Deal's percentage. int32 datatype. Optional |
status Status | integer | Deal's status. Valid values:
Optional |
fields Fields | string[] | Deal's custom field values [{customFieldId, fieldValue}] Optional |
REFERENCE
Tool details
Behavior hints are published with the component in the Pipedream registry and surface as MCP tool annotations, so an agent can reason about a tool before it calls it.
- Registry key
- activecampaign-update-deal
- Version
- 0.2.3
- App
- ActiveCampaign
- Authentication
- API key
- Read-only
- No
- Destructive
- Yes
- Open world
- Yes
- Source
- View on GitHub ↗