mirror of
https://github.com/LukeHagar/plexjs.git
synced 2025-12-10 20:47:48 +00:00
24 lines
1.8 KiB
Markdown
24 lines
1.8 KiB
Markdown
# CreatePlaylistRequest
|
|
|
|
## Example Usage
|
|
|
|
```typescript
|
|
import { CreatePlaylistRequest, QueryParamType, Smart } from "@lukehagar/plexjs";
|
|
|
|
let value: CreatePlaylistRequest = {
|
|
title: "<value>",
|
|
type: QueryParamType.Photo,
|
|
smart: Smart.One,
|
|
uri: "https://deadly-corsage.info",
|
|
};
|
|
```
|
|
|
|
## Fields
|
|
|
|
| Field | Type | Required | Description |
|
|
| ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- |
|
|
| `title` | *string* | :heavy_check_mark: | name of the playlist |
|
|
| `type` | [models.QueryParamType](../models/queryparamtype.md) | :heavy_check_mark: | type of playlist to create |
|
|
| `smart` | [models.Smart](../models/smart.md) | :heavy_check_mark: | whether the playlist is smart or not |
|
|
| `uri` | *string* | :heavy_check_mark: | the content URI for the playlist |
|
|
| `playQueueID` | *number* | :heavy_minus_sign: | the play queue to copy to a playlist | |