---
title: "PUT /v1/admin/channel-sources/{sourceId}/user-ratios/{userId}"
method: PUT
path: "/v1/admin/channel-sources/{sourceId}/user-ratios/{userId}"
tags: ["AdminChannelSourceService"]
---

# PUT /v1/admin/channel-sources/{sourceId}/user-ratios/{userId}

`PUT /v1/admin/channel-sources/{sourceId}/user-ratios/{userId}`

UpsertChannelSourceUserRatio 配置（新建或覆盖更新）指定用户倍率：
 该用户使用该资源时以此销售倍率替代资源默认 sale_ratio（替代、不叠乘）。

## Path parameters

- `sourceId` string, required
- `userId` string, required

## Request body

- AdminV1UpsertChannelSourceUserRatioRequest
  - `remark` string
  - `saleRatio` string
  - `sourceId` string
  - `userId` string

## Response `200`

OK

- AdminV1ChannelSourceUserRatioReply
  - `ratio` AdminV1ChannelSourceUserRatioInfo — ChannelSourceUserRatioInfo 指定用户倍率条目。sale_ratio 为 decimal 字符串（如 "0.8500"）。
    - `createdAt` string, date-time
    - `id` string
    - `origin` string — origin 来源：manual=后台手工配置；migration=datamigrate 自源库分组特殊倍率展开。
    - `remark` string
    - `saleRatio` string
    - `sourceId` string
    - `updatedAt` string, date-time
    - `userId` string
    - `username` string — username 用户展示名（服务端按 user_id 反查回填；查不到时为空，前端按 user_id 兜底展示）。

---

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