View as Markdown
Magnetic icon

Magnetic ACTION

Create Task

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

IMPLEMENTATION

Call this tool

Connect a user's Magnetic account once, then configure and run Create Task 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: "magnetic-create-task",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    magnetic: { authProvisionId: "apn_xxxxxxx" },
    name: "Name",
    description: "Description",
  },
})

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 Task inputs
Property Type Description
name Name string
Name of the new task
Required
description Description string
Description of the new task
Optional
grouping Opportunity/Job string
The Opportunity/Job the task will be created in
Optional Dynamic
user Task Owner string
The user who will be the owner of the task
Optional Dynamic
billable Billable boolean
Whether the time tracked on this task is billable or not
Optional
trackedTime Time Estimate integer
The estimated time for the task in minutes
Optional
timeMinutes Tracked Time integer
The time in minutes that the Task Owner has already tracked
Optional
startDate Start Date string
Start date of the new task in ISO 8601 format
Optional
endDate End Date string
End date of the new task in ISO 8601 format
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
magnetic-create-task
Version
0.0.2
App
Magnetic
Authentication
API key
Read-only
No
Destructive
No
Open world
Yes