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

# Replace rows in batch in draft table

> セルあたり最大100行で、テーブルの下書きバージョンの複数の行がバッチとして置き換えられます。1行の更新に関する詳細については、「PUT /tables/{tableIdOrName}/rows/{rowId}/draft」エンドポイントを参照してください。

export const ScopesList = ({scopes = [], description = "この API には、次のいずれかのスコープが必要です。"}) => {
  if (!scopes || scopes.length === 0) {
    return null;
  }
  const sortedScopes = scopes.sort((a, b) => a.localeCompare(b));
  return <div>
      <div className="text-sm mb-2">{description}</div>
      <div>
        {sortedScopes.map((scope, index) => <div key={index}>
            <code>
              <span className="text-xs">{scope}</span>
            </code>
          </div>)}
      </div>
    </div>;
};

export const SupportedProducts = ({marketing, sales, service, cms, marketingLevel, salesLevel, serviceLevel, cmsLevel}) => {
  const translations = {
    header: "サポートされる製品",
    description: "次のいずれかの製品またはそれ以上が必要です。",
    productNames: {
      marketing: "Marketing Hub",
      sales: "Sales Hub",
      service: "Service Hub",
      cms: "Content Hub"
    },
    tiers: {
      free: "無料ツール",
      starter: "Starter",
      professional: "Professional",
      enterprise: "Enterprise"
    }
  };
  const translateTier = tier => {
    if (!tier) return '';
    const lowerTier = tier.toLowerCase();
    return translations.tiers[lowerTier] || tier;
  };
  const products = [{
    name: marketing ? translations.productNames.marketing : '',
    level: translateTier(marketingLevel),
    icon: "https://mintlify-assets.b-cdn.net/Icons/marketing-bolt.svg",
    alt: "Marketing Hub"
  }, {
    name: sales ? translations.productNames.sales : '',
    level: translateTier(salesLevel),
    icon: "https://mintlify-assets.b-cdn.net/Icons/sales-star.svg",
    alt: "Sales Hub"
  }, {
    name: service ? translations.productNames.service : '',
    level: translateTier(serviceLevel),
    icon: "https://mintlify-assets.b-cdn.net/Icons/service-heart.svg",
    alt: "Service Hub"
  }, {
    name: cms ? translations.productNames.cms : '',
    level: translateTier(cmsLevel),
    icon: "https://mintlify-assets.b-cdn.net/Icons/content-play.svg",
    alt: "Content Hub"
  }].filter(product => product.name && product.level);
  if (products.length === 0) return null;
  return <div>
      <div className="text-sm mb-2">{translations.description}</div>
      <div className={`grid ${products.length === 1 ? 'grid-cols-1' : 'grid-cols-2'} gap-1.5`}>
        {products.map((product, index) => <div key={index} style={{
    display: 'flex',
    alignItems: 'center'
  }}>
            <img src={product.icon} alt={product.alt} className="w-3.5 h-3.5 mr-1.5 mt-2.5 mb-2.5 flex-shrink-0 align-middle" />
            <span className="font-medium mr-1 text-sm">{product.name} -</span>
            <span className="text-sm">{product.level}</span>
          </div>)}
      </div>
    </div>;
};

<AccordionGroup>
  <Accordion title="Supported products" defaultOpen="true" icon="cubes">
    <SupportedProducts marketing={true} sales={true} service={true} cms={true} marketingLevel="PROFESSIONAL" salesLevel="FREE" serviceLevel="FREE" cmsLevel="PROFESSIONAL" />
  </Accordion>

  <Accordion title="Required Scopes" icon="key">
    <ScopesList
      scopes={[
  'hubdb'
]}
    />
  </Accordion>
</AccordionGroup>


## OpenAPI

````yaml specs/2026-03/cms-hubdb-v2026-03.json POST /cms/hubdb/2026-03/tables/{tableIdOrName}/rows/draft/batch/replace
openapi: 3.0.1
info:
  title: HubDB
  description: Basepom for all HubSpot Projects
  version: 2026-03
  x-hubspot-product-tier-requirements:
    marketing: PROFESSIONAL
    sales: FREE
    service: FREE
    cms: PROFESSIONAL
    commerce: FREE
    crmHub: FREE
    dataHub: FREE
servers:
  - url: https://api.hubapi.com
security: []
tags:
  - name: Rows
  - name: Tables
  - name: テーブル
  - name: 行
