Skip to content

Commit a64a50e

Browse files
committed
Add product_count to app rule settings request
1 parent 15f900c commit a64a50e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎_posts/2023-10-11-rules-and-queries.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ Fields included in settings request:
112112
"project_id": "XXXX",
113113
"runtime_format": "heureka.sk",
114114
"rule_id": 1,
115+
"product_count": 12345,
115116
"apply_settings": {
116117
"app_full_name": "application_name",
117118
"app_rule_type": "apps.application_name.dev.rule",
@@ -135,6 +136,7 @@ Explanation of the fields:
135136
* `project_id` - ID of the project. Changes in products by application rule are applied to this project.
136137
* `runtime_format` - Name of the format in which the products are represented when this rule is applied.
137138
* `rule_id` - ID of rule that will be applied on specified project.
139+
* `product_count` - Upper bound of the number of products that may be sent to the application during this rule application. It is the number of products this apply process will work with: by default only products changed since the last apply, or all products when a full apply is performed (e.g. it was forced, the rules changed, or the previous apply failed). The application will never receive more products than this value across all data requests of this rule application, and typically receives fewer, because the rule's own queries filter the products further. This field is only informative and cannot be changed by the application.
138140
* `apply_settings` - Settings of application rule.
139141
+ `app_full_name` - Name of application that rule belongs to.
140142
+ `app_rule_type` - ID of rule specified in [Mergado Developers](https://app.mergado.com/developres/) center.

0 commit comments

Comments
 (0)