mirror of
https://github.com/LukeHagar/plexjs.git
synced 2025-12-06 20:47:46 +00:00
24 lines
3.3 KiB
Markdown
24 lines
3.3 KiB
Markdown
# CreatePlaylistRequest
|
|
|
|
## Example Usage
|
|
|
|
```typescript
|
|
import { CreatePlaylistQueryParamType, CreatePlaylistRequest, Smart } from "@lukehagar/plexjs/sdk/models/operations";
|
|
|
|
let value: CreatePlaylistRequest = {
|
|
title: "<value>",
|
|
type: CreatePlaylistQueryParamType.Photo,
|
|
smart: Smart.One,
|
|
uri: "https://enchanted-disclosure.com/",
|
|
};
|
|
```
|
|
|
|
## Fields
|
|
|
|
| Field | Type | Required | Description |
|
|
| --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- |
|
|
| `title` | *string* | :heavy_check_mark: | name of the playlist |
|
|
| `type` | [operations.CreatePlaylistQueryParamType](../../../sdk/models/operations/createplaylistqueryparamtype.md) | :heavy_check_mark: | type of playlist to create |
|
|
| `smart` | [operations.Smart](../../../sdk/models/operations/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 | |