router/api-router.go:221。controller.UpdateModelPricingConfig,controller/model_pricing_config.go:59。option:write。同时需要满足接口的角色和业务要求。Authorization: Bearer ********************curl --location --request PATCH '/api/option/model_pricing' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"changes": [
{
"model_name": "string",
"expected_version": "string",
"pricing": {
"property1": "string",
"property2": "string"
},
"reset": true,
"property1": "string",
"property2": "string"
}
],
"property1": "string",
"property2": "string"
}'{
"success": true,
"message": "string",
"data": {
"updated_models": [
"string"
],
"property1": "string",
"property2": "string"
},
"property1": "string",
"property2": "string"
}