W094: Update location
Edits a location's header fields, including its sort order. Triggered from Settings, Fulfillment locations.
Steps
-
Load the location. Call
Locations.getById. -
Check name uniqueness if changed.
-
Apply the patch. Call
Locations.update. SupportssortOrderreordering.
Returns
The updated location.
Business rules
- Names stay unique per org.
Errors
NotFoundError. The location was not found.ValidationError. Name collision.