跳转到主要内容
POST
POST /admin/api/default-model-catalog/apply-prices

授权

gproxy_session
string
cookie
必填

请求头

x-gproxy-admin-scope
string

Administrative scope selected by the caller.

请求体

application/json
modelIds
string[]
必填

Catalog model_ids, or names a catalog glob covers.

overwrite
boolean
默认值:false

Whether a rule that already covers the same pattern in the same scope is replaced. False leaves an operator's edited price alone, which is what makes re-applying the catalog safe.

providerId
string | null

None writes global rules, which price the model at every provider. A provider id writes rules that only that provider's traffic matches, and those are written under the literal model id rather than the catalog's glob.

响应

Success

created
integer<uint64>
必填
必填范围: x >= 0
skipped
integer<uint64>
必填

Rules already present that overwrite: false left alone.

必填范围: x >= 0
unmatched
integer<uint64>
必填

Names no catalog entry covers.

必填范围: x >= 0
updated
integer<uint64>
必填

Rules overwrite replaced, rates and tiers included.

必填范围: x >= 0