Update Service Level Rule

This endpoint updates the service level rule.

SecurityOAuth2
Request
path Parameters
ruleset-id
required
string
service-level-rule-id
required
string
header Parameters
x-api-key
string
tenant-id
string
Content-Type
string
Default: application/json
Request Body schema: application/json
rule_name
required
string
config_type
string
Enum: "FULFILLMENT" "SHIPPING" "DELIVERY" "PROMISED"
object

shipment.source.source_type matches condition

sequence
required
number

Sequence number used for rules prioritisation (lower is more important)

description
string
status
required
string (status-field)
Enum: "ACTIVE" "INACTIVE" "DELETED"
object

shipment.source.source_type matches condition

object

shipment.delivery.delivery_type matches condition

object

shipment.order_type matches condition

object

shipment.merchant matches condition

object

shipment.pickup.partner_location_id matches condition

object

shipment.dropoff.partner_location_id matches condition

object

shipment.dropoff country state city area condition

object

shipment.pickup country state city area condition

object

shipment.parcels volumetric weight is inside range

object

shipment.parcels gross weight is inside range

object

shipment.custom_attributes matches condition

start_time
number

Time range when rule applies

end_time
number

Time range when rule applies

days
Array of strings

Days when rule applies

Items Enum: "MONDAY" "TUESDAY" "WEDNESDAY" "THURSDAY" "FRIDAY" "SATURDAY" "SUNDAY"
Responses
200
put/service-level-rulesets/{ruleset-id}/rules/{service-level-rule-id}
Request samples
application/json
{
  • "rule_name": "string",
  • "config_type": "FULFILLMENT",
  • "carrier_ids": {
    },
  • "sequence": 0,
  • "description": "string",
  • "status": "ACTIVE",
  • "source_type": {
    },
  • "delivery_type": {
    },
  • "order_type": {
    },
  • "merchants": {
    },
  • "pickup_partner_location_ids": {
    },
  • "dropoff_partner_location_ids": {
    },
  • "dropoff_v2": {
    },
  • "pickup_v2": {
    },
  • "volumetric_weight": {
    },
  • "gross_weight": {
    },
  • "custom_conditions": {
    },
  • "start_time": 0,
  • "end_time": 0,
  • "days": [
    ]
}
Response samples
application/json
{
  • "tenant": "string",
  • "rule_id": "string",
  • "rule_set_id": "string",
  • "rule_name": "string",
  • "sequence": 0,
  • "description": "string",
  • "config_type": "FULFILLMENT",
  • "status": "ACTIVE",
  • "source_type": {
    },
  • "delivery_type": {
    },
  • "carrier_ids": {
    },
  • "order_type": {
    },
  • "merchants": {
    },
  • "pickup_partner_location_ids": {
    },
  • "dropoff_partner_location_ids": {
    },
  • "dropoff_v2": {
    },
  • "pickup_v2": {
    },
  • "volumetric_weight": {
    },
  • "gross_weight": {
    },
  • "custom_conditions": {
    },
  • "start_time": 0,
  • "end_time": 0,
  • "days": [
    ],
  • "creation_date": "2019-08-24T14:15:22Z",
  • "update_date": "2019-08-24T14:15:22Z"
}