图谱 API 版

Product Feed Rules

读取

你无法在此端点执行该操作。

创建

你可以通过下列路径向 rules 连线发出 POST 请求:
发布到这个连线会创建 a ProductFeedRule

参数

参数描述
attribute
string

The attribute to which the rules are going to be applied. Its value maps to the the property we are going to transform.
Note: A feed can not have more than one rule with the same rule_type and attribute.

必填
params
dictionary { string : <string> }

Specifies the parameters which are going to be used as the input of the rule.

Each rule expects params object to be of particular form:
mapping_rule: {"map_from": string}
value_mapping_rule: {string: string}
letter_case_rule: {"type": one of
regex_replace_rule: {regex: string} //regex ==a valid regular expression eg: [Cc]olou?r"to_upper", "to_lower", "capitalize_all", "capitalize_first"}
fallback_rule: {"user_default_value": string}

rule_type
enum{mapping_rule, value_mapping_rule, letter_case_rule, fallback_rule, regex_replace_rule}

A type of a rule. Defines the operation that is going to be applied to the attribute.

必填

返回类型

这个端点支持先写后读,并会读取返回类型中 id 代表的节点。
Struct {
id: numeric string,
}

错误代码

错误描述
100Invalid parameter

更新

你无法在此端点执行该操作。

删除

你无法在此端点执行该操作。