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

# Creare il blueprint di livello Enterprise

> Crea l'unico blueprint di livello Enterprise.

Restituisce 409 se esiste già un blueprint per questa enterprise.

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

Richiede un utente di servizio con l'autorizzazione `ManageAccountSnapshots` a livello Enterprise.

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

Crea il blueprint del livello Enterprise. Un blueprint definisce la configurazione dichiarativa dell'ambiente per le sessioni di Devin. La modifica di un blueprint non attiva automaticamente una build: è necessario chiamare esplicitamente l'endpoint builds.


## OpenAPI

````yaml it/v3-openapi.yaml POST /v3beta1/enterprise/snapshot-setup/blueprints
openapi: 3.1.0
info:
  description: API Devin v3 con autenticazione utente di servizio e RBAC
  title: Devin API v3
  version: 3.0.0
servers: []
security:
  - bearerAuth: []
paths:
  /v3beta1/enterprise/snapshot-setup/blueprints:
    post:
      tags:
        - snapshot_setup
      summary: Creare il blueprint di livello Enterprise
      description: |-
        Crea l'unico blueprint di livello Enterprise.

        Restituisce 409 se esiste già un blueprint per questa enterprise.
      operationId: >-
        create_enterprise_blueprint_endpoint_v3beta1_enterprise_snapshot_setup_blueprints_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateEnterpriseBlueprintBody'
        required: true
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Blueprint'
          description: Risposta riuscita
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Errore di convalida
components:
  schemas:
    CreateEnterpriseBlueprintBody:
      properties:
        contents:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            Corpo YAML per il nuovo blueprint. Ometterlo per creare un blueprint
            vuoto.
          title: Contents
      title: CreateEnterpriseBlueprintBody
      type: object
    Blueprint:
      description: >-
        Forma pubblica della risorsa ``Blueprint``.


        Note: l'enum ``type`` potrebbe estendersi in futuro; i client DEVONO
        gestire correttamente

        i valori sconosciuti. Il contenuto YAML viene recuperato separatamente
        tramite

        ``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: 'Credenziale dell''utente del servizio (prefisso: cog_)'
      scheme: bearer
      type: http

````