View as Markdown
Teamgate icon

Teamgate ACTION

Update Deal

Update a specific deal. See the docs here
  • Action
  • Writes data
  • Destructive
  • API key
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's Teamgate 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: "teamgate-update-deal",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    teamgate: { authProvisionId: "apn_xxxxxxx" },
    dealId: 10,
    name: "Name",
  },
})

console.log(result)

SCHEMA

Inputs

Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.

Update Deal inputs
Property Type Description
dealId Deal Id integer
The deal id which will be updated
Required Dynamic
name Name string
Name of the Deal. E.g. "Example Ltd".
Required
buyerId Buyer Id integer
The person`s id
Required Dynamic
pipeline Pipeline string
The pipeline`s id
Required Dynamic
stage Stage integer
The stage`s Id.
Required Dynamic
cartDiscountValue Cart Discount Value string
The discount on all cart.
Optional
cartDiscountType Cart Discount Type string
The type of the discount.
Optional
cartItems Cart Items string[]
The object items. Example: {"id":20,"price":{"currency": "EUR","value": "10000.0000"},"discount":{"type":"percentage","value": "20.0000"},"quantity": 2}
Optional
status Status string
Deal`s status
Optional
priceValue Price Value string
The deal`s price
Optional
priceCurrency Price Currency string
The deal`s currency
Optional
starred Starred boolean
Indicator the deal is starred or not.
Optional
ownerId Owner Id integer
The User`s id
Optional Dynamic
ownerUsername Owner Username string
The username to which the deal belongs.
Optional
ownerRandom Owner Random string
A list of users/user groups to select the random owner. Example 1: "ownerRandom": ["5", "6"], Example 2: "ownerRandom": {"groups":["1"]}, Example 3: "ownerRandom": {"0":"5","1":"6","groups":["1"]}
Optional
sourceId Source Id integer
The source`s id
Optional Dynamic
source Source string
If the source does not exist it will be created.
Optional
sourceDescription Source Description string
Will be set only if will be created new source.
Optional
tags Tags string[]
A list of tags
Optional
estimatedClosureDate Estimated Closure Date string
Example: 2017-03-10T11:45:59+02:00
Optional
actualClosureDate Actual Closure Date string
Example: 2017-03-10T11:45:59+02:00
Optional
createdDate Created Date string
Example: 2017-03-10T11:45:59+02:00
Optional
customFields Custom Fields string[]
A list of custom fields. Each row must be an object which the key is the custom field id. Example for string value: {"1":"Test value for field with Id 1"}
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
teamgate-update-deal
Version
0.0.2
App
Teamgate
Authentication
API key
Read-only
No
Destructive
Yes
Open world
Yes