From 74b6e3ec7275164e2ecbf6f98b24357b2a9bb174 Mon Sep 17 00:00:00 2001 From: "Jose M. Guisado" Date: Thu, 6 Jul 2023 18:23:56 +0200 Subject: rest: add optional param "backup" for create_image This parameter is used by ogServer to instruct target client if image backup should be performed before image creation. This parameter is optional to preserve backward compatibility with webconsole (legacy web client) and avoid the need of updating any legacy client. Default is true if the REST request is missing this parameter. --- src/json.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/json.h') diff --git a/src/json.h b/src/json.h index 881a10a..9ac5c4e 100644 --- a/src/json.h +++ b/src/json.h @@ -91,6 +91,7 @@ struct og_msg_params { struct og_image image; const char *task_id; uint64_t flags; + bool backup; }; int og_json_parse_partition_setup(json_t *element, struct og_msg_params *params); -- cgit v1.2.3-18-g5258