---
title: "Upload an enterprise blueprint file"
method: POST
path: "/v3beta1/enterprise/snapshot-setup/blueprints/{blueprint_id}/files"
tags: ["snapshot_setup"]
---

# Upload an enterprise blueprint file

`POST /v3beta1/enterprise/snapshot-setup/blueprints/{blueprint_id}/files`

## Request

- The document declares no server URL.
- Auth: HTTP bearer

Upload a file attachment (env-var substitution material) to the blueprint.

Returns 409 if the derived env-var name collides with another active file.

## Path parameters

- `blueprint_id` string, required

## Query parameters

- `name` string, required

## Request body `multipart/form-data`

- BodyUploadEnterpriseBlueprintFileEndpointV3beta1EnterpriseSnapshotSetupBlueprintsBlueprintIdFilesPost
  - `file` string, binary, required

## Response `201`

Successful Response

- BlueprintFile: Public ``BlueprintFile`` resource shape.
  - `blueprint_id` string, required
  - `created_at` integer, required
  - `env_var_name` string, required
  - `file_id` string, required
  - `name` string, required
  - `size_bytes` integer, required
  - `updated_at` integer, required

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `409`: Conflict
- `422`: Unprocessable Content
- `429`: Too Many Requests

---

[API](https://skmtc.dev/devin/apis/devin-api-v1.md) - [All operations](https://skmtc.dev/devin/apis/devin-api-v1/llms.txt) - [OpenAPI document](https://skmtc.dev/devin/apis/devin-api-v1/revisions/e3244476af1c?raw)
