---
title: "POST /v1/admin/channel-sources"
method: POST
path: "/v1/admin/channel-sources"
tags: ["AdminChannelSourceService"]
---

# POST /v1/admin/channel-sources

`POST /v1/admin/channel-sources`

CreateChannelSource 新建渠道资源。

## Request body

- AdminV1CreateChannelSourceRequest
  - `code` string
  - `description` string
  - `descriptionEn` string
  - `name` string
  - `nameEn` string
  - `remark` string
  - `saleRatio` string
  - `userSelectable` boolean — 用户是否可选；不传默认 true。

## Response `200`

OK

- AdminV1ChannelSourceReply
  - `source` AdminV1ChannelSourceInfo — ChannelSourceInfo 资源目录条目。sale_ratio 为 decimal 字符串（如 "1.2000"），避免 float 精度问题。
    - `code` string
    - `createdAt` string, date-time
    - `description` string
    - `descriptionEn` string
    - `id` string
    - `name` string
    - `nameEn` string
    - `remark` string
    - `saleRatio` string
    - `updatedAt` string, date-time
    - `userRatioCount` string — 指定用户倍率数量；资源列表批量聚合回填，用于管理端直接进入已配置名单。
    - `userSelectable` boolean — 用户是否可选：仅控制用户能否新建令牌绑定，不影响存量绑定的路由计费。 optional（presence 语义）：全局 protojson EmitUnpopulated:false 会省略零值字段， false 必须显式 set 才能下发，否则前端拿不到字段误判为默认开。

---

[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)
