View as Markdown
Harvest icon

Harvest ACTION

Create Timesheet Entry

  • Action
  • Writes data
  • OAuth
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's Harvest account once, then configure and run Create Timesheet Entry 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: "harvest-create-timesheet-entry",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    harvest: { authProvisionId: "apn_xxxxxxx" },
    accountId: "Account ID",
    projectId: "Project 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 Timesheet Entry inputs
Property Type Description
accountId Account ID string
The ID of your account
Required Dynamic
projectId Project ID string
The ID of the project to associate with the time entry
Required Dynamic
taskId Task ID string
The ID of the task to associate with the time entry
Required Dynamic
spentDate Spent date (YYYY-MM-DD) string
The ISO 8601 formatted date on which the time entry was spent. Example: 2019-07-26
Required
userId User ID string
The ID of the user to associate with the time entry
Optional Dynamic
specifyStartEndTime Specify start and end time boolean
Specify start and end time
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
harvest-create-timesheet-entry
Version
0.0.3
App
Harvest
Authentication
OAuth
Read-only
No
Destructive
No
Open world
Yes