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

# Update a card

> 新しい詳細でカード定義を更新します。

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>;
};

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


## OpenAPI

````yaml specs/2026-03/crm-public-app-crm-cards-v2026-03.json PATCH /crm/extensions/cards-dev/2026-03/{appId}/{cardId}
openapi: 3.0.1
info:
  title: 公開アプリCRMカード
  description: Basepom for all HubSpot Projects
  version: 2026-03
  x-hubspot-product-tier-requirements:
    marketing: FREE
    sales: FREE
    service: FREE
    cms: FREE
    commerce: FREE
    crmHub: FREE
    dataHub: FREE
  x-hubspot-api-use-case: 外部バグ トラッキング ソフトウェアのデータを表示するカスタムカードをコンタクトレコードに追加します。
  x-hubspot-introduction: >-
    CRMレコードの外部システムデータに合わせてカスタムカードを作成します。公開アプリが必要です。これらのCRMカードは、プロジェクトで作成できるUI拡張機能とは異なります。
servers:
  - url: https://api.hubapi.com
security: []
tags:
  - name: Advanced
  - name: Basic
paths:
  /crm/extensions/cards-dev/2026-03/{appId}/{cardId}:
    patch:
      tags:
        - Basic
      summary: カードを更新
      description: 新しい詳細でカード定義を更新します。
      operationId: patch-/crm/extensions/cards-dev/2026-03/{appId}/{cardId}_update
      parameters:
        - name: appId
          in: path
          description: 旧CRMカードが含まれるアプリのappId
          required: true
          style: simple
          explode: false
          schema:
            type: integer
            format: int32
        - name: cardId
          in: path
          description: 更新するカードのID。
          required: true
          style: simple
          explode: false
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CardPatchRequest'
        required: true
      responses:
        '200':
          description: successful operation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicCardResponse'
        default:
          $ref: '#/components/responses/Error'
          description: ''
      security:
        - oauth2:
            - developers-write
