---
title: "Add conditional labels to rows"
method: POST
path: "/dataset/{handle}/conditional-label-column"
tags: ["data"]
---

# Add conditional labels to rows

`POST /dataset/{handle}/conditional-label-column`

Add a label column to the dataset with values based on specified conditions

## Path parameters

- `handle` string, required

## Request body

- LabelRequest
  - `cases` LabelCase[]
    - `filterModel` object
    - `label` string
  - `defaultLabel` string
  - `outputColumn` string

## Response `200`

OK

- unknown

## Other responses

- `400` — Bad Request
- `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)
