---
title: "Transfer all media owned by one user to another"
method: POST
path: "/transfer_media"
tags: ["Transfer media"]
---

# Transfer all media owned by one user to another

`POST /transfer_media`

The endpoint transfers all not shared media objects owned by the user to a new owner. We transfer the media objects themselves, all perspectives stored in the "My Library" and in custom collections.

## Request body

- object
  - `from_user_id` integer, required
  - `to_user_id` integer, required

## Response `200`

The media has been successfully transferred to the target user.

- object
  - `not_transferred_perspective_ids` string[]
  - `not_transferred_collection_ids` integer[]

## Other responses

- `400` — If users are not found with the provided ids, the endpoint returns HTTP 400.
- `401` — Authorization information is missing or invalid.
- `403` — If a user without proper permissions tries to call this endpoint, the call is rejected with 403 Forbidden.
- `422` — Invalid user_id is provided.

---

[API](https://skmtc.net/instructure/apis/studio-public-api.md) · [All operations](https://skmtc.net/instructure/apis/studio-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/instructure/studio-public-api/revisions/4838a5113869/schema)
