Server Version#: 1.13.5.5332
I am developing a small PHP app for library management.
The api reference, i try to implement is found here: link
The goal is to add a new libary from my app. So far i managed to build a request that is almost working:
http://localhost:32400/library/sections?X-Plex-Token=removed&name=testlib&type=movie&agent=com.plexapp.agents.themoviedb&language=en&scanner=Plex+Movie+Scanner&location=%2Fmedia%2FVolume_2%2FMovies
The error is the following:
[0x7f7322ff9700] DEBUG - Request: [127.0.0.1:48552 (Loopback)] POST /library/sections (6 live) GZIP Signed-in Token
[0x7f7322ff9700] ERROR - Library: Couldn’t create section: ‘location’ is missing or invalid.
[0x7f7333ffe700] DEBUG - Completed: [127.0.0.1:48552] 400 POST /library/sections (6 live) GZIP 1ms 333 bytes (pipelined: 1)
Note: The path is exists, plex has access to it and properly formatted by php’s urlencoder (i checked other GET based listing requests and they are working OK)
What am i missing?
Thank you for helping