View as Markdown
Teamgate icon

Teamgate ACTION

Update Product

Update a specific product. 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 Product 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-product",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    teamgate: { authProvisionId: "apn_xxxxxxx" },
    productId: 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 Product inputs
Property Type Description
productId Product Id integer
The product which will be updated
Required Dynamic
name Name string
The product's name.
Required
sku SKU string
Unique identification code.
Optional
description Description string
The description of the product.
Optional
category Category string
The product`s category
Optional Dynamic
isActive Is Active boolean
Set product availability.
Optional
costValue Cost Value string
The product cost.
Optional
costCurrency Cost Currency string
The product currency.
Optional
prices Prices string[]
The product prices. Example for string value: {"value":"1600", "currency":"USD"} Object format
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-product
Version
0.0.2
App
Teamgate
Authentication
API key
Read-only
No
Destructive
Yes
Open world
Yes