> ## 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 File

> Documentation for the Create File 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**

**File Name** `string` *required*

This field maps to the destination API `fileName` field.

**Access** `hubspot.v1.FileAccess` *required*

This field maps to the destination API `options.access` field.

```json Allowed Enumeration Values theme={null}
FILE_ACCESS_PUBLIC_INDEXABLE
FILE_ACCESS_PUBLIC_NOT_INDEXABLE
FILE_ACCESS_PRIVATE
```

**Content From URL** `URL` *required*

This field maps to the destination API `file` field.

```json Result Object Example theme={null}
{
  "$result_object_key": {
    "access": "PUBLIC_INDEXABLE",
    "created_at": "2023-04-01T00:00:00Z",
    "extension": "pdf",
    "id": "1234567890",
    "name": "Signature",
    "path": "/patients/signature_123.pdf",
    "updated_at": "2023-04-01T00:00:00Z",
    "url": "https://12345678.fs1.hubspotusercontent-na1.net/hubfs/12345678/my_file.pdf"
  }
}
```

```json Result Object Description theme={null}
{
  "$result_object_key": {
    "access": "The access level of the file",
    "created_at": "The timestamp when the file was created",
    "extension": "The file extension",
    "id": "The unique identifier for the file",
    "name": "The name of the file",
    "path": "The path to the file",
    "updated_at": "The timestamp when the file was updated",
    "url": "The URL of the file"
  }
}
```

### 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`.

**File** `Fetch Action Response Object`

**fields**

**id** `string` *required*

The unique identifier for the file

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

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

**name** `string` *required*

The name of the file

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

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

**path** `string` *required*

The path to the file

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

```json Example theme={null}
"/patients/signature_123.pdf"
```

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

The timestamp when the file was created

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

```json Example theme={null}
"2023-04-01T00:00:00Z"
```

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

The timestamp when the file was updated

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

```json Example theme={null}
"2023-04-01T00:00:00Z"
```

**access** `hubspot.v1.FileAccess` *required*

The access level of the file

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

```json Example theme={null}
hubspot.v1.FileAccess.FILE_ACCESS_PUBLIC_INDEXABLE
hubspot.v1.FileAccess.FILE_ACCESS_PUBLIC_NOT_INDEXABLE
hubspot.v1.FileAccess.FILE_ACCESS_PRIVATE
```

**extension** `string`

The file extension

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

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

**url** `URL`

The URL of the file

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

```json Example theme={null}
"https://12345678.fs1.hubspotusercontent-na1.net/hubfs/12345678/my_file.pdf"
```


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