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

# Affinity Post Fields: Inputs, Cost & CLI Example

> Fields / Create a field. Affinity Affinity Post Fields docs include request fields, response shape, pricing notes, and Deepline CLI examples.

## 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=affinity_post_fields:{}' --json
```

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

## Input Schema

| Name                       | Type     | Required | Default | Description                                                                                                                                      |
| -------------------------- | -------- | -------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------ |
| `payload.name`             | `string` | No       |         | The name of the field.                                                                                                                           |
| `payload.entity_type`      | `string` | No       |         | This describes what type of list this field will be associated with the field. This can be one of three values, see below for all value types.   |
| `payload.value_type`       | `string` | No       |         | This describes what values can be associated with the field. This can be one of many values, see the Field Resource section for all value types. |
| `payload.list_id`          | `string` | No       |         | The unique identifier of the list that the field object belongs to if it is specific to a list. This is null if the field is global.             |
| `payload.allows_multiple`  | `string` | No       |         | This determines whether multiple values can be added to a single cell for the field.                                                             |
| `payload.is_list_specific` | `string` | No       |         | This determines whether the field object belongs to a specific list. If set to true, you must pass in the appropriate list\_id.                  |
| `payload.is_required`      | `string` | No       |         | This determines whether the field object is required.                                                                                            |

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

  ### Input JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Fields / Create a field",
    "properties": {
      "name": {
        "type": "string",
        "description": "The name of the field."
      },
      "entity_type": {
        "type": "string",
        "description": "This describes what type of list this field will be associated with the field. This can be one of three values, see below for all value types."
      },
      "value_type": {
        "type": "string",
        "description": "This describes what values can be associated with the field. This can be one of many values, see the Field Resource section for all value types."
      },
      "list_id": {
        "type": "string",
        "description": "The unique identifier of the list that the field object belongs to if it is specific to a list. This is null if the field is global."
      },
      "allows_multiple": {
        "type": "string",
        "description": "This determines whether multiple values can be added to a single cell for the field."
      },
      "is_list_specific": {
        "type": "string",
        "description": "This determines whether the field object belongs to a specific list. If set to true, you must pass in the appropriate list_id."
      },
      "is_required": {
        "type": "string",
        "description": "This determines whether the field object is required."
      }
    },
    "required": [],
    "additionalProperties": false
  }
  ```
</details>

## Output Schema

| Name          | Type     | Required | Default | Description                                    |
| ------------- | -------- | -------- | ------- | ---------------------------------------------- |
| `result.data` | `object` | Yes      |         | Provider response payload.                     |
| `result.meta` | `object` | 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": true
      },
      "meta": {
        "type": "object",
        "description": "Additional response metadata (status, paging).",
        "additionalProperties": true
      }
    },
    "required": [
      "data"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Advanced: Direct CLI

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

```bash theme={null}
deepline tools execute affinity_post_fields --payload '{}' --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`.
