← API reference
Mutation / logistics

upsertWarehouseLocation

Create or fully replace a warehouse location by id, preserving the original createdAt when it already exists, and emit an updated event. Because the whole state is written, omitted optional fields are reset to their defaults. Requires warehouseLocation:write permission.

Arguments

Full desired state of the location, optionally carrying the id of the location to replace.

Returns WarehouseLocationPayload!

Explore in a view

Fulfillment
View exact SDL
"""
Create or fully replace a warehouse location by id, preserving the original createdAt when it already exists, and emit an updated event. Because the whole state is written, omitted optional fields are reset to their defaults. Requires warehouseLocation:write permission.
"""
upsertWarehouseLocation(
  """
  Full desired state of the location, optionally carrying the id of the location to replace.
  """
  input: UpsertWarehouseLocationInput!
): WarehouseLocationPayload! @topic(names: ["logistics"])

Schema reference describes the API contract. Actual access is checked by the platform for every operation.