---
title: "add media"
method: POST
path: "/campaigns/{campaign}/media/{folderUuid}"
tags: ["Media"]
---

# add media

`POST /campaigns/{campaign}/media/{folderUuid}`

Upload one or more files to the **media library** of your campaign.
#### For custom components:
`RaiselyComponents.api.one('campaigns', '{campaign}').one('media', '{folderUuid}').post(data = {}, params = {}, headers = {}) => Promise<{result}>`

 :fa-gears: See [Restie Response Data](https://github.com/raisely/restie#reading-and-handling-responses) for a more detailed overview of responses through the client wrapper

## Path parameters

- `folderUuid` string, required
- `campaign` string, required

## Headers

- `Authorization` string

## Response `200`

URLs of the files uploaded

- object
  - `data` object
    - `url` string — URL of the first file that was uploaded
    - `urls` string[] — URLs of all the files uploaded

## Other responses

- `401` — Authorization credentials were missing or invalid
- `403` — The user is authenticated, but is not allowed to perform the requested operation
- `410` — The requested record no longer exists, or that API has been deprecated
- `429` — You have made too many requests to the given endpoint, please try again later
- `500` — An unexpected error has occurred with Raisely. If the error persists you can contact support@raisely.com

---

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