> ## Documentation Index
> Fetch the complete documentation index at: https://docs.conductor.is/llms.txt
> Use this file to discover all available pages before exploring further.

# Update an inventory site

> Updates an existing inventory site.



## OpenAPI

````yaml POST /quickbooks-desktop/inventory-sites/{id}
openapi: 3.1.0
info:
  title: Conductor API
  version: 0.0.1
servers:
  - url: https://api.conductor.is/v1
security:
  - BearerAuth: []
paths:
  /quickbooks-desktop/inventory-sites/{id}:
    post:
      summary: Update an inventory site
      description: Updates an existing inventory site.
      parameters:
        - in: path
          name: id
          description: >-
            The QuickBooks-assigned unique identifier of the inventory site to
            update.
          schema:
            type: string
            description: >-
              The QuickBooks-assigned unique identifier of the inventory site to
              update.
            example: 80000001-1234567890
          required: true
        - in: header
          name: Conductor-End-User-Id
          description: The ID of the End-User to receive this request.
          schema:
            type: string
            description: The ID of the End-User to receive this request.
            example: end_usr_1234567abcdefg
            x-stainless-naming:
              typescript:
                method_argument: conductorEndUserId
              mcp:
                method_argument: conductorEndUserId
          required: true
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                revisionNumber:
                  type: string
                  description: >-
                    The current QuickBooks-assigned revision number of the
                    inventory site 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.
                  example: '1721172183'
                name:
                  type: string
                  maxLength: 31
                  description: >-
                    The case-insensitive unique name of this inventory site,
                    unique across all inventory sites.


                    **NOTE**: Inventory sites 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.
                  example: Stockroom
                isActive:
                  type: boolean
                  description: >-
                    Indicates whether this inventory site is active. Inactive
                    objects are typically hidden from views and reports in
                    QuickBooks. Defaults to `true`.
                  example: true
                parentId:
                  type: string
                  description: >-
                    The parent inventory site one level above this one in the
                    hierarchy.
                  example: 80000001-1234567890
                description:
                  type: string
                  description: A description of this inventory site.
                  example: Main Stockroom for Electronics
                contact:
                  type: string
                  description: >-
                    The name of the primary contact person for this inventory
                    site.
                  example: Jane Smith
                phone:
                  type: string
                  description: The inventory site's primary telephone number.
                  example: +1-555-123-4567
                fax:
                  type: string
                  description: The inventory site's fax number.
                  example: +1-555-555-1212
                email:
                  type: string
                  description: The inventory site's email address.
                  example: inventory-site@example.com
                address:
                  type: object
                  properties:
                    line1:
                      type: string
                      maxLength: 41
                      description: >-
                        The first line of the site address (e.g., street, PO
                        Box, or company name).


                        Maximum length: 41 characters.
                      example: Conductor Labs Inc.
                    line2:
                      type: string
                      maxLength: 41
                      description: >-
                        The second line of the site address, if needed (e.g.,
                        apartment, suite, unit, or building).


                        Maximum length: 41 characters.
                      example: 540 Market St.
                    line3:
                      type: string
                      maxLength: 41
                      description: |-
                        The third line of the site address, if needed.

                        Maximum length: 41 characters.
                      example: Suite 100
                    line4:
                      type: string
                      maxLength: 41
                      description: |-
                        The fourth line of the site address, if needed.

                        Maximum length: 41 characters.
                      example: ''
                    line5:
                      type: string
                      maxLength: 41
                      description: |-
                        The fifth line of the site address, if needed.

                        Maximum length: 41 characters.
                      example: ''
                    city:
                      type: string
                      maxLength: 31
                      description: >-
                        The city, district, suburb, town, or village name of the
                        site address.


                        Maximum length: 31 characters.
                      example: San Francisco
                    state:
                      type: string
                      maxLength: 21
                      description: >-
                        The state, county, province, or region name of the site
                        address.


                        Maximum length: 21 characters.
                      example: CA
                    postalCode:
                      type: string
                      maxLength: 13
                      description: |-
                        The postal code or ZIP code of the site address.

                        Maximum length: 13 characters.
                      example: '94110'
                    country:
                      type: string
                      description: The country name of the site address.
                      example: United States
                  additionalProperties: false
                  description: The inventory site's address.
              required:
                - revisionNumber
              additionalProperties: false
      responses:
        '200':
          description: Returns the updated inventory site.
          headers:
            Conductor-Request-Id:
              schema:
                type: string
                description: The unique identifier for this API request.
                example: req_1234567abcdefg
              required: true
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/qbd_inventory_site'
      security:
        - BearerAuth: []
      x-codeSamples:
        - lang: JavaScript
          source: >-
            import Conductor from 'conductor-node';


            const conductor = new Conductor({
              apiKey: process.env['CONDUCTOR_SECRET_KEY'], // This is the default and can be omitted
            });


            const inventorySite = await
            conductor.qbd.inventorySites.update('80000001-1234567890', {
              revisionNumber: '1721172183',
              conductorEndUserId: 'end_usr_1234567abcdefg',
            });


            console.log(inventorySite.id);
        - lang: Python
          source: |-
            import os
            from conductor import Conductor

            conductor = Conductor(
                api_key=os.environ.get("CONDUCTOR_SECRET_KEY"),  # This is the default and can be omitted
            )
            inventory_site = conductor.qbd.inventory_sites.update(
                id="80000001-1234567890",
                revision_number="1721172183",
                conductor_end_user_id="end_usr_1234567abcdefg",
            )
            print(inventory_site.id)
