diff --git a/API.md b/API.md index 7b9839c..2b19d04 100644 --- a/API.md +++ b/API.md @@ -32,3 +32,14 @@ All requests made to the api endpoint require API Key authentication using the X - [History](https://github.com/Radarr/Radarr/wiki/API:History) - [Movie](https://github.com/Radarr/Radarr/wiki/API:Movie) - [System-Status](https://github.com/Radarr/Radarr/wiki/API:System-Status) + +## Examples + +### Powershell +Example of post processing script to scan the disk for the movie +``` +$movie_id = $env:radarr_movie_id +$params = @{"name"="RescanMovie";"movieId"="$movie_id";} | ConvertTo-Json +Invoke-WebRequest -Uri http://RADARRIP:RADARRPORT/api/command?apikey=RADARRAPIKEY -Method POST -Body $params +``` +