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

# Check folder update status

> フォルダー更新のステータスをチェックします。フォルダー更新は非同期で行われます。

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={[
  'files'
]}
    />
  </Accordion>
</AccordionGroup>


## OpenAPI

````yaml specs/legacy/v3/files-files-v3.json GET /files/v3/folders/update/async/tasks/{taskId}/status
openapi: 3.0.1
info:
  title: Files Files
  description: Upload and manage files.
  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: Files Guide
      url: https://developers.hubspot.com/docs/guides/api/library/files
servers:
  - url: https://api.hubapi.com
security: []
tags:
  - name: Basic
  - name: Files
  - name: Folders
paths:
  /files/v3/folders/update/async/tasks/{taskId}/status:
    get:
      tags:
        - Folders
      summary: フォルダーの更新ステータスを確認
      description: フォルダー更新のステータスをチェックします。フォルダー更新は非同期で行われます。
      operationId: >-
        get-/files/v3/folders/update/async/tasks/{taskId}/status_checkUpdateStatus
      parameters:
        - name: taskId
          in: path
          description: フォルダー更新のTaskId。
          required: true
          style: simple
          explode: false
          schema:
            type: string
      responses:
        '200':
          description: successful operation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FolderActionResponse'
        default:
          $ref: '#/components/responses/Error'
          description: ''
      security:
        - oauth2:
            - files.ui_hidden.write
        - oauth2:
            - files
components:
  schemas:
    FolderActionResponse:
      required:
        - completedAt
        - startedAt
        - status
        - taskId
      type: object
      properties:
        completedAt:
          type: string
          description: 依頼された変更が完了した日時。
          format: date-time
        errors:
          type: array
          description: タスクに原因がある詳細なエラー。
          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
        result:
          $ref: '#/components/schemas/Folder'
        startedAt:
          type: string
          description: タスクが開始された日時を表すタイムスタンプ。
          format: date-time
        status:
          type: string
          description: タスクの現在のステータス。
          enum:
            - CANCELED
            - COMPLETE
            - PENDING
            - PROCESSING
        taskId:
          type: string
          description: タスクのID。
    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: HubSpot APIにおける標準的なエラーレスポンスを表し、APIリクエスト中に発生したエラーに関する詳細情報を提供します。
    Folder:
      required:
        - archived
        - createdAt
        - id
        - updatedAt
      type: object
      properties:
        archived:
          type: boolean
          description: フォルダーが削除されたかどうかを示します。
        archivedAt:
          type: string
          description: フォルダー削除のタイムスタンプ。
          format: date-time
        createdAt:
          type: string
          description: フォルダー作成のタイムスタンプ。
          format: date-time
        id:
          type: string
          description: フォルダーのID。
        name:
          type: string
          description: フォルダーの名前。
        parentFolderId:
          type: string
          description: 親フォルダーのID。
        path:
          type: string
          description: ファイルマネージャーにおけるフォルダーのパス。
        updatedAt:
          type: string
          description: フォルダーに対する最新の更新のタイムスタンプ。
          format: date-time
    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:
            files.ui_hidden.read: ''
            files.ui_hidden.write: ''

````