'replace the current object with the content'

def _replace_content(self, resource, rname, content, force=False, sep='.'):

    res = self._get(resource, rname)
    if (not res['results']):
        return res
    fname = Utils.create_tmpfile((rname + '-'))
    yed = Yedit(fname, res['results'][0], separator=sep)
    changes = []
    for (key, value) in content.items():
        changes.append(yed.put(key, value))
    if any([change[0] for change in changes]):
        yed.write()
        atexit.register(Utils.cleanup, [fname])
        return self._replace(fname, force)
    return {'returncode': 0, 'updated': False}
