---
title: "Set column state"
method: PUT
path: "/client-state/{handle}/column-state"
tags: ["file"]
---

# Set column state

`PUT /client-state/{handle}/column-state`

Set column state in the client state of a sheet.

## Path parameters

- `handle` string, required

## Request body

- ClientstateSetColumnStateRequest
  - `columnState` ClientstateColumnState[]
    - `aggFunc` string
    - `colId` string
    - `flex` integer
    - `groupFunc` string
    - `hide` boolean
    - `pinned` string
    - `pivot` boolean
    - `pivotIndex` integer
    - `rowGroup` boolean
    - `rowGroupIndex` integer
    - `sort` string
    - `sortIndex` integer
    - `width` integer

## Response `200`

OK

- unknown

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `500` — Internal Server Error

---

[API](https://skmtc.net/freshdesk/apis/gigasheet-api.md) · [All operations](https://skmtc.net/freshdesk/apis/gigasheet-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/freshdesk/gigasheet-api/versions/d1e5cbb24557/schema)
