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

# Create Or Update Task

> Documentation for the Create Or Update Task action for Hubspot

![images/hubspot.svg](https://mintcdn.com/morfhealth/EU2WCxuXGIUQcziR/images/hubspot.svg?fit=max\&auto=format\&n=EU2WCxuXGIUQcziR\&q=85\&s=2c859a5e64b7620515d906bc05e45339)

# Parameters

**Action** `Parameters`

**parameters**

**ID** `string`

`ID`
This field maps to the destination API `properties.id` field.

**Timestamp** `timing.v1.Timestamp` *required*

This field maps to the destination API `properties.hs_timestamp` field.

**Body** `string`

This field maps to the destination API `properties.hs_task_body` field.

**Subject** `string`

This field maps to the destination API `properties.hs_task_subject` field.

**Status** `hubspot.v1.TaskStatus`

This field maps to the destination API `properties.hs_task_status` field.

```json Allowed Enumeration Values theme={null}
TASK_STATUS_NOT_STARTED
TASK_STATUS_COMPLETED
```

**Task Type** `hubspot.v1.TaskType`

This field maps to the destination API `properties.hs_task_type` field.

```json Allowed Enumeration Values theme={null}
TASK_TYPE_EMAIL
TASK_TYPE_CALL
TASK_TYPE_TODO
```

**Priority** `hubspot.v1.TaskPriority`

This field maps to the destination API `properties.hs_task_priority` field.

```json Allowed Enumeration Values theme={null}
TASK_PRIORITY_LOW
TASK_PRIORITY_MEDIUM
TASK_PRIORITY_HIGH
```

**Owner** `string (Owner)`

This field maps to the destination API `properties.hubspot_owner_id` field.

**Reminder** `timing.v1.Timestamp`

This field maps to the destination API `properties.hs_task_reminders` field.

```json Result Object Example theme={null}
{
  "$result_object_key": {
    "body": "Task body",
    "created_at": "2025-10-08T14:33:28.689Z",
    "id": "90812527287",
    "owner_id": "356852704",
    "priority": "HIGH",
    "properties": {
      "hs_task_family": "SALES",
      "hs_task_for_object_type": "OWNER",
      "hs_task_is_all_day": "false",
      "hs_task_is_past_due_date": "true"
    },
    "reminder": "2024-08-15T02:00:00+00:00",
    "status": "NOT_STARTED",
    "subject": "Task subject",
    "timestamp": "1970-01-20T22:43:40.800Z",
    "type": "CALL",
    "updated_at": "2025-10-08T14:33:28.689Z"
  }
}
```

```json Result Object Description theme={null}
{
  "$result_object_key": {
    "body": "The body of the task",
    "created_at": "When the task was created",
    "id": "ID",
    "owner_id": "The owner ID for the task",
    "priority": "The priority of the task",
    "properties": {
      "key": null,
      "value": null
    },
    "reminder": "The reminder timestamp for the task",
    "status": "The status of the task",
    "subject": "The subject of the task",
    "timestamp": "Timestamp for the task",
    "type": "The type of task",
    "updated_at": "When the task was updated"
  }
}
```

### Result Object Field Details

You can use the result of the action's data as inputs to downstream workflow actions.

Each fetch action requires an object name, which nests the action's result data inside the downstream data context in the workflow. See [Passing Data Between Actions](https://docs.morf.health/docs/knowledge_base/passing_data_between_actions.md) for how to set it and reference the result from downstream nodes.

Here we demonstrate how to refer to this data using the prefix `$result_object_key`.

**Task** `Fetch Action Response Object`

**fields**

**id** `string` *required*

`ID` ID

```json CEL theme={null}
$result_object_key.id
```

```json Example theme={null}
"90812527287"
```

**created\_at** `timing.v1.Timestamp` *required*

When the task was created

```json CEL theme={null}
$result_object_key.created_at
```

```json Example theme={null}
"2025-10-08T14:33:28.689Z"
```

**updated\_at** `timing.v1.Timestamp`

When the task was updated

```json CEL theme={null}
$result_object_key.updated_at
```

```json Example theme={null}
"2025-10-08T14:33:28.689Z"
```

**timestamp** `timing.v1.Timestamp` *required*

Timestamp for the task

```json CEL theme={null}
$result_object_key.timestamp
```

```json Example theme={null}
"1970-01-20T22:43:40.800Z"
```

**body** `string`

`HI` `PII` The body of the task

```json CEL theme={null}
$result_object_key.body
```

```json Example theme={null}
"Task body"
```

**subject** `string`

`HI` `PII` The subject of the task

```json CEL theme={null}
$result_object_key.subject
```

```json Example theme={null}
"Task subject"
```

**reminder** `timing.v1.Timestamp`

The reminder timestamp for the task

```json CEL theme={null}
$result_object_key.reminder
```

```json Example theme={null}
"2024-08-15T02:00:00+00:00"
```

**owner\_id** `string`

`ID` The owner ID for the task

```json CEL theme={null}
$result_object_key.owner_id
```

```json Example theme={null}
"356852704"
```

**type** `hubspot.v1.TaskType`

The type of task

```json CEL theme={null}
$result_object_key.type
```

```json Example theme={null}
hubspot.v1.TaskType.TASK_TYPE_EMAIL
hubspot.v1.TaskType.TASK_TYPE_CALL
hubspot.v1.TaskType.TASK_TYPE_TODO
```

**priority** `hubspot.v1.TaskPriority`

The priority of the task

```json CEL theme={null}
$result_object_key.priority
```

```json Example theme={null}
hubspot.v1.TaskPriority.TASK_PRIORITY_LOW
hubspot.v1.TaskPriority.TASK_PRIORITY_MEDIUM
hubspot.v1.TaskPriority.TASK_PRIORITY_HIGH
```

**status** `hubspot.v1.TaskStatus`

The status of the task

```json CEL theme={null}
$result_object_key.status
```

```json Example theme={null}
hubspot.v1.TaskStatus.TASK_STATUS_NOT_STARTED
hubspot.v1.TaskStatus.TASK_STATUS_COMPLETED
```

**properties** `Map\<string,string\>` *required*

Task properties

```json CEL theme={null}
$result_object_key.properties
```

```json Example theme={null}
{
"hs_task_family": "SALES",
"hs_task_for_object_type": "OWNER",
"hs_task_is_all_day": "false",
"hs_task_is_past_due_date": "true"
}
```


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