Harvest icon

Harvest

Interact with Harvest API for time tracking and invoicing

Task → Update

AI-generated

Summary

Update an existing Harvest task by specifying its ID and changing its properties.

Inputs

  • ID (required) — The numeric ID of the task to update.
  • Update Fields — A collection of optional fields to modify the task's properties, including 'Name', 'Billable By Default', 'Default Hourly Rate', 'Is Default', and 'Is Active'.

Output shape

a single task object reflecting the updated values.

The updated task object is returned after a successful PATCH request. If an error occurs, an error message is returned instead.

Examples

Example 1: Update the name and mark a task as inactive

Provide the task ID and set 'Name' to the new string and 'Is Active' to false.

Discussion