Petter Holt Juliussen • Mail | Mastodon | GitHub | Letterboxd

for later reference.

Servarr

2022-10-19

Sonarr

https://wiki.servarr.com/sonarr
https://github.com/Sonarr/Sonarr/wiki/API

Auth

Header X-Api-Key or ?apikey= query parameter.

Refresh & Scan

POST /api/v3/command

{
    "name": "RefreshSeries",
    "seriesId": 15
}

Rename

https://github.com/Sonarr/Sonarr/wiki/Command#renamefiles

GET /api/v3/rename?seriesId=15&seasonNumber=1

POST /api/v3/command

{
    "name": "RenameFiles",
    "seriesId": 15,
    "files": [8] // List of `episodeFileId`
}