From 0212091e7fa0b58f353a05cfc671bd544e08e07e Mon Sep 17 00:00:00 2001 From: "Jose M. Guisado" Date: Thu, 8 Apr 2021 11:09:38 +0200 Subject: #915 Add /center/add POST method Adds POST method to add centers (organizational unit), required payload parameter is the name, and an additional comment is optional. {"name": "ACME"} {"name": "ACME", "comment": "Some comment"} --- 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 978f7a8..d7bc072 100644 --- a/src/json.h +++ b/src/json.h @@ -81,6 +81,7 @@ struct og_msg_params { const char *profile; const char *cache; const char *cache_size; + const char *comment; bool echo; struct og_partition partition_setup[OG_PARTITION_MAX]; struct og_sync_params sync_setup; -- cgit v1.2.3-18-g5258