---
title: "Link a resource to a cohort event"
method: POST
path: "/cohorts/{cohortId}/events/{eventId}/resources"
tags: ["Cohort Events"]
---

# Link a resource to a cohort event

`POST /cohorts/{cohortId}/events/{eventId}/resources`

## Request

- Base URL: `https://api.production.yourmedley.com`
- URL: `https://api.production.yourmedley.com/cohorts/{cohortId}/events/{eventId}/resources`
- Auth: none declared

Associates an existing cohort resource with this event

## Path parameters

- `cohortId` string, uuid, required
- `eventId` string, uuid, required

## Request body

- object
  - `resource_id` string, uuid, required

## Response `200`

Resource linked to event

## Other responses

- `400`: Invalid resource or not in cohort
- `404`: Event not found

---

[API](https://skmtc.dev/withmedley/apis/medley-api.md) - [All operations](https://skmtc.dev/withmedley/apis/medley-api/llms.txt) - [OpenAPI document](https://skmtc.dev/withmedley/apis/medley-api/revisions/40aaac5ca6bd?raw)
