Cancel, resume, retry or undo a background task
/jobs/{kind}/{id}/{action}/write Change: creates or edits. Scopes
Only the actions the task lists in actions work now; any other answers 409 saying why. undo answers with the new task that puts things back.
Path parameters
actionstringrequiredOne of:
"cancel""resume""retry""undo"idstringrequiredThe task's id.
kindstringrequiredThe kind of task, as in its
kind.One of:
"backup""bulk_delete""bulk_edit""editor""import""ingest""panel_import""provider_import""series_import""watch_scan"
Response
200 OK
idstringrequiredkindstringrequiredimport- Playlist importbulk_delete- Mass deletebulk_edit- Mass editingest- VOD ingestseries_import- TV show importprovider_import- Film and show importwatch_scan- Watch folder scanbackup- Backuppanel_import- Move from another paneleditor- Playlist editor
One of:
"import""bulk_delete""bulk_edit""ingest""series_import""provider_import""watch_scan""backup""panel_import""editor"kind_labelstringrequiredtitlestringrequiredsubtitlestringrequiredstatestringrequiredWhere the task is, in the same words for every kind.
queued- Queuedrunning- Runningwaiting- Waiting for youstalled- Stalledcompleted- Completedfailed- Failedcancelled- Cancelled
state_labelstringrequiredstatusstringrequiredThe task's own status, in its kind's words.
status_labelstringrequiredprogressobjectrequireddoneintegerrequiredcan be nulltotalintegerrequiredcan be nullpercentintegerrequiredcan be nullphasestringrequired
messagestringrequireddetailsobject[]requiredlabelstringrequiredvalueanyrequired
errorsobject[]requiredWhat went wrong for single items, when the kind records it.
linkobjectrequiredcan be nullpathstringrequiredThe dashboard page that shows this task.
queryobjectrequiredlabelstringrequired
actionsstring[]requiredWhat the signed-in account may do to it now.
One of:
"cancel""resume""retry""undo"created_by_usernamestringrequiredcan be nullcreated_atstring (date-time)requiredstarted_atstring (date-time)requiredcan be nullfinished_atstring (date-time)requiredcan be nullupdated_atstring (date-time)required
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.
- 404 Nothing with this id, or nothing the account can see.
- 409 The task cannot do that now.
- 429 Slow down: wait the seconds in the Retry-After header, then try again.