Skip to main content
Version: v1.0.0(int)

W094: Update location

Edits a location's header fields, including its sort order. Triggered from Settings, Fulfillment locations.

Steps

  1. Load the location. Call Locations.getById.

  2. Check name uniqueness if changed.

  3. Apply the patch. Call Locations.update. Supports sortOrder reordering.

Returns

The updated location.

Business rules

  • Names stay unique per org.

Errors

  • NotFoundError. The location was not found.
  • ValidationError. Name collision.