> ## 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 event by HubSpot ID

> objectIdで識別される既存のマーケティングイベントが存在する場合、その詳細を更新します。

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="FREE" salesLevel="FREE" serviceLevel="FREE" cmsLevel="FREE" />
  </Accordion>

  <Accordion title="Required Scopes" icon="key">
    <ScopesList
      scopes={[
  'crm.objects.marketing_events.write'
]}
    />
  </Accordion>
</AccordionGroup>


## OpenAPI

````yaml specs/legacy/v3/marketing-marketing-events-v3.json PATCH /marketing/v3/marketing-events/{objectId}
openapi: 3.0.1
info:
  title: Marketing Marketing Events
  description: Basepom for all HubSpot Projects
  version: v3
  x-hubspot-product-tier-requirements:
    marketing: FREE
    sales: FREE
    service: FREE
    cms: FREE
    commerce: FREE
    crmHub: FREE
    dataHub: FREE
  x-hubspot-related-documentation:
    - name: Marketing Events Guide
      url: >-
        https://developers.hubspot.com/docs/guides/api/marketing/marketing-events
servers:
  - url: https://api.hubapi.com
security: []
tags:
  - name: Basic
  - name: Batch
  - name: Event Attendees
  - name: Event Status
  - name: Identifiers
  - name: List Associations
  - name: Participant State
  - name: Settings
  - name: Subscriber State Changes
paths:
  /marketing/v3/marketing-events/{objectId}:
    patch:
      tags:
        - Basic
      summary: objectId別にマーケティングイベントを更新
      description: objectIdで識別される既存のマーケティングイベントが存在する場合、その詳細を更新します。
      operationId: patch-/marketing/v3/marketing-events/{objectId}_updateByObjectId
      parameters:
        - name: objectId
          in: path
          description: HubSpotのマーケティングイベントの内部ID。
          required: true
          style: simple
          explode: false
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MarketingEventPublicUpdateRequestV2'
        required: true
      responses:
        '200':
          description: successful operation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MarketingEventPublicDefaultResponseV2'
        default:
          $ref: '#/components/responses/Error'
          description: ''
      security:
        - oauth2:
            - crm.objects.marketing_events.write
