---
title: "Confirms that a file has been uploaded to blob storage and records it as an attachment on the print. Pro subscription required."
method: POST
path: "/api/Prints/{id}/files/confirm"
tags: ["Prints"]
---

# Confirms that a file has been uploaded to blob storage and records it as an attachment on the print. Pro subscription required.

`POST /api/Prints/{id}/files/confirm`

## Request

- Base URL: `https://api.3dprintlog.com`
- URL: `https://api.3dprintlog.com/api/Prints/{id}/files/confirm`
- Auth: one of:
  - OAuth 2 (authorization code, authorization URL `https://3dprintlog.auth0.com/authorize`, token URL `https://3dprintlog.auth0.com/oauth/token`)
  - API key in header `X-Api-Key`
  - API key in query parameter `api_key`

## Path parameters

- `id` integer, required

## Request body

- PrintLogApiModelsDTOsPrintConfirmUploadRequest
  - `blobPath` string, required
  - `fileName` string, required
  - `sizeBytes` integer
  - `contentType` string, required

## Response `200`

Returns the created PrintAttachment details.

- PrintLogApiModelsDTOsPrintPrintAttachmentDto
  - `id` integer
  - `originalFileName` string, nullable
  - `sizeBytes` integer
  - `contentType` string, nullable
  - `displayOrder` integer

## Other responses

- `400`: If the blob path is invalid.
- `401`: If the user is not authenticated.
- `403`: If the user does not own the print or does not have a Pro subscription.
- `404`: If the print does not exist.

---

[API](https://skmtc.dev/3dprintlog/apis/3d-print-log-api.md) · [All operations](https://skmtc.dev/3dprintlog/apis/3d-print-log-api/llms.txt) · [OpenAPI document](https://skmtc.dev/3dprintlog/apis/3d-print-log-api/revisions/dfc3a4df4e38?raw)
