---
title: "Admin Set Switch"
method: POST
path: "/api/billing/admin/switch"
tags: ["billing"]
---

# Admin Set Switch

`POST /api/billing/admin/switch`

## Request

- Base URL: `https://www.ucai.net` (the document declares no server; this is the origin it was published from)
- URL: `https://www.ucai.net/api/billing/admin/switch`
- Auth: none declared

打开、关闭会员计费，或改试点名单。改的是规则包 `billing.membership` 的两条参数，写审计与修订史。

## Request body

- SwitchRequest
  - `scope` 'off' | 'pilot' | 'all', required
  - `pilot_users` string[]: pilot 时必填：用户名

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/ucai/apis/abs-core.md) · [All operations](https://skmtc.dev/ucai/apis/abs-core/llms.txt) · [OpenAPI document](https://skmtc.dev/ucai/apis/abs-core/revisions/1502a61b5620?raw)