components:
  schemas:
    MarketingEventPublicUpdateRequestV2:
      required:
        - customProperties
      type: object
      properties:
        customProperties:
          type: array
          items:
            $ref: '#/components/schemas/PropertyValue'
        endDateTime:
          type: string
          description: マーケティングイベントの終了日時
          format: date-time
        eventCancelled:
          type: boolean
          description: マーケティングイベントがキャンセルされたかどうかを示します
        eventDescription:
          type: string
          description: マーケティングイベントの説明。
        eventName:
          type: string
          description: マーケティングイベントの名前
        eventOrganizer:
          type: string
          description: マーケティングイベントの主催者の名前
        eventType:
          type: string
          description: マーケティングイベントのタイプ
        eventUrl:
          type: string
          description: マーケティングイベントを管理できる外部イベントアプリケーションのURL
        startDateTime:
          type: string
          description: マーケティングイベントの開始日時
          format: date-time
    MarketingEventPublicDefaultResponseV2:
      required:
        - createdAt
        - customProperties
        - eventName
        - objectId
        - updatedAt
      type: object
      properties:
        appInfo:
          $ref: '#/components/schemas/AppInfo'
        createdAt:
          type: string
          description: マーケティングイベントの作成日時
          format: date-time
        customProperties:
          type: array
          items:
            $ref: '#/components/schemas/CrmPropertyWrapper'
        endDateTime:
          type: string
          description: マーケティングイベントの終了日時
          format: date-time
        eventCancelled:
          type: boolean
          description: マーケティングイベントがキャンセルされたかどうかを示します
        eventCompleted:
          type: boolean
          description: マーケティングイベントが完了したかどうかを示します
        eventDescription:
          type: string
          description: マーケティングイベントの説明。
        eventName:
          type: string
          description: マーケティングイベントの名前
        eventOrganizer:
          type: string
          description: マーケティングイベントの主催者の名前
        eventType:
          type: string
          description: マーケティングイベントのタイプ
        eventUrl:
          type: string
          description: マーケティングイベントを管理できる外部イベントアプリケーションのURL
        objectId:
          type: string
          description: HubSpotのマーケティングイベントの内部ID
        startDateTime:
          type: string
          description: マーケティングイベントの開始日時
          format: date-time
        updatedAt:
          type: string
          description: マーケティングイベントの更新日時
          format: date-time
    PropertyValue:
      required:
        - dataSensitivity
        - isEncrypted
        - isLargeValue
        - name
        - persistenceTimestamp
        - requestId
        - selectedByUser
        - selectedByUserTimestamp
        - source
        - sourceId
        - sourceLabel
        - sourceMetadata
        - sourceUpstreamDeployable
        - sourceVid
        - timestamp
        - unit
        - updatedByUserId
        - useTimestampAsPersistenceTimestamp
        - value
      type: object
      properties:
        dataSensitivity:
          type: string
          description: データの機密性のレベル
          enum:
            - high
            - none
            - standard
        isEncrypted:
          type: boolean
          description: プロパティーが暗号化されているかどうかを示します
        isLargeValue:
          type: boolean
          description: プロパティー値がストレージに大きな値として格納されるかどうかを示します
        name:
          type: string
          description: カスタムプロパティーの名前
        persistenceTimestamp:
          type: integer
          description: 書き込まれている値がストレージで維持される時点を示すタイムスタンプ
          format: int64
        requestId:
          type: string
          description: リクエストのID
        selectedByUser:
          type: boolean
          description: プロパティーが選択済みであるかどうかを示します
        selectedByUserTimestamp:
          type: integer
          description: プロパティーがユーザーによって選択された時点のタイムスタンプ
          format: int64
        source:
          type: string
          description: プロパティーのソース
          enum:
            - ACADEMY
            - ACCEPTANCE_TEST
            - ACTIVITY_AUTO_ASSOCIATE
            - ACTIVITY_LOG_REVERT
            - ADS
            - AI_GROUP
            - ANALYTICS
            - API
            - APPROVALS
            - ASSISTS
            - ASSOCIATIONS
            - AUTO_ASSOCIATE_BY_DOMAIN
            - AUTOMATION_JOURNEY
            - AUTOMATION_PLATFORM
            - AVATARS_SERVICE
            - BATCH_UPDATE
            - BCC_TO_CRM
            - BEHAVIORAL_EVENTS
            - BET_ASSIGNMENT
            - BET_CRM_CONNECTOR
            - BIDEN
            - BILLING
            - BOT
            - BREEZE_AGENT
            - CALCULATED
            - CENTRAL_EXCHANGE_RATES
            - CHATSPOT
            - CLONE_OBJECTS
            - COMMUNICATOR
            - COMPANIES
            - COMPANY_FAMILIES
            - COMPANY_INSIGHTS
            - CONNECTED_ACCOUNT
            - CONTACTS
            - CONTACTS_WEB
            - CONTENT_MEMBERSHIP
            - CONVERSATIONAL_ENRICHMENT
            - CONVERSATIONS
            - CRM_PROCESSES_PLATFORM
            - CRM_UI
            - CRM_UI_BULK_ACTION
            - CUSTOMER_AGENT
            - CUSTOMER_PORTAL
            - DATA_ENRICHMENT
            - DATA_QUALITY
            - DATASET
            - DEALS
            - DEFAULT
            - DELETE_OBJECTS
            - DI_WRITE_TO_CRM
            - EMAIL
            - EMAIL_INBOX_IMPORT
            - EMAIL_INTEGRATION
            - ENGAGEMENTS
            - EXTENSION
            - FILE_MANAGER
            - FLYWHEEL_PRODUCT_DATA_SYNC
            - FORECASTING
            - FORM
            - FORWARD_TO_CRM
            - GMAIL_INTEGRATION
            - GOALS
            - HEISENBERG
            - HELP_DESK
            - HELP_DESK_AI
            - IMPORT
            - INTEGRATION
            - INTEGRATIONS_PLATFORM
            - INTEGRATIONS_SYNC
            - INTENT
            - INTERNAL_PROCESSING
            - LEADIN
            - LEGAL_BASIS_REMEDIATION
            - MARKET_SOURCING
            - MARKETPLACE
            - MARKETS
            - MEETINGS
            - MERGE_COMPANIES
            - MERGE_CONTACTS
            - MERGE_OBJECTS
            - MERGE_REVERT_OBJECTS
            - MICROAPPS
            - MIGRATION
            - MOBILE_ANDROID
            - MOBILE_IOS
            - PAYMENTS
            - PIPELINE_SETTINGS
            - PLAYBOOKS
            - PORTAL_OBJECT_SYNC
            - PORTAL_USER_ASSOCIATOR
            - PRESENTATIONS
            - PRIMARY_AUTOMATION
            - PROPERTY_DEFAULT_VALUE
            - PROPERTY_RESTORE
            - PROPERTY_SETTINGS
            - PROSPECTING_AGENT
            - QUOTAS
            - QUOTES
            - RECYCLING_BIN
            - RESTORE_OBJECTS
            - REVENUE_PLATFORM
            - SALES
            - SALES_MESSAGES
            - SALESFORCE
            - SEQUENCES
            - SETTINGS
            - SIDEKICK
            - SIGNALS
            - SLACK_INTEGRATION
            - SMART_DATA_CAPTURE
            - SOCIAL
            - SUCCESS
            - TALLY
            - TASK
            - UNKNOWN
            - WAL_INCREMENTAL
            - WORK_UI
            - WORKFLOW_CONTACT_DELETE_ACTION
            - WORKFLOWS
        sourceId:
          type: string
          description: プロパティーのソースのID
        sourceLabel:
          type: string
          description: プロパティーのソースのレベル
        sourceMetadata:
          type: string
          description: base64文字列としてエンコードされたソースメタデータ
        sourceUpstreamDeployable:
          type: string
          description: プロパティー変更を行ったアップストリームサービスを示します
        sourceVid:
          type: array
          description: ソースに関連付けられた一意の識別子。
          items:
            type: integer
            format: int64
        timestamp:
          type: integer
          description: リクエストのタイムスタンプ
          format: int64
        unit:
          type: string
          description: 単位
        updatedByUserId:
          type: integer
          description: プロパティーを最後に更新したユーザーのID
          format: int32
        useTimestampAsPersistenceTimestamp:
          type: boolean
          description: 保存タイムスタンプがストレージバージョンのタイムスタンプと同じであるかどうかを示します
        value:
          type: string
          description: カスタムプロパティー値
      description: >-
        マーケティングイベントの単一のカスタムプロパティーを表し、その名前、値、メタデータ（ソース、タイムスタンプ、機密性など）、および変更を追跡するための関連監査情報を保存します。
    AppInfo:
      required:
        - id
        - name
      type: object
      properties:
        id:
          type: string
          description: アプリケーションのID
        name:
          type: string
          description: アプリケーションの名前
    CrmPropertyWrapper:
      required:
        - name
        - value
      type: object
      properties:
        name:
          type: string
          description: CRMのプロパティーの名前
        value:
          type: string
          description: CRMのプロパティーの値
    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
    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: エラーに関する具体的な詳細が含まれる特定のカテゴリー
  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:
            crm.objects.marketing_events.read: ''
            crm.objects.marketing_events.write: ''
            developers-read: ''
            developers-write: ''

````