---
title: "POST /v1/subaccount/{teamMemberId}/toggle"
method: POST
path: "/v1/subaccount/{teamMemberId}/toggle"
tags: ["SubaccountService"]
---

# POST /v1/subaccount/{teamMemberId}/toggle

`POST /v1/subaccount/{teamMemberId}/toggle`

启用/禁用子账号

## Path parameters

- `teamMemberId` string, required

## Request body

- ApiSubaccountV1ToggleSubaccountRequest — 启用/禁用子账号请求
  - `enabled` boolean
  - `reason` string
  - `teamMemberId` string

## Response `200`

OK

- ApiSubaccountV1ToggleSubaccountReply — 启用/禁用子账号响应
  - `success` boolean

---

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