diff --git a/app/service/rest.py b/app/service/rest.py index 721a8a914..4467c0720 100644 --- a/app/service/rest.py +++ b/app/service/rest.py @@ -216,6 +216,8 @@ def create_service(): raise InvalidRequest(errors, status_code=400) data.pop("service_domain", None) + data["total_message_limit"] = current_app.config["TOTAL_MESSAGE_LIMIT"] + # validate json with marshmallow service_schema.load(data)