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

# orgティアまたはrepoティアのブループリントを作成する

> ブループリントを作成します。``type`` は ``repo_name`` から推定されます。

仕様上、これによってビルドが自動的にトリガーされることはありません。呼び出し元は
明示的に ``POST /builds`` を実行する必要があります。

<div id="permissions">
  ## 権限
</div>

組織レベルで `ManageRepoBlueprints` 権限を持つサービスユーザーが必要です。org ティア ブループリントの作成には、`ManageOrgSnapshots` 権限が必要です。

<div id="behavior">
  ## 動作
</div>

org または repo ティアのブループリントを作成します。ブループリントは、Devin セッション用の宣言的な環境設定を定義します。ブループリントを変更してもビルドは自動ではトリガーされません。builds エンドポイントを明示的に呼び出す必要があります。


## OpenAPI

````yaml ja/v3-openapi.yaml POST /v3beta1/organizations/{org_id}/snapshot-setup/blueprints
openapi: 3.1.0
info:
  description: Service User 認証および RBAC に対応した Devin v3 API
  title: Devin API v3
  version: 3.0.0
servers: []
security:
  - bearerAuth: []
paths:
  /v3beta1/organizations/{org_id}/snapshot-setup/blueprints:
    post:
      tags:
        - snapshot_setup
      summary: orgティアまたはrepoティアのブループリントを作成する
      description: |-
        ブループリントを作成します。``type`` は ``repo_name`` から推定されます。

        仕様上、これによってビルドが自動的にトリガーされることはありません。呼び出し元は
        明示的に ``POST /builds`` を実行する必要があります。
      operationId: >-
        create_org_blueprint_v3beta1_organizations__org_id__snapshot_setup_blueprints_post
      parameters:
        - description: '組織ID（プレフィックス: org-）'
          in: path
          name: org_id
          required: true
          schema:
            example: org-abc123def456
            title: Org Id
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateOrgBlueprintBody'
        required: true
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Blueprint'
          description: 成功レスポンス
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: バリデーションエラー
components:
  schemas:
    CreateOrgBlueprintBody:
      properties:
        contents:
          anyOf:
            - type: string
            - type: 'null'
          description: ブループリントの初期 YAML 本文（省略可）。
          title: Contents
        repo_name:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            設定すると、そのリポジトリ用の repo ティア
            ブループリントを作成します。省略した場合は、org-wide（org-tier）ブループリントを作成します。
          title: Repo Name
      title: CreateOrgBlueprintBody
      type: object
    Blueprint:
      description: >-
        公開 ``Blueprint`` リソースの形式。


        注: ``type`` 列挙型には今後値が追加される可能性があります。クライアントは未知の値を必ず適切に処理する必要があります。YAML内容は
        ``GET /blueprints/{id}/contents`` で別途取得します。
      properties:
        blueprint_id:
          title: Blueprint Id
          type: string
        created_at:
          title: Created At
          type: integer
        repo_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Repo Name
        type:
          enum:
            - enterprise
            - org
            - repo
          title: Type
          type: string
        updated_at:
          title: Updated At
          type: integer
      required:
        - blueprint_id
        - type
        - repo_name
        - created_at
        - updated_at
      title: Blueprint
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object
  securitySchemes:
    bearerAuth:
      description: 'サービスユーザーの認証情報（接頭辞: cog_）'
      scheme: bearer
      type: http

````