---
title: "Media Select folder"
method: PUT
path: "/library/{id}/selectfolder"
tags: ["library"]
---

# Media Select folder

`PUT /library/{id}/selectfolder`

Select Folder for Media

## Path parameters

- `mediaId` integer, required

## Response `200`

successful operation

- Campaign
  - `campaignId` integer — The Campaign Id
  - `ownerId` integer — The userId of the User that owns this Campaign
  - `type` string — The type of campaign, either list or ad
  - `campaign` string — The name of the Campaign
  - `isLayoutSpecific` integer — A 0|1 flag to indicate whether this is a Layout specific Campaign or not.
  - `numberLayouts` integer — The number of Layouts associated with this Campaign
  - `totalDuration` integer — The total duration of the campaign (sum of layout's durations)
  - `folderId` integer — The id of the Folder this Campaign belongs to
  - `permissionsFolderId` integer — The id of the Folder responsible for providing permissions for this Campaign
  - `cyclePlaybackEnabled` integer — Flag indicating whether this Campaign has cycle based playback enabled
  - `playCount` integer — In cycle based playback, how many plays should each Layout have before moving on?
  - `listPlayOrder` string — In list campaign types, how should the layouts play out?
  - `targetType` string — For an ad campaign, what's the target type, plays|budget
  - `target` integer — For an ad campaign, what's the target (expressed in targetType)
  - `startDt` integer — For an ad campaign, what's the start date
  - `endDt` integer — For an ad campaign, what's the end date
  - `plays` integer — The number of plays achived by this campaign
  - `spend` number, double — The amount of spend in cents/pence/etc
  - `impressions` number, double — The number of impressions achived by this campaign
  - `lastPopId` integer — The latest proof of play ID aggregated into the stats
  - `ref1` string — Reference field 1
  - `ref2` string — Reference field 1
  - `ref3` string — Reference field 1
  - `ref4` string — Reference field 1
  - `ref5` string — Reference field 1

## Changes

- **2021-02-09** `9ddbdc81e86a` — 1 info
  - endpoint added
- **2020-02-17** `8e1275395104` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/xibosignage/apis/xibo-api/changes/library/:id/selectfolder/put.md)

---

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