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

# Créer le blueprint de niveau Enterprise

> Crée l'unique blueprint au niveau Enterprise.

Renvoie 409 si un blueprint existe déjà pour cette entreprise.

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

Nécessite un utilisateur de service disposant de l’autorisation `ManageAccountSnapshots` au niveau de l’entreprise.

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

Crée le blueprint au niveau Enterprise. Un blueprint définit la configuration déclarative de l’environnement pour les sessions Devin. La modification d’un blueprint ne déclenche pas automatiquement de build — vous devez appeler explicitement l’endpoint builds.


## OpenAPI

````yaml fr/v3-openapi.yaml POST /v3beta1/enterprise/snapshot-setup/blueprints
openapi: 3.1.0
info:
  description: API Devin v3 avec authentification par compte de service et RBAC
  title: Devin API v3
  version: 3.0.0
servers: []
security:
  - bearerAuth: []
paths:
  /v3beta1/enterprise/snapshot-setup/blueprints:
    post:
      tags:
        - snapshot_setup
      summary: Créer le blueprint de niveau Enterprise
      description: |-
        Crée l'unique blueprint au niveau Enterprise.

        Renvoie 409 si un blueprint existe déjà pour cette entreprise.
      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: Réponse réussie
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Erreur de validation
components:
  schemas:
    CreateEnterpriseBlueprintBody:
      properties:
        contents:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            Corps YAML du nouveau blueprint. Omettez-le pour créer un blueprint
            vide.
          title: Contents
      title: CreateEnterpriseBlueprintBody
      type: object
    Blueprint:
      description: "Schéma public de la ressource ``Blueprint``.\n\nRemarque\_: l’énumération ``type`` pourra être étendue à l’avenir\_; les clients DOIVENT gérer correctement\nles valeurs inconnues. Le contenu YAML est récupéré séparément via\n``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: "Identifiant de compte de service (préfixe\_: cog_)"
      scheme: bearer
      type: http

````