def METHOD_NAME(payload, type, kind, action, hour, minute):
    try:
        custom_parameters = request.get_json()
    except:
        custom_parameters = None
    return (
        json.dumps(
            app.scheduler.add_job(
                type,
                kind,
                action,
                hour,
                minute,
                kwargs=custom_parameters.pop("kwargs", None),
            )
        ),
        200,
        {"Content-Type": "application/json"},
    )