app
app copied to clipboard
Activity: Cancel queue task
Cancel queue tasks in form of a button within the sheet.
Needs a UI to pick the various options, see screenshots below.
https://radarr.video/docs/api/#/Queue/delete_api_v3_queue__id_
, deleteQueueTasks: { tasks, instance in
let url = URL(string: instance.url)!
.appending(path: "/api/v3/queue/bulk")
.appending(queryItems: [
.init(name: "removeFromClient", value: "true"),
.init(name: "blocklist", value: "true"),
.init(name: "skipRedownload", value: "true"),
.init(name: "changeCategory", value: "100"),
])
// let body = SeriesEditorResource(ids: tasks)
return try await request(method: .delete, url: url, headers: instance.auth)
}