---
title: "Update Sheet"
method: PATCH
path: "/api/public/v2/tables/{table_id}/sheets/{sheet_id}"
tags: ["smart-tables"]
---

# Update Sheet

`PATCH /api/public/v2/tables/{table_id}/sheets/{sheet_id}`

Update Sheet. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace.

## Path parameters

- `table_id` string, uuid, required
- `sheet_id` string, uuid, required

## Request body

- object
  - `title` string, nullable
  - `index` integer, nullable — New display position within the table (0-based).

## Response `200`

Sheet updated

- object
  - `success` boolean
  - `sheet` Sheet — A sheet within a Table.
    - `id` string, uuid
    - `table_id` string, uuid
    - `workspace_id` integer — Workspace that owns this resource; determined by the authenticated request scope.
    - `title` string
    - `index` integer — Display order of the sheet within the table (0-based).
    - `row_count` integer
    - `version_count` integer — Current sheet version number. It increments when sheet data, layout, score configuration, imports, or execution output changes.
    - `created_at` string, date-time
    - `updated_at` string, date-time
  - `version` integer — Current sheet version_count for this response. It matches the sheet's version_count after any committed changes.

## Other responses

- `401` — Unauthorized - missing or invalid API key.
- `404` — Table or sheet not found

---

[API](https://skmtc.dev/promptlayer/apis/promptlayer-api.md) · [All operations](https://skmtc.dev/promptlayer/apis/promptlayer-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/promptlayer/promptlayer-api/revisions/a23093a0a506/schema)
