---
title: "Enable/disable a table"
method: PUT
path: "/tables/{tableName}/state"
tags: ["Table"]
---

# Enable/disable a table

`PUT /tables/{tableName}/state`

Enable/disable a table

## Path parameters

- `tableName` string, required

## Query parameters

- `type` string, required
- `state` string, required

## Response `200`

Success

## Other responses

- `400` — Bad Request
- `404` — Table not found
- `500` — Internal error

---

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