diff --git a/h/schemas/api/group.py b/h/schemas/api/group.py index b076130b5f9..d877f1ff4bf 100644 --- a/h/schemas/api/group.py +++ b/h/schemas/api/group.py @@ -18,6 +18,7 @@ "description": {"type": "string", "maxLength": GROUP_DESCRIPTION_MAX_LENGTH}, "groupid": {"type": "string", "pattern": GROUPID_PATTERN}, "type": {"enum": ["private", "restricted", "open"]}, + "pre_moderated": {"type": "boolean"}, } diff --git a/tests/unit/h/views/api/groups_test.py b/tests/unit/h/views/api/groups_test.py index 4f8b02fca44..40c51b78258 100644 --- a/tests/unit/h/views/api/groups_test.py +++ b/tests/unit/h/views/api/groups_test.py @@ -337,6 +337,7 @@ def test_it_when_request_json_body_is_invalid( type="private", ), ), + ({"pre_moderated": True}, call.update(sentinel.group, pre_moderated=True)), ], ) def test_update(