View as Markdown
Decision Journal icon

Decision Journal ACTION

Update Decision

Updates an existing decision. See the documentation
  • Action
  • Writes data
  • Destructive
  • OAuth
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's Decision Journal account once, then configure and run Update Decision 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: "decision_journal-update-decision",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    decision_journal: { authProvisionId: "apn_xxxxxxx" },
    decisionId: "Decision ID",
    title: "Title",
  },
})

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 Decision inputs
Property Type Description
decisionId Decision ID string
The unique identifier for a decision
Required Dynamic
title Title string
The title of the decision
Required
tags Tags string[]
Tags for a decision to organize
Optional
status Status string
The status of a decision or review
Required
context Context string
The context or background of the decision
Optional
expectedOutcome Expected Outcome string
The expected outcome of the decision
Optional
outcomeEstimates Outcome Estimates string[]
An array of outcome estimates in JSON string format. For each estimate, the format is {"text": "A description of an outcome estimate", "probability": "0.50"}
Optional
skillLuckWeight Skill-Luck Weight string
A number between 0 and 1 representing the weight of skill vs luck in the outcome
Optional
monthsToNextReview Months to Next Review integer
The number of months until the next review of the decision
Required

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
decision_journal-update-decision
Version
0.0.2
App
Decision Journal
Authentication
OAuth
Read-only
No
Destructive
Yes
Open world
Yes