---
title: "Replace a Pathway in an Opportunity"
method: PATCH
path: "/api/v2/opportunities/{opportunityId}/relationships/suggested-pathways"
tags: ["Opportunity"]
---

# Replace a Pathway in an Opportunity

`PATCH /api/v2/opportunities/{opportunityId}/relationships/suggested-pathways`

This endpoint replaces all suggested pathways in an existing opportunity with the newly supplied suggested pathways. <h3>Required Scope</h3>`opportunity:write`

## Path parameters

- `opportunityId` string, required

## Request body

- OpportunityRelationshipPathwayBody
  - `data` OpportunityRelationshipPathwayBodyData[]
    - `type` string, nullable — The type of relationship.
    - `id` string, nullable — The unique id of the pathway.

## Response `201`

Success

## Other responses

- `400` — Bad Request

---

[API](https://skmtc.dev/degreed/apis/degreed-api-web.md) · [All operations](https://skmtc.dev/degreed/apis/degreed-api-web/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/degreed/degreed-api-web/revisions/4a22b709515c/schema)
