---
title: "Upload attachment"
method: POST
path: "/attachment/{packageId}"
tags: ["Attachment API"]
---

# Upload attachment

`POST /attachment/{packageId}`

## Request

- Base URL: `https://vista-gateway-api.dnv.com` (the document declares no server; this is the origin it was published from)
- URL: `https://vista-gateway-api.dnv.com/attachment/{packageId}`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/dnv/apis/vista-gateway-public-api/docs/attachment/:packageId/post.ts> (a function with typed inputs; its response is checked against the schema)

Uploads a binary or large attachment associated with an existing ingested package. Supports any content type. Maximum size: 10 GB.

## Path parameters

- `packageId` string, uuid, required

## Headers

- `X-Attachment-Filename` string
- `X-Package-External-Id` string
- `X-Package-Correlation-Id` string
- `User-Agent` string

## Request body

- string, binary

## Response `201`

Created

- AttachmentCreated
  - `attachmentPackageId` string, uuid
  - `parentPackageId` string, uuid

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `404`: Not Found
- `413`: Content Too Large
- `429`: Too Many Requests
- `503`: Service Unavailable

---

[API](https://skmtc.dev/dnv/apis/vista-gateway-public-api.md) - [All operations](https://skmtc.dev/dnv/apis/vista-gateway-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/dnv/apis/vista-gateway-public-api/revisions/d9b764d2831c?raw)
