upsertWarehouseLocation

Topics: Logistics

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.

Returns

WarehouseLocationPayload!

Arguments

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

Exact field 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"])

Declared on Mutation. Access is checked by the platform for each operation.