There's a new version of the HubSpot API

As of November 30, 2022, HubSpot API Keys are being deprecated and are no longer supported. Continued use of HubSpot API Keys is a security risk to your account and data. Your API Keys could be deactivated at any time after Nov. 30th, and we recommend that you migrate to Private Apps as soon as possible so you do not lose business-critical functionality.

Update a calendar task

Last updated June 17, 2020

PUT /calendar/v1/events/task/:taskId

Method Details

HTTP Methods:


Response Format:


Requires Authentication?


Rate Limited?




Required Scope


Update a Task. this action will replace any existing allowed fields specified. Any fields not included will not change from existing values.

Note: This endpoint is for tasks on the Marketing calendar. For tasks associated with the CRM and CRM objects, please see the Engagements API
Required Parameters How to use Description
OAuth Access Token or API Key Authorization: Bearer {token} header
or hapikey={key} query parameter.
Used to authenticate the request. Please see this page for more details about authentication.

Allowed JSON Fields in the body

Field name Type Description
eventDate long When the task is set to be due, in milliseconds since the epoch
eventType string Type of calendar event; for tasks this is always PUBLISHING_TASK
category string type of task; one of BLOG_POST, EMAIL, LANDING_PAGE, CUSTOM. This must match existing value.
state string value of TODO or DONE
campaignGuid string value of campaign GUID associated with Task
topicIds list of longs The list of ids of topics associated with the associated Blog Post, if any. Otherwise null. Only read for BLOG_POST Tasks. See Topics API to get a list of topic ids.
name string Name of Task
description string description of Task
ownerId long HubSpot id of the user that the task is assigned to. See the Owners API to get a list of owner Ids