View as Markdown
Teamgate icon

Teamgate ACTION

Create Product

Create a new product. See the docs here
  • Action
  • Writes data
  • API key
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's Teamgate account once, then configure and run Create 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-create-product",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    teamgate: { authProvisionId: "apn_xxxxxxx" },
    name: "Name",
    sku: "SKU",
  },
})

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.

Create Product inputs
Property Type Description
name Name string
The product's name.
Required
sku SKU string
Unique identification code.
Optional
productDescription 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-create-product
Version
0.0.2
App
Teamgate
Authentication
API key
Read-only
No
Destructive
No
Open world
Yes