Create a watch folder
/vod/watch-folders/write Change: creates or edits. Scopes
Saves a folder whose new files are added on their own; a folder that is on starts its first scan at once. The folder must exist and must not overlap another watch folder. Panel operators only.
Body
namestringEmpty: the folder's own name.
is_enabledbooleanOff: paused, the folder is scanned only when asked.
kindstringWhat the folder holds. A file that looks like the other kind is skipped, and says so.
movies- Moviesseries- TV showsboth- Movies and TV shows
sourcestringnode- A servers3- A bucket
One of:
"node""s3"serverstring (uuid)can be nullrootstringIncoming folder: files are moved into the server's storage. Media folder: files stay where they are.
incoming- Incoming foldermedia- Media folder
pathstringstoragestring (uuid)can be nulldeliverystringadopt- Moved into the server's storagelink- Served where it isdownload- Downloaded to a serverproxy- Played through a serverredirect- Played straight from the bucket
One of:
"adopt""link""download""proxy""redirect"scan_every_minutesintegercategoriesstringFolder names: "Action/Heat (1995).mkv" goes under Action (a file in no such folder goes under its TMDB genres). TMDB genres. One category for movies and one for TV shows. Or your own mapping of folder names (else genres) to categories.
folder- Folder namestmdb- TMDB genresfixed- One categorycustom- My own mapping
movie_categorystring (uuid)can be nullseries_categorystring (uuid)can be nullcategory_mapanymovie_bouquetsstring (uuid)[]series_bouquetsstring (uuid)[]use_tmdbbooleanFill posters, plots, cast and ratings from TMDB (the key in Settings → VOD).
add_unmatchedbooleanA title TMDB does not know is added with its file name. Off: it waits for you.
tmdb_languagestringLanguage of titles and plots from TMDB, e.g. fr-FR. Empty: the one in Settings → VOD.
extensionsstringOnly files with these extensions are read, e.g. mkv,mp4.
Response
201 OK
idstring (uuid)requiredread-onlynamestringEmpty: the folder's own name.
display_namestringrequiredread-onlyis_enabledbooleanOff: paused, the folder is scanned only when asked.
kindstringWhat the folder holds. A file that looks like the other kind is skipped, and says so.
movies- Moviesseries- TV showsboth- Movies and TV shows
sourcestringnode- A servers3- A bucket
One of:
"node""s3"serverstring (uuid)can be nullserver_namestringrequiredread-onlyrootstringIncoming folder: files are moved into the server's storage. Media folder: files stay where they are.
incoming- Incoming foldermedia- Media folder
pathstringstoragestring (uuid)can be nullstorage_namestringrequiredread-onlydeliverystringadopt- Moved into the server's storagelink- Served where it isdownload- Downloaded to a serverproxy- Played through a serverredirect- Played straight from the bucket
One of:
"adopt""link""download""proxy""redirect"scan_every_minutesintegercategoriesstringFolder names: "Action/Heat (1995).mkv" goes under Action (a file in no such folder goes under its TMDB genres). TMDB genres. One category for movies and one for TV shows. Or your own mapping of folder names (else genres) to categories.
folder- Folder namestmdb- TMDB genresfixed- One categorycustom- My own mapping
movie_categorystring (uuid)can be nullseries_categorystring (uuid)can be nullcategory_mapanymovie_bouquetsstring (uuid)[]series_bouquetsstring (uuid)[]use_tmdbbooleanFill posters, plots, cast and ratings from TMDB (the key in Settings → VOD).
add_unmatchedbooleanA title TMDB does not know is added with its file name. Off: it waits for you.
tmdb_languagestringLanguage of titles and plots from TMDB, e.g. fr-FR. Empty: the one in Settings → VOD.
extensionsstringOnly files with these extensions are read, e.g. mkv,mp4.
next_scan_atstring (date-time)requiredread-onlycan be nulllast_scan_atstring (date-time)requiredread-onlycan be nullcreated_bystring (uuid)requiredread-onlycan be nullcreated_atstring (date-time)requiredread-onlyupdated_atstring (date-time)requiredread-onlycountsobjectrequiredread-onlylast_scanobjectrequiredread-onlycan be nullidstring (uuid)requiredread-onlytriggerstringrequiredread-onlystatusstringrequiredread-onlyphasestringrequiredread-onlydoneintegerrequiredread-onlytotalintegerrequiredread-onlycountsanyrequiredread-onlymessagestringrequiredread-onlycreated_atstring (date-time)requiredread-onlystarted_atstring (date-time)requiredread-onlycan be nullfinished_atstring (date-time)requiredread-onlycan be null
scanningbooleanrequiredread-onlyproblemstringrequiredread-onlycan be nullWhy the last scan that ended failed, in a sentence; None when it did not (kept while the folder is paused).
Errors
- 400 Something sent is not valid. Each field that is wrong is named with what is wrong.
- 401 No credential, or one that is wrong, expired or revoked.
- 403 The account, or the key's or app's scopes, may not do this.
- 429 Slow down: wait the seconds in the Retry-After header, then try again.