---
title: "Update an item group"
method: POST
path: "/quickbooks-desktop/item-groups/{id}"
---

# Update an item group

`POST /quickbooks-desktop/item-groups/{id}`

Updates an existing item group.

## Path parameters

- `id` string, required — The QuickBooks-assigned unique identifier of the item group to update.

## Headers

- `Conductor-End-User-Id` string, required — The ID of the End-User to receive this request.

## Request body

- object
  - `revisionNumber` string, required — The current QuickBooks-assigned revision number of the item group object you are updating, which you can get by fetching the object first. Provide the most recent `revisionNumber` to ensure you're working with the latest data; otherwise, the update will return an error.
  - `name` string — The case-insensitive unique name of this item group, unique across all item groups. **NOTE**: Item groups do not have a `fullName` field because they are not hierarchical objects, which is why `name` is unique for them but not for objects that have parents. Maximum length: 31 characters.
  - `barcode` object — The item group's barcode.
    - `value` string — The item's barcode value.
    - `assignEvenIfUsed` boolean — Indicates whether to assign the barcode even if it is already used.
    - `allowOverride` boolean — Indicates whether to allow the barcode to be overridden.
  - `isActive` boolean — Indicates whether this item group is active. Inactive objects are typically hidden from views and reports in QuickBooks. Defaults to `true`.
  - `description` string — The item group's description that will appear on sales forms that include this item.
  - `unitOfMeasureSetId` string — The unit-of-measure set associated with this item group, which consists of a base unit and related units.
  - `forceUnitOfMeasureChange` boolean — Indicates whether to allow changing the item group's unit-of-measure set (using the `unitOfMeasureSetId` field) when the base unit of the new unit-of-measure set does not match that of the currently assigned set. Without setting this field to `true` in this scenario, the request will fail with an error; hence, this field is equivalent to accepting the warning prompt in the QuickBooks UI. NOTE: Changing the base unit requires you to update the item's quantities-on-hand and cost to reflect the new unit; otherwise, these values will be inaccurate. Alternatively, consider creating a new item with the desired unit-of-measure set and deactivating the old item.
  - `shouldPrintItemsInGroup` boolean — Indicates whether the individual items in this item group and their separate amounts appear on printed forms.
  - `clearItemLines` boolean — When `true`, removes all existing item lines associated with this item group. To modify or add individual item lines, use the field `itemLines` instead.
  - `lines` object[] — The item lines in this item group.
    - `itemId` string — The item associated with this item group line. This can refer to any good or service that the business buys or sells, including item types such as a service item, inventory item, or special calculation item like a discount item or sales-tax item.
    - `quantity` number — The quantity of the item group associated with this item group line. This field cannot be cleared. **NOTE**: Do not use this field if the associated item group is a discount item group.
    - `unitOfMeasure` string — The unit-of-measure used for the `quantity` in this item group line. Must be a valid unit within the item's available units of measure.

## Response `200`

Returns the updated item group.

- QbdItemGroup
  - `id` string, required — The unique identifier assigned by QuickBooks to this item group. This ID is unique across all item groups but not across different QuickBooks object types.
  - `objectType` 'qbd_item_group', required — The type of object. This value is always `"qbd_item_group"`.
  - `createdAt` string, required — The date and time when this item group was created, in ISO 8601 format (YYYY-MM-DDThh:mm:ss±hh:mm), which QuickBooks Desktop interprets in the local timezone of the end-user's computer.
  - `updatedAt` string, required — The date and time when this item group was last updated, in ISO 8601 format (YYYY-MM-DDThh:mm:ss±hh:mm), which QuickBooks Desktop interprets in the local timezone of the end-user's computer.
  - `revisionNumber` string, required — The current QuickBooks-assigned revision number of this item group object, which changes each time the object is modified. When updating this object, you must provide the most recent `revisionNumber` to ensure you're working with the latest data; otherwise, the update will return an error.
  - `name` string, required — The case-insensitive unique name of this item group, unique across all item groups. **NOTE**: Item groups do not have a `fullName` field because they are not hierarchical objects, which is why `name` is unique for them but not for objects that have parents.
  - `barcode` string, nullable, required — The item group's barcode.
  - `isActive` boolean, required — Indicates whether this item group is active. Inactive objects are typically hidden from views and reports in QuickBooks. Defaults to `true`.
  - `description` string, nullable, required — The item group's description that will appear on sales forms that include this item.
  - `unitOfMeasureSet` object, nullable, required — The unit-of-measure set associated with this item group, which consists of a base unit and related units.
    - `id` string, nullable, required — The unique identifier assigned by QuickBooks to this object. This ID is unique across all objects of the same type, but not across different QuickBooks object types.
    - `fullName` string, nullable, required — The fully-qualified unique name for this object, formed by combining the names of its parent objects with its own `name`, separated by colons. Not case-sensitive.
  - `shouldPrintItemsInGroup` boolean, required — Indicates whether the individual items in this item group and their separate amounts appear on printed forms.
  - `specialItemType` 'finance_charge' | 'reimbursable_expense_group' | 'reimbursable_expense_subtotal', nullable, required — The type of special item for this item group.
  - `externalId` string, nullable, required — A globally unique identifier (GUID) you, the developer, can provide for tracking this object in your external system. This field is immutable and can only be set during object creation.
  - `lines` QbdItemGroupLine[], required — The item lines in this item group.
    - `item` object, nullable, required — The item associated with this item group line. This can refer to any good or service that the business buys or sells, including item types such as a service item, inventory item, or special calculation item like a discount item or sales-tax item.
      - `id` string, nullable, required — The unique identifier assigned by QuickBooks to this object. This ID is unique across all objects of the same type, but not across different QuickBooks object types.
      - `fullName` string, nullable, required — The fully-qualified unique name for this object, formed by combining the names of its parent objects with its own `name`, separated by colons. Not case-sensitive.
    - `quantity` number, nullable, required — The quantity of the item group associated with this item group line. This field cannot be cleared. **NOTE**: Do not use this field if the associated item group is a discount item group.
    - `unitOfMeasure` string, nullable, required — The unit-of-measure used for the `quantity` in this item group line. Must be a valid unit within the item's available units of measure.
  - `customFields` QbdCustomField[], required — The custom fields for the item group object, added as user-defined data extensions, not included in the standard QuickBooks object.
    - `ownerId` string, required — The identifier of the owner of the custom field, which QuickBooks internally calls a "data extension". For public custom fields visible in the UI, such as those added by the QuickBooks user, this is always "0". For private custom fields that are only visible to the application that created them, this is a valid GUID identifying the owning application. Internally, Conductor always fetches all public custom fields (those with an `ownerId` of "0") for all objects.
    - `name` string, required — The name of the custom field, unique for the specified `ownerId`. For public custom fields, this name is visible as a label in the QuickBooks UI.
    - `type` 'amount_type' | 'date_time_type' | 'integer_type' | 'percent_type' | 'price_type' | 'quantity_type' | 'string_1024_type' | 'string_255_type', required — The data type of this custom field.
    - `value` string, required — The value of this custom field. The maximum length depends on the field's data type.

---

[API](https://skmtc.net/conductor-is/apis/conductor-api.md) · [All operations](https://skmtc.net/conductor-is/apis/conductor-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/conductor-is/conductor-api/revisions/0b07b3ebe160/schema)
