---
title: "InventoryBulkToggleActivationInput"
description: >
  Input fields to determine whether to activate the inventory item at the chosen location.
doc_type: graphql
doc_category: adminGraphQL
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/docs/admin-graph-ql-api/inventory/inputs/inventory-bulk-toggle-activation-input'
  md: 'https://developer.shopline.com/docs/admin-graph-ql-api/inventory/inputs/inventory-bulk-toggle-activation-input.md'
---
# InventoryBulkToggleActivationInput

Input fields to determine whether to activate the inventory item at the chosen location.

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

## Type Signature

`InventoryBulkToggleActivationInput`

## Input Fields

* `locationId`

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

  The location's ID used to update the inventory status of inventory items.

* `activate`

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

  Whether this inventory item can be stored at the specified location. If you want to deactivate it, set the value to false, which will remove the quantity of this inventory item from that location and close the inventory at that location.

## Schema Definition

```graphql
input InventoryBulkToggleActivationInput { 
	locationId: ID!
	activate: Boolean! 
}
```

## Argument from

* [Mutation](https://developer.shopline.com/docs/admin-graph-ql-api/inventory/mutations/inventory-bulk-toggle-activation.md).inventoryBulkToggleActivation

  修改位置处库存项目的激活状态。在特定位置激活库存物品允许该位置储存该库存物品。在某个位置停用库存项目会删除该库存项目的数量并关闭该位置的库存项目。

## 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).

