View as Markdown
Harvest icon

Harvest ACTION

Update Time Entry

Update an existing time entry. Use List Time Entries to find a valid ID. Example: call with timeEntryId set to a logged entry's ID and hours set to a corrected value to fix a mistaken time entry. See the documentation.
  • Action
  • Writes data
  • OAuth
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's Harvest account once, then configure and run Update Time 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-update-time-entry",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    harvest: { authProvisionId: "apn_xxxxxxx" },
    accountId: "Account ID",
    timeEntryId: "Time Entry 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.

Update Time Entry inputs
Property Type Description
accountId Account ID string
Your Harvest account ID, e.g. 1234567. Run List Account ID Options to find it.
Required
timeEntryId Time Entry ID string
Free-form time entry ID, e.g. 636708723. Run List Time Entries first to find valid IDs.
Required
projectId Project ID string
Free-form project ID, e.g. 14308069. Run Get Projects first to find valid IDs.
Optional
taskId Task ID string
Free-form task ID, e.g. 1467097. Run List Tasks first to find valid IDs.
Optional
spentDate Spent Date string
Date of the entry, format YYYY-MM-DD, e.g. 2026-09-17.
Optional
startedTime Started Time string
Start time, e.g. 8:00am.
Optional
endedTime Ended Time string
End time, e.g. 9:00am.
Optional
hours Hours string
Decimal hours, e.g. 3.5.
Optional
notes Notes string
Notes for the entry.
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
harvest-update-time-entry
Version
0.0.1
App
Harvest
Authentication
OAuth
Read-only
No
Destructive
No
Open world
Yes