components:
  schemas:
    CardPatchRequest:
      type: object
      properties:
        actions:
          $ref: '#/components/schemas/CardActions'
        display:
          $ref: '#/components/schemas/CardDisplayBody'
        fetch:
          $ref: '#/components/schemas/CardFetchBodyPatch'
        title:
          type: string
          description: このカードのトップレベルタイトル。CRM UIのユーザーに表示されます。
    PublicCardResponse:
      required:
        - actions
        - auditHistory
        - display
        - fetch
        - id
        - title
      type: object
      properties:
        actions:
          $ref: '#/components/schemas/CardActions'
        auditHistory:
          type: array
          description: 作成、削除、更新など、カードで実行されるアクションのリスト。
          items:
            $ref: '#/components/schemas/CardAuditResponse'
        createdAt:
          type: string
          description: カードが作成された日時。
          format: date-time
        display:
          $ref: '#/components/schemas/CardDisplayBody'
        fetch:
          $ref: '#/components/schemas/PublicCardFetchBody'
        id:
          type: string
          description: カードの固有ID。
        title:
          type: string
          description: このカードのトップレベルタイトル。CRM UIのユーザーに表示されます。
        updatedAt:
          type: string
          description: カードが最後に更新された日時。
          format: date-time
    CardActions:
      required:
        - baseUrls
      type: object
      properties:
        baseUrls:
          type: array
          description: >-
            カードアクションURLで受け入れられるURLプレフィックスのリスト。これらの値のいずれかで開始されないアクションURLデータが取得レスポンスに含まれている場合、エラーになり、カードが表示されません。
          items:
            type: string
    CardDisplayBody:
      required:
        - properties
      type: object
      properties:
        properties:
          type: array
          description: >-
            カード表示プロパティー。これらは「ラベル：値」のペアとしてカードUIに表示されます。詳細については、概要ドキュメントの[サンプルカード](#)を参照してください。
          items:
            $ref: '#/components/schemas/CardDisplayProperty'
    CardFetchBodyPatch:
      required:
        - objectTypes
      type: object
      properties:
        cardType:
          type: string
          description: 返されるカードのタイプを判断する非推奨のフィールド。
          enum:
            - EXTERNAL
            - SERVERLESS
        objectTypes:
          type: array
          description: >-
            このカードが表示されるCRMオブジェクトタイプの配列。ここで定義されたタイプのレコードページにユーザーがアクセスするたびにHubSpotはターゲットURLを呼び出します。
          items:
            $ref: '#/components/schemas/CardObjectTypeBody'
        serverlessFunction:
          type: string
          description: カードを使用してサーバーレス機能を指定する非推奨のフィールド
        targetUrl:
          type: string
          description: >-
            このカードの詳細に基づいて応答するサービスエンドポイントのURL。カードが表示されるCRMレコードにユーザーがアクセスするたびにHubSpotはこのエンドポイントを呼び出します。
    CardAuditResponse:
      required:
        - actionType
        - applicationId
        - authSource
        - changedAt
        - initiatingUserId
        - objectTypeId
      type: object
      properties:
        actionType:
          type: string
          description: 実行されるアクションのタイプ。可能な値：CREATE、DELETE、UPDATE。
          enum:
            - CREATE
            - DELETE
            - UPDATE
        applicationId:
          type: integer
          description: カードと関連付けられたアプリケーションのID。
          format: int32
        authSource:
          type: string
          description: アクションの認証のソース。可能な値：APP、EXTERNAL、INTERNAL。
          enum:
            - APP
            - EXTERNAL
            - INTERNAL
        changedAt:
          type: integer
          description: 変更が行われた日時を示すタイムスタンプ。
          format: int64
        initiatingUserId:
          type: integer
          description: アクションを開始したユーザーのID。
          format: int32
        objectTypeId:
          type: integer
          description: カードのID。
          format: int64
    PublicCardFetchBody:
      required:
        - objectTypes
        - targetUrl
      type: object
      properties:
        objectTypes:
          type: array
          description: >-
            このカードが表示されるCRMオブジェクトタイプの配列。ここで定義されたタイプのレコードページにユーザーがアクセスするたびにHubSpotはターゲットURLを呼び出します。
          items:
            $ref: '#/components/schemas/CardObjectTypeBody'
        targetUrl:
          type: string
          description: >-
            このカードの詳細に基づいて応答するサービスエンドポイントのURL。カードが表示されるCRMレコードにユーザーがアクセスするたびにHubSpotはこのエンドポイントを呼び出します。
    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
    CardDisplayProperty:
      required:
        - dataType
        - label
        - name
        - options
      type: object
      properties:
        dataType:
          type: string
          description: このプロパティーによって表されるデータのタイプ。
          enum:
            - BOOLEAN
            - CURRENCY
            - DATE
            - DATETIME
            - EMAIL
            - LINK
            - NUMERIC
            - STATUS
            - STRING
        label:
          type: string
          description: ユーザーに表示するこのプロパティーのラベル。
        name:
          type: string
          description: このプロパティーの内部ID。この値は固有のTODOである必要があります。
        options:
          type: array
          description: 表示できるオプションの配列。「dataType」が「STATUS」の場合にのみ使用されます。
          items:
            $ref: '#/components/schemas/DisplayOption'
    CardObjectTypeBody:
      required:
        - name
        - propertiesToSend
      type: object
      properties:
        name:
          type: string
          description: このカードが表示されるCRMオブジェクトタイプ。
          enum:
            - companies
            - contacts
            - deals
            - marketing_events
            - tickets
        propertiesToSend:
          type: array
          description: >-
            データ取得リクエストが行われたときにこのカードのターゲットURLに送信されるプロパティーの配列。該当するCRMオブジェクトタイプの有効なプロパティーである必要があります。
          items:
            type: string
    ErrorDetail:
      required:
        - message
      type: object
      properties:
        code:
          type: string
          description: エラーの詳細に関連付けられているステータスコード
        context:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
          description: エラー条件に関する背景状況
          example: '{missingScopes=[scope1, scope2]}'
        in:
          type: string
          description: エラーが見つかったフィールドまたはパラメーターの名前。
        message:
          type: string
          description: エラーと修正手順（該当する場合）を記した、人が理解できるメッセージ
        subCategory:
          type: string
          description: エラーに関する具体的な詳細が含まれる特定のカテゴリー
    DisplayOption:
      required:
        - label
        - name
        - type
      type: object
      properties:
        label:
          type: string
          description: ユーザーに表示されるこのオプションのテキスト。
        name:
          type: string
          description: JSONに適したオプションの固有名。
        type:
          type: string
          description: ステータスのタイプ。
          enum:
            - DANGER
            - DEFAULT
            - INFO
            - SUCCESS
            - WARNING
  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:
            developers-read: ''
            developers-write: ''
            private-apps-read: ''

````