editing
runner nix smoke / nix label and flake smoke (push) Canceled after 0s

This commit is contained in:
2026-10-15 10:21:37 +00:00
parent 06925e9af8
commit 5aeb3c5d50
7 changed files with 183 additions and 4 deletions
+11
View File
@@ -51,6 +51,17 @@ impl ApiClient {
self.send_json("/v1/tasks", task)
}
pub fn update_task(&self, id: i64, task: &CreateTask) -> Result<(), String> {
let body = serde_json::to_string(task).map_err(|error| error.to_string())?;
let response = self
.authorize(minreq::put(self.url(&format!("/v1/tasks/{id}"))))
.with_header("Content-Type", "application/json")
.with_body(body)
.send()
.map_err(transport_error)?;
check_status(response)
}
pub fn create_routine(&self, routine: &CreateRoutine) -> Result<(), String> {
self.send_json("/v1/routines", routine)
}