Teamwork Desk ACTION
Update Customer
Update a specific customer See the documentation
- Action
- Writes data
- Destructive
- OAuth
- SDK
- MCP
IMPLEMENTATION
Call this tool
Connect a user's Teamwork Desk account once, then configure and run Update Customer 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: "teamwork_desk-update-customer",
externalUserId: "{external_user_id}", // any stable ID for this user in your system
configuredProps: {
teamwork_desk: { authProvisionId: "apn_xxxxxxx" },
customerId: "Customer",
address: "Address",
},
})
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": "teamwork_desk-update-customer",
"configured_props": {
"teamwork_desk": { "authProvisionId": "apn_xxxxxxx" },
"customerId": "Customer",
"address": "Address"
}
}'// 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": "teamwork_desk",
},
},
},
)
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: "teamwork_desk-update-customer",
arguments: {
customerId: "Customer",
address: "Address",
},
})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 |
|---|---|---|
customerId Customer | string | The customer id. Required Dynamic |
address Address | string | Customer address. Optional |
avatarURL Avatar URL | string | Customer avatar URL. Optional |
companyId Company | string | The company that the customer belongs to. Optional Dynamic |
email Email | string | The email address of the customer. Email ticket replies and chat transcriptions will be sent to the customer at this address. Required |
externalId External Id | string | Customer external ID. Optional |
extraData Extra Data | string | Provides a free-form reference field for additional customer information. Optional |
facebookURL Facebook URL | string | The Facebook URL address of the customer. Optional |
firstName First Name | string | The first name of the customer. Optional |
jobTitle Job Title | string | Customer job title. Optional |
lastName Last Name | string | The last name of the customer. Optional |
linkedinURL LinkedinURL | string | The Linkedin URL address of the customer. Optional |
mobile Mobile | string | The customer mobile. Optional |
notes Notes | string | Provides a free-form reference field for additional customer information. Optional |
organization Organization | string | Organization is the name of the organization that the Customer is in. This feature has been deprecated in favor of companies. Optional |
permission Permission | string | Overrides the company ticket permission settings. Is only valid for customers that belongs to a company. Optional |
phone Phone | string | Customer phone. Optional |
twitterHandle Twitter Handle | string | The Twitter Handle of the customer. 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
- teamwork_desk-update-customer
- Version
- 0.0.3
- App
- Teamwork Desk
- Authentication
- OAuth
- Read-only
- No
- Destructive
- Yes
- Open world
- Yes
- Source
- View on GitHub ↗