---
title: "Create a file resource (after uploading to S3)"
method: POST
path: "/api/resources/file"
tags: ["Resources"]
---

# Create a file resource (after uploading to S3)

`POST /api/resources/file`

## Request

- Base URL: `https://api.production.yourmedley.com`
- URL: `https://api.production.yourmedley.com/api/resources/file`
- Auth: HTTP bearer

## Request body

- CreateFileResourceRequest
  - `cohort_id` string, uuid
  - `session_id` string, uuid
  - `category_id` string, uuid
  - `title` string, required
  - `description` string
  - `file_path` string, required
  - `file_size` integer, required
  - `mime_type` string, required
  - `original_filename` string, required
  - `is_evergreen` boolean
  - `access_coaches` boolean
  - `access_participants` boolean
  - `access_partners` boolean

## Response `201`

Resource created

## Other responses

- `400`: Validation error

---

[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)
