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

# ファイルアップロードの完了

> ファイルアップロードプロセスを完了し、アップロードされたJSONファイルを検証します。このエンドポイントは、ファイルの存在を確認し、そのJSON形式を検証し、ファイルのステータスを完了に更新します。



## OpenAPI

````yaml ja/openapi/files.json POST /v1/files/{file_id}/complete
openapi: 3.0.3
info:
  title: ファイル API
  version: 1.0.0
servers:
  - url: https://api.olostep.com
security: []
paths:
  /v1/files/{file_id}/complete:
    post:
      summary: ファイルアップロードを完了する
      description: >-
        ファイルアップロードプロセスを完了し、アップロードされたJSONファイルを検証する。このエンドポイントはファイルの存在を確認し、JSON形式を検証し、ファイルサイズ（最大200MB）をチェックし、ファイルステータスをcompletedに更新する。
      parameters:
        - name: file_id
          in: path
          required: true
          description: 完了するファイルのユニークな識別子。
          schema:
            type: string
      responses:
        '200':
          description: ファイルアップロードが正常に完了しました。
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    description: ファイルID
                  object:
                    type: string
                    description: オブジェクトの種類。このエンドポイントでは "file"。
                  created:
                    type: integer
                    description: 作成されたエポックタイムスタンプ
                  filename:
                    type: string
                    description: アップロードされたファイルのファイル名
                  bytes:
                    type: integer
                    description: ファイルサイズ（バイト単位）
                  purpose:
                    type: string
                    description: ファイルの目的
                  status:
                    type: string
                    description: ファイルのステータス。正常に完了した後は 'completed' になる。
        '400':
          description: 不正なリクエスト。ファイルはすでに完了している、無効なステータス、ファイルが大きすぎる（最大200MB）、または無効なJSON形式。
        '401':
          description: 無効なAPIキー
        '404':
          description: ファイルが見つからないか、S3にアップロードされていない
        '500':
          description: 内部サーバーエラー
      security:
        - Authorization: []
components:
  securitySchemes:
    Authorization:
      type: http
      scheme: bearer
      description: Bearer <token>形式のBearer認証ヘッダー。<token>はあなたの認証トークンです。

````