---
title: "Add attachment to an opportunity"
method: POST
path: "/opps/v1/api/{opportunityId}/attachments"
tags: ["attachments"]
---

# Add attachment to an opportunity

`POST /opps/v1/api/{opportunityId}/attachments`

## Request

- Base URL: `https://localhost:8080`
- URL: `https://localhost:8080/opps/v1/api/{opportunityId}/attachments`
- Auth: none declared. Required headers: `Authorization`
- TypeScript: <https://skmtc.dev/gsa/apis/gsa-iae-opportunity-modernization/docs/opps/v1/api/:opportunityId/attachments/post.ts> (a function with typed inputs; its response is checked against the schema)

Add attachment to an opportunity.

## Path parameters

- `opportunityId` string, required

## Query parameters

- `api_key` string, required

## Headers

- `Authorization` string, required

## Request body

- string

## Response `200`

OK

- object

## Other responses

- `201`: Created
- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `500`: Internal Server Error
- `501`: Not Implemented

---

[API](https://skmtc.dev/gsa/apis/gsa-iae-opportunity-modernization.md) - [All operations](https://skmtc.dev/gsa/apis/gsa-iae-opportunity-modernization/llms.txt) - [OpenAPI document](https://skmtc.dev/gsa/apis/gsa-iae-opportunity-modernization/revisions/367b50043e66?raw)
