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

# Update attachment to an opportunity

`PATCH /opps/v1/api/{opportunityId}/attachments/{resourceId}`

## Request

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

Update attachment for an opportunity.

## Path parameters

- `opportunityId` string, required
- `resourceId` string, required

## Query parameters

- `api_key` string, required

## Headers

- `Authorization` string, required

## Request body

- string

## Response `200`

OK

- object

## Other responses

- `204`: No Content
- `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)
