圖形 API 版本

Product Feed Rules

閱讀中

你無法在此端點執行此操作。

建立中

You can make a POST request to rules edge from the following paths:
發佈到此關係連線時,會建立 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,
}

Error Codes

錯誤說明
100Invalid parameter

更新中

你無法在此端點執行此操作。

刪除中

你無法在此端點執行此操作。