From f16d5e2813127ae53dc2d9374eef6d95018ae461 Mon Sep 17 00:00:00 2001 From: jobrien2001 Date: Sat, 6 Jan 2018 17:03:56 -0500 Subject: [PATCH] Updated API (markdown) --- API.md | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 +``` +