data = patch_data_template.substitute(mapping)
response = session.put(url=url, auth=auth, headers=headers, data=data)
if response.status_code not in [200, 201, 204]:
data = patch_data_template.substitute(mapping)
response = session.put(url=url, auth=auth, headers=headers, data=data)
if response.status_code not in [200, 201, 204]: