> ## 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 a custom field definition

> Renames a custom field or changes the types of records it applies to. The `id` in the path is the custom field's current name.



## OpenAPI

````yaml POST /quickbooks-desktop/custom-field-definitions/{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/custom-field-definitions/{id}:
    post:
      summary: Update a custom field definition
      description: >-
        Renames a custom field or changes the types of records it applies to.
        The `id` in the path is the custom field's current name.
      parameters:
        - in: header
          name: Conductor-End-User-Id
          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
          description: The ID of the End-User to receive this request.
        - in: path
          name: id
          schema:
            type: string
            maxLength: 31
            description: >-
              The `id` of the custom field definition, which is its name.
              QuickBooks matches the name without regard to letter case. For a
              private definition, also send its `ownerId`; without it, the
              request acts on the public definition with this name.
            example: Customer Rating
          required: true
          description: >-
            The `id` of the custom field definition, which is its name.
            QuickBooks matches the name without regard to letter case. For a
            private definition, also send its `ownerId`; without it, the request
            acts on the public definition with this name.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                ownerId:
                  description: >-
                    The owner of the custom field. Defaults to `"0"`, the owner
                    of public custom fields, which QuickBooks users define and
                    see. Any other owner is an application's GUID in braces,
                    such as `"{6B063959-81B0-4622-85D6-F548C8CCB517}"`, whose
                    private custom fields appear only in requests that name it.
                  example: '0'
                  default: '0'
                  type: string
                name:
                  description: >-
                    The new name of the custom field. Its values stay with it,
                    and the definition's `id` becomes the new name.
                  example: Customer Tier
                  type: string
                  maxLength: 31
                addObjectTypes:
                  description: >-
                    The types of records to also apply the custom field to. A
                    public custom field takes only `"customer"`, `"vendor"`,
                    `"employee"`, or `"item"`, and QuickBooks adds the matching
                    transaction types itself.
                  example:
                    - vendor
                  minItems: 1
                  type: array
                  items:
                    type: string
                    enum:
                      - account
                      - ar_refund_credit_card
                      - bill
                      - bill_payment_check
                      - bill_payment_credit_card
                      - build_assembly
                      - charge
                      - check
                      - company
                      - credit_card_charge
                      - credit_card_credit
                      - credit_memo
                      - customer
                      - deposit
                      - employee
                      - estimate
                      - inventory_adjustment
                      - invoice
                      - item
                      - item_receipt
                      - journal_entry
                      - other_name
                      - purchase_order
                      - receive_payment
                      - sales_order
                      - sales_receipt
                      - sales_tax_payment_check
                      - vendor
                      - vendor_credit
                removeObjectTypes:
                  description: >-
                    The types of records to stop applying the custom field to. A
                    public custom field takes only `"customer"`, `"vendor"`,
                    `"employee"`, or `"item"`, and QuickBooks removes the
                    matching transaction types itself. Removing a type hides the
                    custom field's values on its records without erasing them,
                    and adding the type back with `addObjectTypes` restores them
                    unchanged.
                  example:
                    - employee
                  minItems: 1
                  type: array
                  items:
                    type: string
                    enum:
                      - account
                      - ar_refund_credit_card
                      - bill
                      - bill_payment_check
                      - bill_payment_credit_card
                      - build_assembly
                      - charge
                      - check
                      - company
                      - credit_card_charge
                      - credit_card_credit
                      - credit_memo
                      - customer
                      - deposit
                      - employee
                      - estimate
                      - inventory_adjustment
                      - invoice
                      - item
                      - item_receipt
                      - journal_entry
                      - other_name
                      - purchase_order
                      - receive_payment
                      - sales_order
                      - sales_receipt
                      - sales_tax_payment_check
                      - vendor
                      - vendor_credit
              additionalProperties: false
      responses:
        '200':
          description: Returns the updated custom field definition.
          headers:
            Conductor-Request-Id:
              required: true
              description: The unique identifier for this API request.
              schema:
                type: string
                description: The unique identifier for this API request.
                example: req_1234567abcdefg
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/qbd_custom_field_definition'
      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 customFieldDefinition = await
            conductor.qbd.customFieldDefinitions.update('Customer Rating', {
              conductorEndUserId: 'end_usr_1234567abcdefg',
            });


            console.log(customFieldDefinition.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
            )

            custom_field_definition =
            conductor.qbd.custom_field_definitions.update(
                id="Customer Rating",
                conductor_end_user_id="end_usr_1234567abcdefg",
            )

            print(custom_field_definition.id)
components:
  schemas:
    qbd_custom_field_definition:
      type: object
      properties:
        id:
          type: string
          description: >-
            The identifier of this custom field definition, which is its `name`,
            so it changes when the definition is renamed.
          example: Customer Rating
        objectType:
          description: >-
            The type of object. This value is always
            `"qbd_custom_field_definition"`.
          example: qbd_custom_field_definition
          type: string
          const: qbd_custom_field_definition
        ownerId:
          type: string
          description: >-
            The owner of this custom field: `"0"` for a public custom field,
            which QuickBooks users define and see, or an application's GUID in
            braces for a private custom field, which appears only in requests
            that name that owner.
          example: '0'
        name:
          type: string
          description: >-
            The name of this custom field, unique among the custom fields of its
            owner. For a public custom field, this is the label QuickBooks
            shows.
          example: Customer Rating
        type:
          type: string
          enum:
            - amount_type
            - date_time_type
            - integer_type
            - percent_type
            - price_type
            - quantity_type
            - string_1024_type
            - string_255_type
          description: >-
            The data type of this custom field's values. Public custom fields
            are always `string_255_type`.
          example: string_255_type
        objectTypes:
          type: array
          items:
            type: string
            enum:
              - account
              - ar_refund_credit_card
              - bill
              - bill_payment_check
              - bill_payment_credit_card
              - build_assembly
              - charge
              - check
              - company
              - credit_card_charge
              - credit_card_credit
              - credit_memo
              - customer
              - deposit
              - employee
              - estimate
              - inventory_adjustment
              - invoice
              - item
              - item_receipt
              - journal_entry
              - other_name
              - purchase_order
              - receive_payment
              - sales_order
              - sales_receipt
              - sales_tax_payment_check
              - vendor
              - vendor_credit
          description: >-
            The types of records this custom field applies to. For a public
            custom field, this includes the transaction types QuickBooks adds
            itself: a customer, vendor, or employee custom field applies to the
            listed transactions themselves, and an item custom field to their
            lines.
          example:
            - customer
            - invoice
            - sales_order
        isRequiredForListObjects:
          anyOf:
            - type: boolean
            - type: 'null'
          description: >-
            Indicates whether QuickBooks requires a value for this custom field
            on list objects, such as customers and items. QuickBooks does not
            report this for private custom fields.
          example: false
        isRequiredForTransactions:
          anyOf:
            - type: boolean
            - type: 'null'
          description: >-
            Indicates whether QuickBooks requires a value for this custom field
            on transactions. QuickBooks does not report this for private custom
            fields.
          example: false
        format:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            The format QuickBooks applies to this custom field's values, as
            QuickBooks names it. QuickBooks does not report this for private
            custom fields.
          example: Any text
      required:
        - id
        - objectType
        - ownerId
        - name
        - type
        - objectTypes
        - isRequiredForListObjects
        - isRequiredForTransactions
        - format
      additionalProperties: false
      title: The Custom Field Definition object
      x-conductor-object-type: other
      summary: >-
        A custom field definition describes a custom field: its owner, its name,
        the type of its values, and the types of records it applies to. The
        values themselves are in each record's `customFields`. QuickBooks calls
        custom fields data extensions.
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: >-
        Your Conductor secret key using Bearer auth (e.g., `"Authorization:
        Bearer {{YOUR_SECRET_KEY}}"`).

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.