> ## Documentation Index
> Fetch the complete documentation index at: https://deepline.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# HubSpot: Update Task

> Update a HubSpot task's title, due date, priority, assignee, or notes by record ID. Includes inputs, outputs, SDK V2 examples, and Deepline cost.

Update a HubSpot task's title, due date, priority, assignee, or notes by record ID.

> [!NOTE]
>
> Tool ID: `hubspot_update_task`

## Run this action

Use the TypeScript SDK for one call. Use `ctx.tools.execute(...)` inside a Play for durable calls, scheduled calls, or CSV processing.

```ts theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
import { Deepline } from 'deepline';

const deepline = await Deepline.connect();
const result = await deepline.tools.execute(
  'hubspot_update_task',
  {
    "id": "id_123"
  },
);

console.log(result.toolResponse.raw);
```

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline tools execute hubspot_update_task --input '{
  "id": "id_123"
}' --json
```

## Example response

The SDK returns this shape at `result.toolResponse.raw`. The example values illustrate the response.

```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
{
  "data": {
    "id": "id_123"
  }
}
```

Use `deepline describe hubspot_update_task --json` for the latest machine-readable contract.

## Input reference

Update a HubSpot task.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.id` | `string` | Yes | — | — |
| `payload.task_type` | `string` | No | — | — |
| `payload.title` | `string` | No | — | — |
| `payload.priority` | `"LOW" \| "MEDIUM" \| "HIGH"` | No | — | Allowed: `LOW`, `MEDIUM`, `HIGH`. |
| `payload.assigned_to` | `string` | No | — | — |
| `payload.due_date` | `string` | No | — | — |
| `payload.notes` | `string` | No | — | — |

<details>
  <summary>Show raw input schema</summary>

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Update a HubSpot task.",
    "properties": {
      "id": {
        "type": "string"
      },
      "task_type": {
        "type": "string"
      },
      "title": {
        "type": "string"
      },
      "priority": {
        "type": "string",
        "enum": [
          "LOW",
          "MEDIUM",
          "HIGH"
        ]
      },
      "assigned_to": {
        "type": "string"
      },
      "due_date": {
        "type": "string"
      },
      "notes": {
        "type": "string"
      }
    },
    "required": [
      "id"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | Provider response payload. |
| `result.data.id` | `string` | Yes | — | — |
| `result.data.task_type` | `string` | No | — | — |
| `result.data.title` | `string` | No | — | — |
| `result.data.priority` | `string` | No | — | — |
| `result.data.assigned_to` | `string` | No | — | — |
| `result.data.due_date` | `string` | No | — | — |
| `result.data.notes` | `string` | No | — | — |
| `result.data.associations` | `array` | No | — | — |
| `result.data.associations[].to` | `number` | Yes | — | — |
| `result.data.associations[].types` | `array` | Yes | — | — |
| `result.data.associations[].types[].association_category` | `string` | Yes | — | — |
| `result.data.associations[].types[].association_type_Id` | `number` | Yes | — | — |
| `result.meta` | `record` | No | — | Additional response metadata (status, paging). |

<details>
  <summary>Show raw output schema</summary>

  ### Output JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Standard tool result payload.",
    "properties": {
      "data": {
        "type": "object",
        "description": "Provider response payload.",
        "properties": {
          "id": {
            "type": "string"
          },
          "task_type": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "priority": {
            "type": "string"
          },
          "assigned_to": {
            "type": "string"
          },
          "due_date": {
            "type": "string"
          },
          "notes": {
            "type": "string"
          },
          "associations": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "to": {
                  "type": "number"
                },
                "types": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "association_category": {
                        "type": "string"
                      },
                      "association_type_Id": {
                        "type": "number"
                      }
                    },
                    "required": [
                      "association_category",
                      "association_type_Id"
                    ],
                    "additionalProperties": false
                  }
                }
              },
              "required": [
                "to",
                "types"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": false
      },
      "meta": {
        "type": "object",
        "description": "Additional response metadata (status, paging).",
        "additionalProperties": {}
      }
    },
    "required": [
      "data"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Deepline cost

* Pricing model: `fixed` (per call).
* Estimated Deepline credits: `0` per pricing unit.
* Provider-native pricing may still exist outside Deepline credit billing.

## Related documentation

* [HubSpot provider guide](https://deepline.com/docs/providers/hubspot/guide.md)
* [SDK V2 quickstart](https://deepline.com/docs/sdk-v2/quickstart.md)
* [SDK reference](https://deepline.com/docs/sdk-v2/sdk-reference.md)
* [Run tools across a CSV](https://deepline.com/docs/sdk-v2/batch-csv.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.