---
title: "Set the header row"
method: POST
path: "/v1/sheets/{sheet_id}/header-row"
tags: ["Sheets"]
---

# Set the header row

`POST /v1/sheets/{sheet_id}/header-row`

Set which row of the sheet contains column headers, or use auto-detection.

## Path parameters

- `sheet_id` integer, required

## Query parameters

- `embed_id` integer

## Request body

- SetHeaderRowRequest
  - `index` string, required — Set this to the (0-based) index of the row which includes the headers, or "auto" to automatically detect and set the header row.

## Response `200`

The request has succeeded.

- EmptyResponse

## Other responses

- `400` — 400

---

[API](https://skmtc.net/oneschema/apis/templates.md) · [All operations](https://skmtc.net/oneschema/apis/templates/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/oneschema/templates/versions/40674aa6d4d9/schema)
