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

# Einen Blueprint auf org- oder Repo-Ebene erstellen

> Erstellt ein Blueprint. ``type`` wird aus ``repo_name`` abgeleitet.

Gemäß Spezifikation löst dies niemals automatisch einen Build aus — Aufrufer müssen
``POST /builds`` explizit ausführen.

<div id="permissions">
  ## Berechtigungen
</div>

Erfordert einen Service-Benutzer mit der Berechtigung `ManageRepoBlueprints` auf Organisationsebene. Das Erstellen von Blueprints auf Org-Ebene erfordert die Berechtigung `ManageOrgSnapshots`.

<div id="behavior">
  ## Verhalten
</div>

Erstellt einen Blueprint auf Org- oder Repo-Ebene. Ein Blueprint definiert die deklarative Umgebungskonfiguration für Devin-Sitzungen. Änderungen an einem Blueprint lösen nicht automatisch einen Build aus — Sie müssen den `builds`-Endpunkt explizit aufrufen.


## OpenAPI

````yaml de/v3-openapi.yaml POST /v3beta1/organizations/{org_id}/snapshot-setup/blueprints
openapi: 3.1.0
info:
  description: Devin v3 API mit Service-User-Authentifizierung und RBAC
  title: Devin API v3
  version: 3.0.0
servers: []
security:
  - bearerAuth: []
paths:
  /v3beta1/organizations/{org_id}/snapshot-setup/blueprints:
    post:
      tags:
        - snapshot_setup
      summary: Einen Blueprint auf org- oder Repo-Ebene erstellen
      description: >-
        Erstellt ein Blueprint. ``type`` wird aus ``repo_name`` abgeleitet.


        Gemäß Spezifikation löst dies niemals automatisch einen Build aus —
        Aufrufer müssen

        ``POST /builds`` explizit ausführen.
      operationId: >-
        create_org_blueprint_v3beta1_organizations__org_id__snapshot_setup_blueprints_post
      parameters:
        - description: 'Organisations-ID (Präfix: 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: Erfolgreiche Antwort
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validierungsfehler
components:
  schemas:
    CreateOrgBlueprintBody:
      properties:
        contents:
          anyOf:
            - type: string
            - type: 'null'
          description: Optionaler initialer YAML-Body für das Blueprint.
          title: Contents
        repo_name:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            Wenn gesetzt, wird ein Blueprint auf Repo-Ebene für dieses
            Repository erstellt. Wenn nicht angegeben, wird ein Blueprint auf
            Org-Ebene erstellt.
          title: Repo Name
      title: CreateOrgBlueprintBody
      type: object
    Blueprint:
      description: >-
        Öffentliches Ressourcenformat für ``Blueprint``.


        Hinweis: Das Enum ``type`` kann in Zukunft erweitert werden; Clients
        MÜSSEN unbekannte Werte

        robust verarbeiten. Der YAML-Inhalt wird separat über

        ``GET /blueprints/{id}/contents`` abgerufen.
      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: 'Servicebenutzer-Anmeldedaten (Präfix: cog_)'
      scheme: bearer
      type: http

````