import http.client

conn = http.client.HTTPConnection("api.marketcloud.it")

payload = "{\"full_name\": \"Jon Snow\",\"country\" : \"Westeros\", \"state\": \"The North\", \"city\": \"the Wall\", \"address1\": \"the Wall, 1\", \"postal_code\": \"54321\"}"

headers = {
    'authorization': "YourPublicKey:YourToken",
    'accept': "application/json",
    'content-type': "application/json"
    }

conn.request("PUT", "/v0/addresses/:id", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
91f3712c4220f832bf1a7a515c4e4d2aab91a534
<mask token>

<mask token>
conn.request('PUT', '/v0/addresses/:id', payload, headers)
<mask token>
print(data.decode('utf-8'))

<mask token>
conn = http.client.HTTPConnection('api.marketcloud.it')
payload = (
    '{"full_name": "Jon Snow","country" : "Westeros", "state": "The North", "city": "the Wall", "address1": "the Wall, 1", "postal_code": "54321"}'
    )
headers = {'authorization': 'YourPublicKey:YourToken', 'accept':
    'application/json', 'content-type': 'application/json'}
conn.request('PUT', '/v0/addresses/:id', payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode('utf-8'))

import http.client
conn = http.client.HTTPConnection('api.marketcloud.it')
payload = (
    '{"full_name": "Jon Snow","country" : "Westeros", "state": "The North", "city": "the Wall", "address1": "the Wall, 1", "postal_code": "54321"}'
    )
headers = {'authorization': 'YourPublicKey:YourToken', 'accept':
    'application/json', 'content-type': 'application/json'}
conn.request('PUT', '/v0/addresses/:id', payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode('utf-8'))

import http.client

conn = http.client.HTTPConnection("api.marketcloud.it")

payload = "{\"full_name\": \"Jon Snow\",\"country\" : \"Westeros\", \"state\": \"The North\", \"city\": \"the Wall\", \"address1\": \"the Wall, 1\", \"postal_code\": \"54321\"}"

headers = {
    'authorization': "YourPublicKey:YourToken",
    'accept': "application/json",
    'content-type': "application/json"
    }

conn.request("PUT", "/v0/addresses/:id", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))