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

# Snowflake Actions/update Semantic Layer: Inputs, Cost &

> Validating and saving the active Snowflake semantic layer YAML for the organization. Includes inputs, outputs, costs, 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=snowflake_update_semantic_layer:{}' --json
```

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

## Input Schema

| Name              | Type      | Required | Default | Description                                                                     |
| ----------------- | --------- | -------- | ------- | ------------------------------------------------------------------------------- |
| `payload.yaml`    | `string`  | No       |         | Full Snowflake semantic layer YAML. Use either yaml or content.                 |
| `payload.content` | `string`  | No       |         | Alias for yaml, useful for generic document upload callers.                     |
| `payload.dryRun`  | `boolean` | No       | `false` | Validate and return metadata without writing the semantic layer. Default false. |

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

  ### Input JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Validate and save the active Snowflake semantic layer for the organization.",
    "properties": {
      "yaml": {
        "type": "string",
        "description": "Full Snowflake semantic layer YAML. Use either yaml or content."
      },
      "content": {
        "type": "string",
        "description": "Alias for yaml, useful for generic document upload callers."
      },
      "dryRun": {
        "type": "boolean",
        "description": "Validate and return metadata without writing the semantic layer. Default false.",
        "default": false
      }
    },
    "additionalProperties": false
  }
  ```
</details>

## Output Schema

| Name          | Type     | Required | Default | Description                    |
| ------------- | -------- | -------- | ------- | ------------------------------ |
| `result.data` | `object` | Yes      |         | Saved semantic layer metadata. |

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

  ### Output JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Snowflake semantic layer update result.",
    "properties": {
      "data": {
        "type": "object",
        "description": "Saved semantic layer metadata.",
        "properties": {
          "ok": {
            "type": "boolean"
          },
          "configured": {
            "type": "boolean"
          },
          "source": {
            "type": "string",
            "enum": [
              "customer_db"
            ]
          },
          "provider": {
            "type": "string",
            "const": "snowflake"
          },
          "contentHash": {
            "type": "string"
          },
          "updatedAt": {
            "type": [
              "string",
              "null"
            ]
          },
          "tableCount": {
            "type": "integer"
          },
          "tables": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "dryRun": {
            "type": "boolean"
          }
        },
        "required": [
          "ok",
          "configured",
          "source",
          "provider",
          "contentHash",
          "updatedAt",
          "tableCount",
          "tables",
          "dryRun"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "data"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Advanced: Direct CLI

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

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