This endpoint creates a new service level ruleset with an optional set of rules.
{- "automation_rule_set": {
- "name": "string",
- "entity_type": "FORWARD",
- "merchants": [
- "string"
], - "countries": [
- "string"
], - "status": "ACTIVE"
}, - "automation_rules": [
- {
- "rule_name": "string",
- "config_type": "FULFILLMENT",
- "carrier_ids": {
- "operator": "INCLUSION",
- "value": [
- "string"
]
}, - "sequence": 0,
- "description": "string",
- "status": "ACTIVE",
- "source_type": {
- "operator": "INCLUSION",
- "value": [
- "string"
]
}, - "delivery_type": {
- "operator": "INCLUSION",
- "value": [
- "string"
]
}, - "order_type": {
- "operator": "INCLUSION",
- "value": [
- "string"
]
}, - "merchants": {
- "operator": "INCLUSION",
- "value": [
- "string"
]
}, - "pickup_partner_location_ids": {
- "operator": "INCLUSION",
- "value": [
- "string"
]
}, - "dropoff_partner_location_ids": {
- "operator": "INCLUSION",
- "value": [
- "string"
]
}, - "dropoff_v2": {
- "operator": "INCLUSION",
- "value": [
- {
- "country": "string",
- "state_cities": [
- {
- "state": null,
- "city_areas": [ ]
}
]
}
]
}, - "pickup_v2": {
- "operator": "INCLUSION",
- "value": [
- {
- "country": "string",
- "state_cities": [
- {
- "state": null,
- "city_areas": [ ]
}
]
}
]
}, - "volumetric_weight": {
- "min_value": 0,
- "max_value": 0
}, - "gross_weight": {
- "min_value": 0,
- "max_value": 0
}, - "custom_conditions": {
- "operator": "INCLUSION",
- "value": [
- {
- "attribute_name": "string",
- "operation": "CONTAINS",
- "values": [
- "string"
]
}
]
}, - "start_time": 0,
- "end_time": 0,
- "days": [
- "MONDAY"
]
}
]
}
{- "automation_rule_set": {
- "tenant": "string",
- "rule_set_id": "string",
- "name": "string",
- "entity_type": "FORWARD",
- "merchants": [
- "string"
], - "countries": [
- "string"
], - "status": "ACTIVE",
- "creation_date": "2019-08-24T14:15:22Z",
- "update_date": "2019-08-24T14:15:22Z"
}, - "automation_rules": [
- {
- "tenant": "string",
- "rule_id": "string",
- "rule_set_id": "string",
- "rule_name": "string",
- "sequence": 0,
- "description": "string",
- "config_type": "FULFILLMENT",
- "status": "ACTIVE",
- "source_type": {
- "operator": "INCLUSION",
- "value": [
- "string"
]
}, - "delivery_type": {
- "operator": "INCLUSION",
- "value": [
- "string"
]
}, - "carrier_ids": {
- "operator": "INCLUSION",
- "value": [
- "string"
]
}, - "order_type": {
- "operator": "INCLUSION",
- "value": [
- "string"
]
}, - "merchants": {
- "operator": "INCLUSION",
- "value": [
- "string"
]
}, - "pickup_partner_location_ids": {
- "operator": "INCLUSION",
- "value": [
- "string"
]
}, - "dropoff_partner_location_ids": {
- "operator": "INCLUSION",
- "value": [
- "string"
]
}, - "dropoff_v2": {
- "operator": "INCLUSION",
- "value": [
- {
- "country": "string",
- "state_cities": [
- {
- "state": null,
- "city_areas": [ ]
}
]
}
]
}, - "pickup_v2": {
- "operator": "INCLUSION",
- "value": [
- {
- "country": "string",
- "state_cities": [
- {
- "state": null,
- "city_areas": [ ]
}
]
}
]
}, - "volumetric_weight": {
- "min_value": 0,
- "max_value": 0
}, - "gross_weight": {
- "min_value": 0,
- "max_value": 0
}, - "custom_conditions": {
- "operator": "INCLUSION",
- "value": [
- {
- "attribute_name": "string",
- "operation": "CONTAINS",
- "values": [
- "string"
]
}
]
}, - "start_time": 0,
- "end_time": 0,
- "days": [
- "MONDAY"
], - "creation_date": "2019-08-24T14:15:22Z",
- "update_date": "2019-08-24T14:15:22Z"
}
]
}