Skip to main content

updateRoutingStrategy

Updates an existing routing strategy. Only the provided fields change.

Business Rules

  • The strategy must exist within the current company.
  • At least one field must be provided.
  • A provided name must be 1-255 characters and unique within the company.
  • Provided buildings must belong to the current company, and maxFulfillments cannot exceed the included buildings.

Error Scenarios

  • **NOT_FOUND**: when the strategy or a building does not exist.
  • **BAD_REQUEST**: when no field is provided, the name is invalid or in use, the strategy is unknown, or maxFulfillments exceeds the included buildings.

Permissions Required

  • orders:update_routing_strategy permission
updateRoutingStrategy(
input: UpdateRoutingStrategyInput!
): RoutingStrategy

Arguments

updateRoutingStrategy.input ● UpdateRoutingStrategyInput! non-null input common

Parameters for UpdateRoutingStrategy

Type

RoutingStrategy object orders

Routing Strategy

A reusable, company-owned definition of how an order's fulfillments are split across buildings: which buildings and in what priority, the algorithm, and the maximum number of fulfillments. Applied to an order to create its fulfillments.