The Rest API is deprecated and will be removed in the future. We recommend using the GraphQL API instead. Some endpoints may not be available anymore.

Create rule condition

POST

https://api.pack.cloud/v1/warehouses/{warehouseId}/rules/{ruleId}/conditions

Request

Path parameters

warehouseIdstring
ruleIdstring

Payload

coderequired
Code of the condition
Example:total_quantity_items_returned
operatorrequired
Operator of the condition
Example:eq
valuerequired
Value of the condition
Example:10

Response

Created

Body

idstring
ID of the rule condition
code
Code of the condition
Example:total_quantity_items_returned
operator
Operator of the condition
Example:eq
value
Value of the condition
Example:10
created_atstring
Creation time of resource
updated_atstring
Latest update time of resource