inventoryActivate mutation
Activate an inventory item at a location.
Required access
write_inventory
access scope.
On this page
Interactive example
This is an example mutation query. Use the embedded interactive tool below to edit the query.
Hint: use Ctrl + Space for autocompleting fields.
Arguments
Argument | Description |
---|---|
available
(
Int
)
|
The initial available quantity at the location. |
inventoryItemId
(
ID!
)
required
|
Specifies which item should be activated. |
locationId
(
ID!
)
required
|
Specifies where the item should be activated. |
Return fields
-
inventoryLevel (
InventoryLevel
)The newly activated inventory level.
-
userErrors (
[UserError!]!
)List of errors that occurred executing the mutation.
Activate an inventory item at a location.
Required access
write_inventory
access scope.
On this page
Interactive example
This is an example mutation query. Use the embedded interactive tool below to edit the query.
Hint: use Ctrl + Space for autocompleting fields.
Arguments
Argument | Description |
---|---|
available
(
Int
)
|
The initial available quantity at the location. |
inventoryItemId
(
ID!
)
required
|
Specifies which item should be activated. |
locationId
(
ID!
)
required
|
Specifies where the item should be activated. |
Return fields
-
inventoryLevel (
InventoryLevel
)The newly activated inventory level.
-
userErrors (
[UserError!]!
)List of errors that occurred executing the mutation.
Activate an inventory item at a location.
Required access
write_inventory
access scope.
On this page
Interactive example
This is an example mutation query. Use the embedded interactive tool below to edit the query.
Hint: use Ctrl + Space for autocompleting fields.
Arguments
Argument | Description |
---|---|
available
(
Int
)
|
The initial available quantity at the location. |
inventoryItemId
(
ID!
)
required
|
Specifies which item should be activated. |
locationId
(
ID!
)
required
|
Specifies where the item should be activated. |
Return fields
-
inventoryLevel (
InventoryLevel
)The newly activated inventory level.
-
userErrors (
[UserError!]!
)List of errors that occurred executing the mutation.
Activate an inventory item at a location.
Required access
write_inventory
access scope.
On this page
Interactive example
This is an example mutation query. Use the embedded interactive tool below to edit the query.
Hint: use Ctrl + Space for autocompleting fields.
Arguments
Argument | Description |
---|---|
available
(
Int
)
|
The initial available quantity at the location. |
inventoryItemId
(
ID!
)
required
|
Specifies which item should be activated. |
locationId
(
ID!
)
required
|
Specifies where the item should be activated. |
Return fields
-
inventoryLevel (
InventoryLevel
)The newly activated inventory level.
-
userErrors (
[UserError!]!
)List of errors that occurred executing the mutation.
Activate an inventory item at a location.
Required access
write_inventory
access scope.
On this page
Interactive example
This is an example mutation query. Use the embedded interactive tool below to edit the query.
Hint: use Ctrl + Space for autocompleting fields.
Arguments
Argument | Description |
---|---|
available
(
Int
)
|
The initial available quantity at the location. |
inventoryItemId
(
ID!
)
required
|
Specifies which item should be activated. |
locationId
(
ID!
)
required
|
Specifies where the item should be activated. |
Return fields
-
inventoryLevel (
InventoryLevel
)The newly activated inventory level.
-
userErrors (
[UserError!]!
)List of errors that occurred executing the mutation.
Activate an inventory item at a location.
Required access
write_inventory
access scope.
On this page
Interactive example
This is an example mutation query. Use the embedded interactive tool below to edit the query.
Hint: use Ctrl + Space for autocompleting fields.
Arguments
Argument | Description |
---|---|
available
(
Int
)
|
The initial available quantity at the location. |
inventoryItemId
(
ID!
)
required
|
Specifies which item should be activated. |
locationId
(
ID!
)
required
|
Specifies where the item should be activated. |
Return fields
-
inventoryLevel (
InventoryLevel
)The newly activated inventory level.
-
userErrors (
[UserError!]!
)List of errors that occurred executing the mutation.
Activate an inventory item at a location.
Required access
write_inventory
access scope.
On this page
Interactive example
This is an example mutation query. Use the embedded interactive tool below to edit the query.
Hint: use Ctrl + Space for autocompleting fields.
Arguments
Argument | Description |
---|---|
available
(
Int
)
|
The initial available quantity at the location. |
inventoryItemId
(
ID!
)
required
|
Specifies which item should be activated. |
locationId
(
ID!
)
required
|
Specifies where the item should be activated. |
Return fields
-
inventoryLevel (
InventoryLevel
)The newly activated inventory level.
-
userErrors (
[UserError!]!
)List of errors that occurred executing the mutation.
Activate an inventory item at a location.
Required access
write_inventory
access scope.
On this page
Interactive example
This is an example mutation query. Use the embedded interactive tool below to edit the query.
Hint: use Ctrl + Space for autocompleting fields.
Arguments
Argument | Description |
---|---|
available
(
Int
)
|
The initial available quantity at the location. |
inventoryItemId
(
ID!
)
required
|
Specifies which item should be activated. |
locationId
(
ID!
)
required
|
Specifies where the item should be activated. |
Return fields
-
inventoryLevel (
InventoryLevel
)The newly activated inventory level.
-
userErrors (
[UserError!]!
)List of errors that occurred executing the mutation.
Activate an inventory item at a location.
Required access
write_inventory
access scope.
On this page
Interactive example
This is an example mutation query. Use the embedded interactive tool below to edit the query.
Hint: use Ctrl + Space for autocompleting fields.
Arguments
Argument | Description |
---|---|
available
(
Int
)
|
The initial available quantity at the location. |
inventoryItemId
(
ID!
)
required
|
Specifies which item should be activated. |
locationId
(
ID!
)
required
|
Specifies where the item should be activated. |
Return fields
-
inventoryLevel (
InventoryLevel
)The newly activated inventory level.
-
userErrors (
[UserError!]!
)List of errors that occurred executing the mutation.
Activate an inventory item at a location.
Required access
write_inventory
access scope.
On this page
Interactive example
This is an example mutation query. Use the embedded interactive tool below to edit the query.
Hint: use Ctrl + Space for autocompleting fields.
Arguments
Argument | Description |
---|---|
available
(
Int
)
|
The initial available quantity at the location. |
inventoryItemId
(
ID!
)
required
|
Specifies which item should be activated. |
locationId
(
ID!
)
required
|
Specifies where the item should be activated. |
Return fields
-
inventoryLevel (
InventoryLevel
)The newly activated inventory level.
-
userErrors (
[UserError!]!
)List of errors that occurred executing the mutation.