async def METHOD_NAME(request):
    """ Create a snapshot
    :Example:
        curl -X POST http://localhost:8081/fledge/snapshot/category
        curl -X POST http://localhost:8081/fledge/snapshot/schedule
        When auth is mandatory:
        curl -X POST http://localhost:8081/fledge/snapshot/category -H "authorization: <token>"
        curl -X POST http://localhost:8081/fledge/snapshot/schedule -H "authorization: <token>"
    """
    try:
        r_path = request.path.split('/fledge/snapshot/')
        table = _tables[r_path[1]]
        _storage = get_storage_async()  # from fledge.services.core.connect
        retval = await _storage.METHOD_NAME(table)
    except (StorageServerError, Exception) as ex:
        raise web.HTTPInternalServerError(reason='{} table snapshot could not be created. {}'.format(table, str(ex)))
    else:
        return web.json_response(retval["created"])