

def upsert(self, body, raise_exc=True, headers=False):
    'Performs an HTTP PUT to the server. This is an idempotent\n        call that will create the resource this navigator is pointing\n        to, or will update it if it already exists.\n\n        `body` may either be a string or a dictionary representing json\n        `headers` are additional headers to send in the request\n        '
    return self._request(PUT, body, raise_exc, headers)

dataset/ETHPy150Open deontologician/restnavigator/restnavigator/halnav.py HALNavigator.upsert/original