{ "sections_get_200": { "name": "A request to get all Libraries", "description": "This request will get all libraries from the Plex server.", "request": { "method": "GET", "uri": "/library/sections", "headers": { "Accept": "application/json", "X-Plex-Token": "$(fake_plex_token}", "X-Plex-Container-Size": "1" } }, "response": { "http_code": 200, "headers": { "Content-Type": "application/json", "X-Plex-Protocol": "1.0" }, "body": { "MediaContainer": { "Directory": [ { "Location": [ { "id": 1, "path": "/storage/media/movies" } ], "agent": "tv.plex.agents.movie", "allowSync": true, "art": "/:/resources/movie-fanart.jpg", "composite": "/library/sections/2/composite/1693688538", "content": true, "contentChangedAt": 18253756, "createdAt": 1499601583, "directory": true, "filters": true, "hidden": 0, "key": "1", "language": "en-US", "refreshing": false, "scannedAt": 1693688538, "scanner": "Plex Movie", "thumb": "/:/resources/movie.png", "title": "Movies", "type": "movie", "updatedAt": 1693708514, "uuid": "AC000000-0000-0000-0000-000000000001" }, { "Location": [ { "id": 2, "path": "/storage/media/tv" } ], "agent": "tv.plex.agents.series", "allowSync": true, "art": "/:/resources/show-fanart.jpg", "composite": "/library/sections/1/composite/1693717781", "content": true, "contentChangedAt": 18253803, "createdAt": 1499601519, "directory": true, "filters": true, "hidden": 0, "key": "2", "language": "en-US", "refreshing": false, "scannedAt": 1693717781, "scanner": "Plex TV Series", "thumb": "/:/resources/show.png", "title": "TV Shows", "type": "show", "updatedAt": 1693717833, "uuid": "AC000000-0000-0000-0000-000000000002" }, { "Location": [ { "id": 3, "path": "/storage/media/no_agent" } ], "agent": "com.plexapp.agents.none", "allowSync": true, "art": "/:/resources/show-fanart.jpg", "composite": "/library/sections/40/composite/1693717782", "content": true, "contentChangedAt": 18231903, "createdAt": 1682365203, "directory": true, "filters": true, "hidden": 0, "key": "3", "language": "xn", "refreshing": false, "scannedAt": 1693717782, "scanner": "Absolute Series Scanner", "thumb": "/:/resources/show.png", "title": "Non matched content", "type": "show", "updatedAt": 1693717833, "uuid": "AC000000-0000-0000-0000-000000000003" } ], "allowSync": false, "size": 3, "title1": "Plex Library" } } } }, "sections_get_401": { "name": "A request to get all Libraries with an invalid token", "description": "This request will receive a 401 Unauthorized response.", "request": { "method": "GET", "uri": "/library/sections", "headers": { "Accept": "application/json", "X-Plex-Token": "$(fake_invalid_plex_token}", "X-Plex-Container-Size": "1" } }, "response": { "http_code": 401, "headers": { "Content-Type": "text/html", "X-Plex-Protocol": "1.0" }, "body": "