v48

latestOpenAPI 3.1.0raw.githubusercontent.com2026-07-262621423.8 MB

Update a class

Updates an existing class.

post/quickbooks-desktop/classes/{id}

Path parameters

idstring required

The QuickBooks-assigned unique identifier of the class to update.

Example:80000001-1234567890

The QuickBooks-assigned unique identifier of the class to update.

Headers

Conductor-End-User-Idstring required

The ID of the End-User to receive this request.

Example:end_usr_1234567abcdefg

The ID of the End-User to receive this request.

Request body

revisionNumberstring required

The current QuickBooks-assigned revision number of the class 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.

namestring

The case-insensitive name of this class. Not guaranteed to be unique because it does not include the names of its hierarchical parent objects like fullName does. For example, two classes could both have the name "Marketing", but they could have unique fullName values, such as "Department:Marketing" and "Internal:Marketing".

Maximum length: 31 characters.

isActiveboolean

Indicates whether this class is active. Inactive objects are typically hidden from views and reports in QuickBooks. Defaults to true.

parentIdstring

The parent class one level above this one in the hierarchy. For example, if this class has a fullName of "Department:Marketing", its parent has a fullName of "Department". If this class is at the top level, this field will be null.

Example request

{
  "revisionNumber": "1721172183",
  "name": "Marketing",
  "isActive": true,
  "parentId": "80000001-1234567890"
}

Response

Returns the updated class.

idstring required

The unique identifier assigned by QuickBooks to this class. This ID is unique across all classes but not across different QuickBooks object types.

objectType'qbd_class' required

The type of object. This value is always "qbd_class".

createdAtstring required

The date and time when this class 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.

updatedAtstring required

The date and time when this class 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.

revisionNumberstring required

The current QuickBooks-assigned revision number of this class 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.

namestring required

The case-insensitive name of this class. Not guaranteed to be unique because it does not include the names of its hierarchical parent objects like fullName does. For example, two classes could both have the name "Marketing", but they could have unique fullName values, such as "Department:Marketing" and "Internal:Marketing".

fullNamestring required

The case-insensitive fully-qualified unique name of this class, formed by combining the names of its hierarchical parent objects with its own name, separated by colons. For example, if a class is under "Department" and has the name "Marketing", its fullName would be "Department:Marketing".

NOTE: Unlike name, fullName is guaranteed to be unique across all class objects. However, fullName can still be arbitrarily changed by the QuickBooks user when they modify the underlying name field.

isActiveboolean required

Indicates whether this class is active. Inactive objects are typically hidden from views and reports in QuickBooks. Defaults to true.

sublevelnumber required

The depth level of this class in the hierarchy. A top-level class has a sublevel of 0; each subsequent sublevel increases this number by 1. For example, a class with a fullName of "Department:Marketing" would have a sublevel of 1.

Example response

{
  "id": "80000001-1234567890",
  "objectType": "qbd_class",
  "createdAt": "2025-01-01T12:34:56+00:00",
  "updatedAt": "2025-02-01T12:34:56+00:00",
  "revisionNumber": "1721172183",
  "name": "Marketing",
  "fullName": "Department:Marketing",
  "isActive": true,
  "parent": {
    "id": "80000001-1234567890",
    "fullName": "Department"
  },
  "sublevel": 1
}