summaryrefslogtreecommitdiffstats
path: root/src/rest.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rest.c')
-rw-r--r--src/rest.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rest.c b/src/rest.c
index f539426..65cdf56 100644
--- a/src/rest.c
+++ b/src/rest.c
@@ -2223,6 +2223,7 @@ static int og_cmd_create_image(json_t *element, struct og_msg_params *params)
snprintf(new_image_id, sizeof(new_image_id), "%u", err);
params->id = new_image_id;
+ json_object_set_new(element, "id", json_string(params->id));
}
clients = json_copy(element);