summaryrefslogtreecommitdiff
path: root/makima/src/daemon/api/directive.rs
diff options
context:
space:
mode:
Diffstat (limited to 'makima/src/daemon/api/directive.rs')
-rw-r--r--makima/src/daemon/api/directive.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/makima/src/daemon/api/directive.rs b/makima/src/daemon/api/directive.rs
index fbd27fe..cd21692 100644
--- a/makima/src/daemon/api/directive.rs
+++ b/makima/src/daemon/api/directive.rs
@@ -112,6 +112,19 @@ impl ApiClient {
self.post_empty(&format!("/api/v1/directives/{}/steps/{}/skip", directive_id, step_id)).await
}
+ /// Batch add steps to a directive.
+ pub async fn directive_batch_add_steps(
+ &self,
+ directive_id: Uuid,
+ steps: serde_json::Value,
+ ) -> Result<JsonValue, ApiError> {
+ self.post(
+ &format!("/api/v1/directives/{}/steps/batch", directive_id),
+ &steps,
+ )
+ .await
+ }
+
/// Update the directive's goal.
pub async fn directive_update_goal(
&self,