paths:
  /cms/hubdb/2026-03/tables/{tableIdOrName}/rows/draft/batch/replace:
    post:
      tags:
        - Rows
        - 行
      summary: 下書きテーブルの行をバッチで置換
      description: >-
        セルあたり最大100行で、テーブルの下書きバージョンの複数の行がバッチとして置き換えられます。1行の更新に関する詳細については、「PUT
        /tables/{tableIdOrName}/rows/{rowId}/draft」エンドポイントを参照してください。
      operationId: >-
        post-/cms/hubdb/2026-03/tables/{tableIdOrName}/rows/draft/batch/replace_replaceDraftTableRows
      parameters:
        - name: tableIdOrName
          in: path
          description: テーブルのIDまたは名前
          required: true
          style: simple
          explode: false
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BatchInputHubDbTableRowV3BatchUpdateRequest'
        required: true
      responses:
        '200':
          description: successful operation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BatchResponseHubDbTableRowV3'
        '207':
          description: multiple statuses
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BatchResponseHubDbTableRowV3WithErrors'
        default:
          $ref: '#/components/responses/Error'
          description: ''
      security:
        - oauth2:
            - hubdb
        - oauth2:
            - hubdb.rows.write
components:
  schemas:
    BatchInputHubDbTableRowV3BatchUpdateRequest:
      required:
        - inputs
      type: object
      properties:
        inputs:
          type: array
          items:
            $ref: '#/components/schemas/HubDbTableRowV3BatchUpdateRequest'
    BatchResponseHubDbTableRowV3:
      required:
        - completedAt
        - results
        - startedAt
        - status
      type: object
      properties:
        completedAt:
          type: string
          description: バッチ処理が完了した日時を示すタイムスタンプ。
          format: date-time
        links:
          type: object
          additionalProperties:
            type: string
          description: バッチレスポンスに関連付けられた関連リンクのコレクション。
        requestedAt:
          type: string
          description: バッチリクエストが行われた日時を示すタイムスタンプ。
          format: date-time
        results:
          type: array
          items:
            $ref: '#/components/schemas/HubDbTableRowV3'
        startedAt:
          type: string
          description: バッチ処理が始まった日時を示すタイムスタンプ。
          format: date-time
        status:
          type: string
          description: 次の値を取り得る、バッチ処理の現在のステータス：CANCELED、COMPLETE、PENDING、PROCESSING。
          enum:
            - CANCELED
            - COMPLETE
            - PENDING
            - PROCESSING
    BatchResponseHubDbTableRowV3WithErrors:
      required:
        - completedAt
        - results
        - startedAt
        - status
      type: object
      properties:
        completedAt:
          type: string
          description: バッチ処理が完了した日時を示すタイムスタンプ。
          format: date-time
        errors:
          type: array
          items:
            $ref: '#/components/schemas/StandardError'
        links:
          type: object
          additionalProperties:
            type: string
          description: バッチレスポンスに関連付けられた関連リンクのコレクション。
        numErrors:
          type: integer
          description: バッチ処理中に発生したエラーの数。
          format: int32
        requestedAt:
          type: string
          description: バッチリクエストが行われた日時を示すタイムスタンプ。
          format: date-time
        results:
          type: array
          items:
            $ref: '#/components/schemas/HubDbTableRowV3'
        startedAt:
          type: string
          description: バッチ処理が始まった日時を示すタイムスタンプ。
          format: date-time
        status:
          type: string
          description: 次の値を取り得る、バッチ処理の現在のステータス：CANCELED、COMPLETE、PENDING、PROCESSING。
          enum:
            - CANCELED
            - COMPLETE
            - PENDING
            - PROCESSING
    HubDbTableRowV3BatchUpdateRequest:
      required:
        - childTableId
        - displayIndex
        - values
      type: object
      properties:
        childTableId:
          type: integer
          description: 列の子テーブルIDの値が指定されます
          format: int64
        displayIndex:
          type: integer
          description: テーブル内に行を表示するためのインデックスの位置。
          format: int32
        id:
          type: string
          description: テーブル行のID
        name:
          type: string
          description: 動的ページのタイトルとして使用される「hs_name」列の値が指定されます
        path:
          type: string
          description: 動的ページのスラッグとして使用される「hs_path」列の値が指定されます
        values:
          type: object
          additionalProperties:
            $ref: '#/components/schemas/Variant'
          description: 列名と列値が含まれるキー値ペアのリスト
    HubDbTableRowV3:
      required:
        - childTableId
        - createdAt
        - id
        - name
        - path
        - publishedAt
        - updatedAt
        - values
      type: object
      properties:
        childTableId:
          type: string
          description: 列の子テーブルIDの値が指定されます
        createdAt:
          type: string
          description: 行が作成された時点のタイムスタンプ
          format: date-time
        id:
          type: string
          description: テーブル行のID
        name:
          type: string
          description: 動的ページのタイトルとして使用される「hs_name」列の値が指定されます
        path:
          type: string
          description: 動的ページのスラッグとして使用される「hs_path」列の値が指定されます
        publishedAt:
          type: string
          description: 行が最後に更新された時点を示すタイムスタンプ（日時形式）。
          format: date-time
        updatedAt:
          type: string
          description: 行が最後に更新された時点のタイムスタンプ
          format: date-time
        values:
          type: object
          additionalProperties:
            type: object
            properties: {}
          description: 列名と列値が含まれるキー値ペアのリスト
    StandardError:
      required:
        - category
        - context
        - errors
        - links
        - message
        - status
      type: object
      properties:
        category:
          type: string
          description: エラーのメインカテゴリーが指定され、問題の広範な領域が決定されます。
        context:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
          description: エラーに関する状況固有の情報が含まれるオブジェクト。
        errors:
          type: array
          description: 詳細なエラーオブジェクト。
          items:
            $ref: '#/components/schemas/ErrorDetail'
        id:
          type: string
          description: エラーインスタンスの固有ID。
        links:
          type: object
          additionalProperties:
            type: string
          description: ドキュメントURLやサポート連絡先ページなど、エラーに関連するリンクが含まれるオブジェクト。
        message:
          type: string
          description: エラーを説明する詳細なメッセージ。
        status:
          type: string
          description: エラーに関連付けられたHTTPステータスコード。
        subCategory:
          type: object
          properties: {}
          description: エラーのサブカテゴリーを示し、メインカテゴリー内でのより具体的な状況を提供します。
      description: Ye olde error
    Error:
      required:
        - category
        - correlationId
        - message
      type: object
      properties:
        category:
          type: string
          description: エラーカテゴリー
        context:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
          description: エラー条件に関する背景状況
          example: >-
            {invalidPropertyName=[propertyValue], missingScopes=[scope1,
            scope2]}
        correlationId:
          type: string
          description: リクエストの固有ID。エラー報告またはサポートチケットには必ずこの値を含めてください
          format: uuid
          example: aeb5f871-7f07-4993-9211-075dc63e7cbf
        errors:
          type: array
          description: エラーに関する詳細情報
          items:
            $ref: '#/components/schemas/ErrorDetail'
        links:
          type: object
          additionalProperties:
            type: string
          description: エラーまたは推奨の修正手順に関するドキュメントが含まれる関連付けられたURIへのリンク名の対応付け
        message:
          type: string
          description: エラーと修正手順（該当する場合）を記した、人が理解できるメッセージ
          example: An error occurred
        subCategory:
          type: string
          description: エラーに関する具体的な詳細が含まれる特定のカテゴリー
      example:
        message: Invalid input (details will vary based on the error)
        correlationId: aeb5f871-7f07-4993-9211-075dc63e7cbf
        category: VALIDATION_ERROR
        links:
          knowledge-base: https://www.hubspot.com/products/service/knowledge-base
    Variant:
      type: object
      properties: {}
    ErrorDetail:
      required:
        - message
      type: object
      properties:
        code:
          type: string
          description: エラーの詳細に関連付けられているステータスコード
        context:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
          description: エラー条件に関する背景状況
          example: >-
            {invalidPropertyName=[propertyValue], missingScopes=[scope1,
            scope2]}
        in:
          type: string
          description: エラーが見つかったフィールドまたはパラメーターの名前。
        message:
          type: string
          description: エラーと修正手順（該当する場合）を記した、人が理解できるメッセージ
        subCategory:
          type: string
          description: エラーに関する具体的な詳細が含まれる特定のカテゴリー
  responses:
    Error:
      description: An error occurred.
      content:
        '*/*':
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    oauth2:
      type: oauth2
      flows:
        authorizationCode:
          authorizationUrl: https://app.hubspot.com/oauth/authorize
          tokenUrl: https://api.hubapi.com/oauth/v1/token
          scopes:
            hubdb: ''

````