---
title: "Resets all segments (when errorSegmentsOnly = false) or segments with Error state (when errorSegmentsOnly = true) of the table, by first disabling them, waiting for external view to stabilize, and finally enabling them"
method: POST
path: "/segments/{tableNameWithType}/reset"
tags: ["Segment"]
---

# Resets all segments (when errorSegmentsOnly = false) or segments with Error state (when errorSegmentsOnly = true) of the table, by first disabling them, waiting for external view to stabilize, and finally enabling them

`POST /segments/{tableNameWithType}/reset`

Resets segments by disabling and then enabling them

## Path parameters

- `tableNameWithType` string, required

## Query parameters

- `targetInstance` string
- `errorSegmentsOnly` boolean

## Response `200`

successful operation

- SuccessResponse
  - `status` string

---

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