younifyd
Menu

updateInventoryPositionsStatusByLocation

Bulk-set the status of every InventoryPosition at a location within a catalogue.

Use it in a workflow

  1. Add a step and choose the Fluent Commerce connector.
  2. Pick the updateInventoryPositionsStatusByLocation action (under Update).
  3. Fill in the fields below, then reference the result from later steps as {{updateinventorypositionsstatusbylocation.response.data}}.

Query

This is the mutation the action sends by default. Edit it in the step's Query field to change which fields come back.

graphql
mutation UpdateInventoryPositionsStatusByLocation($filter: InventoryPositionsLocationFilterInput!, $input: StatusInput!) {
  updateInventoryPositionsStatusByLocation(filter: $filter, input: $input) {
    count
  }
}

Variables

Pass these as a JSON object in the step's Variables field.

filterobjectrequired
catalogueobjectrequired1 fields
locationRefstringrequired
inputobjectrequired
statusstringrequired
json
{
  "filter": {
    "catalogue": {
      "ref": "string"
    },
    "locationRef": "string"
  },
  "input": {
    "status": "string"
  }
}

Response

Read the result with {{updateinventorypositionsstatusbylocation.response.data.data.updateInventoryPositionsStatusByLocation}}. If the API returns errors, the step fails and they are at {{updateinventorypositionsstatusbylocation.response.data.errors}}.

countnumber

Need more? See the Fluent Commerce guide for connection setup and behaviour shared by every action.