---
title: "POST /api/{session}/add-or-remove-label"
method: POST
path: "/api/{session}/add-or-remove-label"
tags: ["Labels"]
---

# POST /api/{session}/add-or-remove-label

`POST /api/{session}/add-or-remove-label`

## Path parameters

- `session` string, required

## Request body

- object
  - `chatIds` string[], required
  - `options` object[]
    - `labelId` string
    - `type` string

## Response `201`

Created

## Other responses

- `401` — Unauthorized
- `500` — Internal Server Error

---

[API](https://skmtc.net/wppconnect-team/apis/wppconnect-api-rest.md) · [All operations](https://skmtc.net/wppconnect-team/apis/wppconnect-api-rest/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/wppconnect-team/wppconnect-api-rest/revisions/9b4f8efc1a6b/schema)
