> For the complete documentation index, see [llms.txt](https://docs.planetcrust.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.planetcrust.com/human-connections/google/google-sheets-individual/action-create-spreadsheet-row.md).

# Action: Create Spreadsheet Row

<p align="center"><a class="button primary" data-icon="circle-caret-right">Try @Human</a><a class="button primary" data-icon="check">Buy @Human Subscriptions</a><a class="button primary" data-icon="comments">Join @Human Community</a></p>

<figure><img src="/files/auAzkjCWGFak171PMqGd" alt=""><figcaption></figcaption></figure>

<p align="center">The Create Spreadsheet Row action inserts a new row into a specified sheet.</p>

{% embed url="<https://www.youtube.com/watch?v=CyuUuaBSZzA>" %}

#### Example User Story

I want to append a new row of sales data to my Google Sheet so that I can keep my records up-to-date.

#### Fields

| Field Name       | Field Type | Required |
| ---------------- | ---------- | -------- |
| spreadsheetId    | String     | Yes      |
| range            | String     | Yes      |
| values           | Any        | Yes      |
| valueInputOption | String     | No       |

### Related Connections

[Google Sheets](/human-connections/google/google-sheets-individual.md)

### Related Automations

Example link

### Code (Apache v2.0): Operation

```
{
  "handle": "create-spreadsheet-row",
  "state": "inDev",
  "meta": {
    "short": "Create Spreadsheet Row",
    "description": "Adds a new row to a specified Google Sheet."
  },
  "input": [
    {
      "name": "spreadsheetId",
      "type": "String",
      "required": true,
      "meta": {
        "description": "The spreadsheet to append a row to."
      }
    },
    {
      "name": "range",
      "type": "String",
      "required": true,
      "meta": {
        "description": "The A1 notation of the values to update."
      }
    },
    {
      "name": "values",
      "type": "Any",
      "required": true,
      "aggregate": true,
      "meta": {
        "description": "The list of arrays (rows) to append. In single-row format, supply one array of strings."
      }
    },
    {
      "name": "valueInputOption",
      "type": "String",
      "meta": {
        "default": "RAW",
        "description": "How the input data should be interpreted.",
        "options": [
          "RAW",
          "USER_ENTERED"
        ]
      }
    }
  ],
  "output": [
    {
      "name": "updatedRange",
      "type": "String",
      "selector": [
        "updates",
        "updatedRange"
      ],
      "meta": {
        "description": "The range of cells that were updated."
      }
    },
    {
      "name": "updatedRows",
      "type": "Integer",
      "selector": [
        "updates",
        "updatedRows"
      ],
      "meta": {
        "description": "The number of rows that were updated."
      }
    },
    {
      "name": "updatedColumns",
      "type": "Integer",
      "selector": [
        "updates",
        "updatedColumns"
      ],
      "meta": {
        "description": "The number of columns that were updated."
      }
    },
    {
      "name": "updatedCells",
      "type": "Integer",
      "selector": [
        "updates",
        "updatedCells"
      ],
      "meta": {
        "description": "The number of cells that were updated."
      }
    }
  ],
  "steps": [
    {
      "type": "http",
      "http": {
        "method": "POST",
        "path": {
          "value": "/{{spreadsheetId}}/values/{{range}}:append"
        },
        "headers": {
          "Content-Type": {
            "value": "application/json"
          }
        },
        "queryParams": {
          "valueInputOption": {
            "value": "{{valueInputOption}}"
          }
        },
        "bodyTemplate": {
          "value": "{\"values\": {{values}}}",
          "placeholders": [
            {
              "name": "values",
              "type": "Any",
              "description": "The data to insert into the spreadsheet.",
              "required": true,
              "default": ""
            }
          ]
        }
      }
    }
  ]
}
```

<p align="center"><a class="button primary" data-icon="square-caret-right">Try @Human</a><a class="button primary" data-icon="check">Buy @Human Subscription</a><a class="button primary" data-icon="comments">Join @Human Community</a></p>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.planetcrust.com/human-connections/google/google-sheets-individual/action-create-spreadsheet-row.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
