Skip to content

Latest commit

 

History

History
39 lines (34 loc) · 8.87 KB

getrecentlyaddedlibraryrequest.md

File metadata and controls

39 lines (34 loc) · 8.87 KB

GetRecentlyAddedLibraryRequest

Example Usage

import { GetRecentlyAddedLibraryRequest, QueryParamType } from "@lukehagar/plexjs/sdk/models/operations";

let value: GetRecentlyAddedLibraryRequest = {
  contentDirectoryID: 2,
  pinnedContentDirectoryID: [
    3,
    5,
    7,
    13,
    12,
    1,
    6,
    14,
    2,
    10,
    16,
    17,
  ],
  sectionID: 2,
  type: QueryParamType.TvShow,
};

Fields

Field Type Required Description Example
contentDirectoryID number N/A 2
pinnedContentDirectoryID number[] N/A [
3,
5,
7,
13,
12,
1,
6,
14,
2,
10,
16,
17
]
sectionID number The library section ID for filtering content. 2
type operations.QueryParamType ✔️ The type of media to retrieve or filter by.
1 = movie
2 = show
3 = season
4 = episode
E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries
2
includeMeta operations.QueryParamIncludeMeta Adds the Meta object to the response
1
xPlexContainerStart number The index of the first item to return. If not specified, the first item will be returned.
If the number of items exceeds the limit, the response will be paginated.
By default this is 0
0
xPlexContainerSize number The number of items to return. If not specified, all items will be returned.
If the number of items exceeds the limit, the response will be paginated.
By default this is 50
50