View as Markdown
BaseLinker icon

BaseLinker ACTION

Create Or Update Inventory Product

It allows you to add a new product to BaseLinker catalog. Entering the product with the ID updates previously saved product. See the Documentation.
  • Action
  • Writes data
  • Destructive
  • API key
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's BaseLinker account once, then configure and run Create Or Update Inventory 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: "baselinker-create-or-update-inventory-product",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    baselinker: { authProvisionId: "apn_xxxxxxx" },
    inventoryId: "Inventory ID",
    productId: "Product ID",
  },
})

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 Or Update Inventory Product inputs
Property Type Description
inventoryId Inventory ID string
The ID of the inventory.
Required Dynamic
productId Product ID string
Main product identifier, given only during the update. Should be left blank when creating a new product. The new product identifier is returned as a response to this method.
Optional Dynamic
name Product Name string
The name of the product.
Required
description Product Description string
The description of the product.
Optional
sku SKU string
The SKU of the product.
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
baselinker-create-or-update-inventory-product
Version
0.0.2
App
BaseLinker
Authentication
API key
Read-only
No
Destructive
Yes
Open world
Yes