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

# Attio Create File: Inputs, Cost & CLI Example

> Create a native folder or connected file/folder entry on a record. Includes inputs, outputs, pricing notes, Deepline CLI examples, and GTM automation guidance.

## Run in Enrichment Spreadsheet

<Info>
  Use this function as a column step in `deepline enrich`.
</Info>

```bash theme={null}
deepline enrich --input leads.csv --output leads.enriched.csv --with 'result=attio_create_file:{"object":"{{object}}","record_id":"{{record_id}}","file_type":"folder"}' --json
```

<Tip>
  Map payload values to spreadsheet columns with `{{column_name}}` placeholders.
</Tip>

## Input Schema

| Name                                | Type                                                           | Required | Default | Description                               |
| ----------------------------------- | -------------------------------------------------------------- | -------- | ------- | ----------------------------------------- |
| `payload.object`                    | `string`                                                       | Yes      |         | Object slug or ID.                        |
| `payload.record_id`                 | `string`                                                       | Yes      |         | Record ID.                                |
| `payload.file_type`                 | `"folder" \| "connected-folder" \| "connected-file"`           | Yes      |         |                                           |
| `payload.name`                      | `string`                                                       | No       |         | Folder name.                              |
| `payload.parent_folder_id`          | `string`                                                       | No       |         | Optional parent folder ID.                |
| `payload.storage_provider`          | `"dropbox" \| "box" \| "google-drive" \| "microsoft-onedrive"` | No       |         | Connected storage provider.               |
| `payload.external_provider_file_id` | `string`                                                       | No       |         | External provider file or folder ID.      |
| `payload.microsoft_drive_id`        | `string`                                                       | No       |         | Optional Microsoft drive ID for OneDrive. |

### Allowed values

| Field                      | Allowed values                                         |
| -------------------------- | ------------------------------------------------------ |
| `payload.file_type`        | `folder`, `connected-folder`, `connected-file`         |
| `payload.storage_provider` | `dropbox`, `box`, `google-drive`, `microsoft-onedrive` |

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

  ### Input JSON Schema

  ```json theme={null}
  {
    "description": "Create a native folder or connected file/folder entry on a record.",
    "anyOf": [
      {
        "type": "object",
        "properties": {
          "object": {
            "type": "string",
            "description": "Object slug or ID.",
            "minLength": 1
          },
          "record_id": {
            "type": "string",
            "description": "Record ID.",
            "minLength": 1
          },
          "file_type": {
            "type": "string",
            "const": "folder"
          },
          "name": {
            "type": "string",
            "description": "Folder name.",
            "minLength": 1
          },
          "parent_folder_id": {
            "type": "string",
            "description": "Optional parent folder ID.",
            "minLength": 1
          }
        },
        "required": [
          "object",
          "record_id",
          "file_type",
          "name"
        ],
        "additionalProperties": false
      },
      {
        "type": "object",
        "properties": {
          "object": {
            "type": "string",
            "description": "Object slug or ID.",
            "minLength": 1
          },
          "record_id": {
            "type": "string",
            "description": "Record ID.",
            "minLength": 1
          },
          "file_type": {
            "type": "string",
            "const": "connected-folder"
          },
          "storage_provider": {
            "type": "string",
            "description": "Connected storage provider.",
            "enum": [
              "dropbox",
              "box",
              "google-drive",
              "microsoft-onedrive"
            ]
          },
          "external_provider_file_id": {
            "type": "string",
            "description": "External provider file or folder ID.",
            "minLength": 1
          },
          "microsoft_drive_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "Optional Microsoft drive ID for OneDrive."
          }
        },
        "required": [
          "object",
          "record_id",
          "file_type",
          "storage_provider",
          "external_provider_file_id"
        ],
        "additionalProperties": false
      },
      {
        "type": "object",
        "properties": {
          "object": {
            "type": "string",
            "description": "Object slug or ID.",
            "minLength": 1
          },
          "record_id": {
            "type": "string",
            "description": "Record ID.",
            "minLength": 1
          },
          "file_type": {
            "type": "string",
            "const": "connected-file"
          },
          "storage_provider": {
            "type": "string",
            "description": "Connected storage provider.",
            "enum": [
              "dropbox",
              "box",
              "google-drive",
              "microsoft-onedrive"
            ]
          },
          "external_provider_file_id": {
            "type": "string",
            "description": "External provider file or folder ID.",
            "minLength": 1
          },
          "microsoft_drive_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "Optional Microsoft drive ID for OneDrive."
          }
        },
        "required": [
          "object",
          "record_id",
          "file_type",
          "storage_provider",
          "external_provider_file_id"
        ],
        "additionalProperties": false
      }
    ]
  }
  ```
</details>

## Output Schema

| Name          | Type     | Required | Default | Description                                    |
| ------------- | -------- | -------- | ------- | ---------------------------------------------- |
| `result.data` | `record` | Yes      |         | Provider response payload.                     |
| `result.meta` | `record` | No       |         | Additional response metadata (status, paging). |

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

  ### Output JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Standard tool result payload.",
    "properties": {
      "data": {
        "type": "object",
        "description": "Provider response payload.",
        "additionalProperties": {}
      },
      "meta": {
        "type": "object",
        "description": "Additional response metadata (status, paging).",
        "additionalProperties": {}
      }
    },
    "required": [
      "data"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Advanced: Direct CLI

<Info>
  Use direct execution for single payload debugging.
</Info>

```bash theme={null}
deepline tools execute attio_create_file --payload '{
  "object": "string",
  "record_id": "string",
  "file_type": "folder"
}' --json
```

### CLI flags

| Flag                        | Description                                         |
| --------------------------- | --------------------------------------------------- |
| `--json`                    | Print machine-readable output.                      |
| `--wait`                    | Wait for terminal provider status when supported.   |
| `--debug`                   | Enable wait mode with additional status/log output. |
| `--wait-timeout SECONDS`    | Max seconds to wait in wait mode.                   |
| `--poll-interval SECONDS`   | Polling interval in seconds during wait mode.       |
| `--timeout SECONDS`         | Request timeout in seconds.                         |
| `--connect-timeout SECONDS` | Connection timeout in seconds.                      |

## Cost

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