> ## 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.

# Reset a table 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}/draft/reset
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}/draft/reset:
    post:
      tags:
        - Tables
        - テーブル
      summary: 下書きテーブルをリセット
      description: テーブルの下書きバージョンのデータを公開済みバージョンの値に置き換えます。下書きで公開終了された変更はこの呼び出しが行われた後に失われます。
      operationId: >-
        post-/cms/hubdb/2026-03/tables/{tableIdOrName}/draft/reset_resetDraftTable
      parameters:
        - name: tableIdOrName
          in: path
          description: リセットするテーブルのIDまたは名前。
          required: true
          style: simple
          explode: false
          schema:
            type: string
        - name: includeForeignIds
          in: query
          description: レスポンスで外部ID値を入力するには、これを「true」に設定してください。
          required: false
          style: form
          explode: true
          schema:
            type: boolean
      responses:
        '200':
          description: successful operation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HubDbTableV3'
        default:
          $ref: '#/components/responses/Error'
          description: ''
      security:
        - oauth2:
            - hubdb
        - oauth2:
            - hubdb.rows.write
components:
  schemas:
    HubDbTableV3:
      required:
        - allowChildTables
        - allowPublicApiAccess
        - columnCount
        - columns
        - createdAt
        - deleted
        - deletedAt
        - dynamicMetaTags
        - enableChildTablePages
        - id
        - label
        - name
        - published
        - publishedAt
        - rowCount
        - updatedAt
        - useForPages
      type: object
      properties:
        allowChildTables:
          type: boolean
          description: 子テーブルを作成できるかどうかが指定されます
        allowPublicApiAccess:
          type: boolean
          description: テーブルを許可なしで誰でも読み取れるかどうかが指定されます
        columnCount:
          type: integer
          description: 削除された列を含む列の数
          format: int64
        columns:
          type: array
          description: テーブル内の列のリスト
          items:
            $ref: '#/components/schemas/Column'
        createdAt:
          type: string
          description: テーブルが作成された時点のタイムスタンプ
          format: date-time
        createdBy:
          $ref: '#/components/schemas/SimpleUser'
        deleted:
          type: boolean
          description: テーブルが削除済みにされたかどうかを示します。
        deletedAt:
          type: string
          description: テーブルが削除された日時を示すタイムスタンプ。
          format: date-time
        dynamicMetaTags:
          type: object
          additionalProperties:
            type: integer
            format: int32
          description: >-
            関連付けられている列IDを使用して［メタデータフィールド]（https://developers.hubspot.com/docs/cms/guides/dynamic-pages/hubdb#dynamic-pages）のキー値ペアが指定されます。
        enableChildTablePages:
          type: boolean
          description: 子テーブルを使用した複数レベルの動的ページの作成が指定されます
        id:
          type: string
          description: テーブルのID
        isOrderedManually:
          type: boolean
          description: テーブルの行が手動で並べ替えられたかどうかを示します。
        label:
          type: string
          description: テーブルのラベル
        name:
          type: string
          description: テーブルの数
        published:
          type: boolean
          description: テーブルが現在公開されているかどうかを示します。
        publishedAt:
          type: string
          description: テーブルが最近公開された時点のタイムスタンプ
          format: date-time
        rowCount:
          type: integer
          description: テーブル内の行数
          format: int32
        updatedAt:
          type: string
          description: テーブルが最近更新された時点のタイムスタンプ
          format: date-time
        updatedBy:
          $ref: '#/components/schemas/SimpleUser'
        useForPages:
          type: boolean
          description: テーブルを動的ページの作成に使用できるかどうかが指定されます
    Column:
      required:
        - deleted
        - description
        - id
        - label
        - name
        - type
      type: object
      properties:
        createdAt:
          type: string
          description: 列が作成された時点のタイムスタンプ。
          format: date-time
        createdBy:
          $ref: '#/components/schemas/SimpleUser'
        createdByUserId:
          type: integer
          description: 列を作成したユーザーのID。
          format: int32
        deleted:
          type: boolean
          description: 列が削除されたかどうかを示します。
        description:
          type: string
          description: 列の説明。
        foreignColumnId:
          type: integer
          description: 外部列ID
          format: int32
        foreignIds:
          type: array
          description: 外部ID
          items:
            $ref: '#/components/schemas/ForeignId'
        foreignIdsById:
          type: object
          additionalProperties:
            $ref: '#/components/schemas/ForeignId'
          description: 外部ID
        foreignIdsByName:
          type: object
          additionalProperties:
            $ref: '#/components/schemas/ForeignId'
          description: 名前による外部ID
        foreignTableId:
          type: integer
          description: 参照される外部テーブルID
          format: int64
        id:
          type: string
          description: 列ID
        label:
          type: string
          description: 列のラベル
        name:
          type: string
          description: 列の名前
        optionCount:
          type: integer
          description: 使用可能なオプションの数
          format: int32
        options:
          type: array
          description: 選択列と複数選択列に選択できるオプション
          items:
            $ref: '#/components/schemas/Option'
        type:
          type: string
          description: 列のタイプ
          enum:
            - BOOLEAN
            - CODE
            - COMPOSITE
            - CTA
            - CURRENCY
            - DATE
            - DATETIME
            - EMBED
            - FILE
            - FOREIGN_ID
            - HUBSPOT_VIDEO
            - IMAGE
            - JSON
            - LOCATION
            - MULTISELECT
            - 'NULL'
            - NUMBER
            - RICHTEXT
            - SELECT
            - TEXT
            - URL
            - VIDEO
        updatedAt:
          type: string
          description: 列が最後に更新された時点のタイムスタンプ。
          format: date-time
        updatedBy:
          $ref: '#/components/schemas/SimpleUser'
        updatedByUserId:
          type: integer
          description: 列を最後に更新したユーザーのID。
          format: int32
        width:
          type: integer
          description: HubDB UIの列幅
          format: int32
    SimpleUser:
      required:
        - email
        - firstName
        - id
        - lastName
      type: object
      properties:
        email:
          type: string
          description: ユーザーのEメールアドレス。
        firstName:
          type: string
          description: ユーザーの名。
        id:
          type: string
          description: ユーザーの固有ID。
        lastName:
          type: string
          description: ユーザーの姓。
    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
    ForeignId:
      required:
        - id
        - name
        - type
      type: object
      properties:
        id:
          type: string
          description: 外部IDの固有ID。
        name:
          type: string
          description: 外部IDの名前。
        type:
          type: string
          description: 外部IDのタイプ。
    Option:
      required:
        - createdAt
        - id
        - label
        - name
        - order
        - type
        - updatedAt
      type: object
      properties:
        createdAt:
          type: string
          description: オプションが作成された時点のタイムスタンプ（ISO 8601形式）。
          format: date-time
        createdBy:
          $ref: '#/components/schemas/SimpleUser'
        createdByUserId:
          type: integer
          description: オプションを作成したユーザーのID。
          format: int32
        id:
          type: string
          description: オプションの固有ID。
        label:
          type: string
          description: オプションを識別する分かりやすいラベル。
        name:
          type: string
          description: このオプションに割り当てられた内部名（ラベルとは区別）。
        order:
          type: integer
          description: オプションが表示される順序（整数で表現）。
          format: int32
        type:
          type: string
          description: オプションのカテゴリーまたはデータ型を示します（例：文字列、数値）。
        updatedAt:
          type: string
          description: オプションが最後に更新された時点のタイムスタンプ（ISO 8601形式）。
          format: date-time
        updatedBy:
          $ref: '#/components/schemas/SimpleUser'
        updatedByUserId:
          type: integer
          description: オプションを最後に更新したユーザーのID。
          format: int32
      description: A HubSpot property option
    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: ''

````