create_library_sections_all
Add a new media library section to Plex by specifying name, type, scanner, agent, and disk locations. Configure metadata preferences and language for the section.
Instructions
Add a library section.
POST /library/sections/all
Args:
name: The name of the new section
type: The type of library section
scanner: The scanner this section should use
agent: The agent this section should use for metadata
metadata_agent_provider_group_id: The agent group id for this section
language: The language of this section
locations: The locations on disk to add to this section
prefs: The preferences for this section
relative: If set, paths are relative to Media Upload path
import_fromi_tunes: If set, import media from iTunes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| type | No | ||
| agent | No | ||
| prefs | No | ||
| scanner | No | ||
| language | No | ||
| relative | No | ||
| locations | No | ||
| import_fromi_tunes | No | ||
| metadata_agent_provider_group_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |