Python requests PUT and Shopify API problem

Highlighted
New Member
1 0 0

Hi, i'm beginner into shopify's admin API. I succed to get requests on products. I'm trying to use the PUT method to edit a product's meta description. I followed some exemples found on internet, tryed lot of stuff but each time i got a 200 response but nothing happen. Can someone tell me what i've donne wrong ? here is my code, i'm using python3 requests and a private app.

data = {
  "product": {
    "id": 4116933410882,
    "metafields_global_description_tag": "Bran<rteed zadazd deszdazfsfecription"
	}
}

response = requests.put(
	'https://' + username + ':' + password + '@' + shop + '.myshopify.com/admin/api/' + api_version + '/#4116933410882.json',
	headers={'Content-Type': 'application/json'},
	json=data,
	)

print(response)
0 Likes
Shopify Staff
Shopify Staff
387 13 46

Hi, @Pxppxr 


Elle here from Shopify. I've moved your post to our API boards so you can receive a better response!


Cheers, 
Elle

Elle | Social Care @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog

0 Likes