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

# Git設定をアップロード

> 指定したスキャン実行のGit設定データをアップロードし、リポジトリURLの解析と分析に使用します。



## OpenAPI

````yaml /ja/api-reference/openapi.json post /git-config-upload
openapi: 3.0.0
info:
  title: Corgea API
  version: 1.0.0
  description: Corgeaのスキャン機能および脆弱性管理機能を操作するためのAPI
servers:
  - url: https://www.corgea.app/api/v1
    description: 本番サーバー
security:
  - CorgeaToken: []
  - BearerAuth: []
paths:
  /git-config-upload:
    post:
      tags:
        - サードパーティスキャンのアップロード
      summary: Git設定をアップロード
      description: 指定したスキャン実行のGit設定データをアップロードし、リポジトリURLの解析と分析に使用します。
      operationId: gitConfigUpload
      parameters:
        - name: run_id
          in: query
          required: true
          schema:
            type: string
          description: このGit設定に関連付けられたスキャン実行ID
      requestBody:
        required: true
        description: UTF-8テキスト形式の未加工Git設定データ
        content:
          text/plain:
            schema:
              type: string
      responses:
        '200':
          description: Git設定を正常にアップロードしました
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                      - ok
                    example: ok
                required:
                  - status
        '400':
          description: 不正なリクエスト - 検証エラー
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    example: missing run_id
              examples:
                missing_run_id:
                  summary: run_idパラメーターがありません
                  value:
                    status: missing run_id
                invalid_content:
                  summary: コンテンツの検証に失敗しました
                  value:
                    status: invalid content
components:
  securitySchemes:
    CorgeaToken:
      type: apiKey
      in: header
      name: CORGEA-TOKEN
      description: 認証用のAPIキー
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Authorizationヘッダーで使用するOAuth2アクセストークン（JWT）

````