Files
plexjs/docs/sdk/models/operations/getlibrarysectionsallrequest.md

11 KiB
Raw Blame History

GetLibrarySectionsAllRequest

Example Usage

import {
  GetLibrarySectionsAllQueryParamIncludeMeta,
  GetLibrarySectionsAllQueryParamType,
  GetLibrarySectionsAllRequest,
  IncludeAdvanced,
  QueryParamIncludeCollections,
  QueryParamIncludeExternalMedia,
  QueryParamIncludeGuids,
} from "@lukehagar/plexjs/sdk/models/operations";

let value: GetLibrarySectionsAllRequest = {
  sectionKey: 9518,
  type: GetLibrarySectionsAllQueryParamType.TvShow,
  includeMeta: GetLibrarySectionsAllQueryParamIncludeMeta.Enable,
  includeGuids: QueryParamIncludeGuids.Enable,
  includeAdvanced: IncludeAdvanced.Enable,
  includeCollections: QueryParamIncludeCollections.Enable,
  includeExternalMedia: QueryParamIncludeExternalMedia.Enable,
};

Fields

Field Type Required Description Example
sectionKey number ✔️ The unique key of the Plex library.
Note: This is unique in the context of the Plex server.
9518
type operations.GetLibrarySectionsAllQueryParamType ✔️ 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.GetLibrarySectionsAllQueryParamIncludeMeta Adds the Meta object to the response
1
includeGuids operations.QueryParamIncludeGuids Adds the Guid object to the response
1
includeAdvanced operations.IncludeAdvanced N/A 1
includeCollections operations.QueryParamIncludeCollections N/A 1
includeExternalMedia operations.QueryParamIncludeExternalMedia N/A 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