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

# Criar um blueprint de nível org ou repo

> Cria um blueprint. ``type`` é inferido de ``repo_name``.

Conforme a especificação, isso nunca aciona um build automaticamente — quem faz a chamada deve
enviar ``POST /builds`` explicitamente.

<div id="permissions">
  ## Permissões
</div>

Requer um usuário de serviço com a permissão `ManageRepoBlueprints` no nível da organização. A criação de blueprints em nível da organização requer a permissão `ManageOrgSnapshots`.

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

Cria um blueprint de nível de org ou de repo. Um blueprint define a configuração declarativa de ambiente para as sessões do Devin. Alterar um blueprint não aciona automaticamente uma build — você deve chamar o endpoint de builds explicitamente.


## OpenAPI

````yaml pt-BR/v3-openapi.yaml POST /v3beta1/organizations/{org_id}/snapshot-setup/blueprints
openapi: 3.1.0
info:
  description: API Devin v3 com autenticação de usuário de serviço e 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: Criar um blueprint de nível org ou repo
      description: >-
        Cria um blueprint. ``type`` é inferido de ``repo_name``.


        Conforme a especificação, isso nunca aciona um build automaticamente —
        quem faz a chamada deve

        enviar ``POST /builds`` explicitamente.
      operationId: >-
        create_org_blueprint_v3beta1_organizations__org_id__snapshot_setup_blueprints_post
      parameters:
        - description: 'ID da organização (prefixo: 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: Resposta bem-sucedida
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Erro de validação
components:
  schemas:
    CreateOrgBlueprintBody:
      properties:
        contents:
          anyOf:
            - type: string
            - type: 'null'
          description: Corpo YAML inicial opcional para o blueprint.
          title: Contents
        repo_name:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            Se definido, cria um blueprint de nível de repo para esse
            repositório. Se omitido, cria um blueprint em nível da organização
            (nível da org).
          title: Repo Name
      title: CreateOrgBlueprintBody
      type: object
    Blueprint:
      description: >-
        Formato do recurso público ``Blueprint``.


        Note: o enum ``type`` poderá ser expandido no futuro; os clientes DEVEM
        lidar corretamente

        com valores desconhecidos. O conteúdo YAML é obtido separadamente via

        ``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: 'Credencial de usuário de serviço (prefixo: cog_)'
      scheme: bearer
      type: http

````