---
title: "Replace Resources in a Bundle"
method: PATCH
path: "/api/v2/bundles/{id}/relationships/resources"
tags: ["Bundle"]
---

# Replace Resources in a Bundle

`PATCH /api/v2/bundles/{id}/relationships/resources`

This endpoint replaces all resources in an existing bundle with the newly supplied resources. On a successful add, it returns a `201 Created` response. <h3>Required Scope</h3>`bundles:write`

## Path parameters

- `id` string, required

## Request body

- RelationshipsResourcesBody1
  - `data` Apiv2bundlesbundleIdrelationshipsresourcesData[]
    - `type` string — Type of object that will be added as a relationship. Can be `pathways`, `groups`, `content/videos`, `content/articles`, `content/books`, `content/courses`, `content/assessments`.
    - `id` string, required — The ID of the resource that will be added to the bundle.

## Response `201`

Success

---

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