---
title: "Unassign team member from a chat"
method: POST
path: "/team-member/unassign"
tags: ["Team Member"]
---

# Unassign team member from a chat

`POST /team-member/unassign`

Unassign a team member from an individual customer chat or a WA group chat. Provide either customerPhoneNumber (for individual chats) or groupId. Exactly one of the two must be supplied.

## Request body

- UnassignTeamMemberChatDto
  - `customerPhoneNumber` string, phone — Phone number of customer (required if groupId is not provided)
  - `groupId` string — GroupId of the WA group (required if customerPhoneNumber is not provided)
  - `wabaNumber` string, phone — WhatsApp Business Account number (only applicable when customerPhoneNumber is used)

## Response `201`

Success

- object
  - `success` boolean

## Other responses

- `400` — Incorrect payload
- `401` — Unauthorized
- `422` — User is not a member of the team

---

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