components:
  schemas:
    qbd_inventory_site:
      type: object
      properties:
        id:
          type: string
          description: >-
            The unique identifier assigned by QuickBooks to this inventory site.
            This ID is unique across all inventory sites but not across
            different QuickBooks object types.
          example: 80000001-1234567890
        objectType:
          type: string
          const: qbd_inventory_site
          description: The type of object. This value is always `"qbd_inventory_site"`.
          example: qbd_inventory_site
        createdAt:
          type: string
          description: >-
            The date and time when this inventory site 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.
          example: '2025-01-01T12:34:56.000Z'
        updatedAt:
          type: string
          description: >-
            The date and time when this inventory site 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.
          example: '2025-02-01T12:34:56.000Z'
        revisionNumber:
          type: string
          description: >-
            The current QuickBooks-assigned revision number of this inventory
            site 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.
          example: '1721172183'
        name:
          type: string
          description: >-
            The case-insensitive unique name of this inventory site, unique
            across all inventory sites.


            **NOTE**: Inventory sites 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.
          example: Stockroom
        isActive:
          type: boolean
          description: >-
            Indicates whether this inventory site is active. Inactive objects
            are typically hidden from views and reports in QuickBooks. Defaults
            to `true`.
          example: true
        parent:
          type:
            - object
            - 'null'
          properties:
            id:
              type:
                - string
                - 'null'
              description: >-
                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.
              example: 80000001-1234567890
            fullName:
              type:
                - string
                - 'null'
              description: >-
                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.
              example: Parent:Child:Grandchild
          required:
            - id
            - fullName
          additionalProperties: false
          description: The parent inventory site one level above this one in the hierarchy.
          example:
            id: 80000001-1234567890
            fullName: Romulus Warehouse:Stockroom
        isDefault:
          type:
            - boolean
            - 'null'
          description: >-
            Indicates whether this inventory site is the default site used when
            no specific site is provided during the creation of other objects.
          example: true
        description:
          type:
            - string
            - 'null'
          description: A description of this inventory site.
          example: Main Stockroom for Electronics
        contact:
          type:
            - string
            - 'null'
          description: The name of the primary contact person for this inventory site.
          example: Jane Smith
        phone:
          type:
            - string
            - 'null'
          description: The inventory site's primary telephone number.
          example: +1-555-123-4567
        fax:
          type:
            - string
            - 'null'
          description: The inventory site's fax number.
          example: +1-555-555-1212
        email:
          type:
            - string
            - 'null'
          description: The inventory site's email address.
          example: inventory-site@example.com
        address:
          oneOf:
            - $ref: '#/components/schemas/qbd_site_address'
            - type: 'null'
          description: The inventory site's address.
      required:
        - id
        - objectType
        - createdAt
        - updatedAt
        - revisionNumber
        - name
        - isActive
        - parent
        - isDefault
        - description
        - contact
        - phone
        - fax
        - email
        - address
      additionalProperties: false
      title: The Inventory Site object
      x-conductor-object-type: other
      summary: >-
        An inventory site is a location where inventory is stored. For example,
        a company might have a warehouse, a stockroom, and a showroom, each of
        which is an inventory site. NOTE: Inventory sites require QuickBooks
        Enterprise with an Advanced Inventory subscription.
    qbd_site_address:
      type: object
      properties:
        line1:
          type:
            - string
            - 'null'
          description: >-
            The first line of the site address (e.g., street, PO Box, or company
            name).
          example: Conductor Labs Inc.
        line2:
          type:
            - string
            - 'null'
          description: >-
            The second line of the site address, if needed (e.g., apartment,
            suite, unit, or building).
          example: 540 Market St.
        line3:
          type:
            - string
            - 'null'
          description: The third line of the site address, if needed.
          example: Suite 100
        line4:
          type:
            - string
            - 'null'
          description: The fourth line of the site address, if needed.
          example: ''
        line5:
          type:
            - string
            - 'null'
          description: The fifth line of the site address, if needed.
          example: ''
        city:
          type:
            - string
            - 'null'
          description: >-
            The city, district, suburb, town, or village name of the site
            address.
          example: San Francisco
        state:
          type:
            - string
            - 'null'
          description: The state, county, province, or region name of the site address.
          example: CA
        postalCode:
          type:
            - string
            - 'null'
          description: The postal code or ZIP code of the site address.
          example: '94110'
        country:
          type:
            - string
            - 'null'
          description: The country name of the site address.
          example: United States
      required:
        - line1
        - line2
        - line3
        - line4
        - line5
        - city
        - state
        - postalCode
        - country
      additionalProperties: false
      title: The Site Address object
      x-conductor-object-type: nested
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: >-
        Your Conductor secret key using Bearer auth (e.g., `"Authorization:
        Bearer {{YOUR_SECRET_KEY}}"`).

````

Built with [Mintlify](https://mintlify.com).