---
title: "inventoryBulkToggleActivation"
description: >
  Adjust activation status of inventory items at different locations. 1. When an inventory item is activated at a specific location, it permits that location to store the item 2. When an inventory item is deactivated at a specific location, the inventory quantities at that location are cleared, and the item is disabled.
doc_type: graphql
doc_category: adminGraphQL
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/docs/admin-graph-ql-api/inventory/mutations/inventory-bulk-toggle-activation'
  md: 'https://developer.shopline.com/docs/admin-graph-ql-api/inventory/mutations/inventory-bulk-toggle-activation.md'
---
# inventoryBulkToggleActivation

Adjust activation status of inventory items at different locations.
1. When an inventory item is activated at a specific location, it permits that location to store the item
2. When an inventory item is deactivated at a specific location, the inventory quantities at that location are cleared, and the item is disabled.

- **API Version:** v20270301
- **API Type:** Admin
- **API Protocol:** GraphQL
- **Operation Type:** Mutation

## Type Signature

`InventoryBulkToggleActivationPayload!`

## Arguments

* `inventoryItemId`

  [ID!](https://developer.shopline.com/docs/admin-graph-ql-api/common/scalars/id.md)

  The inventory item ID needing activation status modification.

* `inventoryItemUpdates`

  [[InventoryBulkToggleActivationInput!]](https://developer.shopline.com/docs/admin-graph-ql-api/inventory/inputs/inventory-bulk-toggle-activation-input.md)

  Use the input fields to indicate if the inventory item needs activation at the specified location, supporting a maximum of 100 updates.

## Returns

* `inventoryItem`

  [InventoryItem](https://developer.shopline.com/docs/admin-graph-ql-api/inventory/objects/inventory-item.md)

  The updated inventory item.

* `inventoryLevels`

  [[InventoryLevel]](https://developer.shopline.com/docs/admin-graph-ql-api/inventory/objects/inventory-level.md)

  The inventory levels that were activated.

* `userErrors`

  [[UserError!]!](https://developer.shopline.com/docs/admin-graph-ql-api/common-objects/objects/user-error.md)

  A list of the errors encountered during the mutation. 

## Code Example

```graphql
mutation inventoryBulkToggleActivation($inventoryItemId: ID! $inventoryItemUpdates: [InventoryBulkToggleActivationInput!] ) {
	inventoryBulkToggleActivation(inventoryItemId: $inventoryItemId, inventoryItemUpdates: $inventoryItemUpdates ) 
		 {
			# InventoryBulkToggleActivationPayload fields
		}
		
	}

```

## Variables

```json
{
  "inventoryItemId": {},
  "inventoryItemUpdates": {
    "activate": {},
    "locationId": {}
  }
}
```

## Error Handling

For detailed information about common codes, see [Status and error codes](https://developer.shopline.com/docs/apps/api-instructions-for-use/graph-ql-admin-api/overview.md#status-and-error-codes).

