'Save the visualiztion info (revision, type, config, title, etc.) to
the Visualization at `id` or to a new Visualization if `id` is None.
Uses POST/redirect/GET after a successful save, redirecting to GET.'

def _POST_to_saved(self, trans, id=None, revision=None, type=None, config=None, title=None, **kwargs):

    DEFAULT_VISUALIZATION_NAME = 'Unnamed    Visualization'
    if ((type is None) or (config is None)):
        return HTTPBadRequest('A    visualization    type    and    config    are    required    to    save    a    visualization')
    if isinstance(config, string_types):
        config = loads(config)
    title = (title or DEFAULT_VISUALIZATION_NAME)
    if (id is not None):
        self.get_visualization(trans, id, check_ownership=True, check_accessible=False)
    returned = self.save_visualization(trans, config, type, id, title)
    render_url = web.url_for(controller='visualization', action='saved', id=returned.get('vis_id'))
    return trans.response.send_redirect(render_url)
