There's a new version of the HubSpot API
As of November 30, 2022, HubSpot API keys are no longer a supported authentication method for accessing HubSpot APIs. Instead, you should use a private app access token or OAuth to authenticate API calls. Learn more about this change and how to migrate an API key integration to use a private app instead.
Please note: all calendar API endpoints are being sunset and are no longer supported. These APIs will no longer function, and data from the marketing calendar will no longer be available via API. These APIs will be removed on August 31, 2023.
HTTP Methods:
DELETE
Response Format:
json
Requires Authentication?
Yes
Rate Limited?
Headers
Deletes Task from system. If there is a content object (Blog post, email, landing page) associated, they will not be affected.
Required Parameters | How to use | Description |
---|---|---|
OAuth access token or private app access token | Authorization: Bearer {token} header | Used to authenticate the request. Please see this page for more details about authentication. |
taskId | Used in the request URL | Unique identifier for the task to delete |
Example DELETE response:
HTTP/1.1 204 No Content