You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am attempting to batch update prices for products, this is just a small example to test updating using the batch method:
When I swap the POST for PUT I get a 200, but nothing gets updated
I am attempting to batch update prices for products, this is just a small example to test updating using the batch method:
When I swap the POST for PUT I get a 200, but nothing gets updated
`wcapi = WCAPI(
url=site_url,
consumer_key=wc_ck,
consumer_secret=wc_sk,
wp_api=True,
version="wc/v3",
query_string_auth=True
)
test_json = {
"update": [
{
"id": 1675,
"price": "8042.0",
"regular_price": "8042.0"
}
]
}
print(wcapi.post("products/batch", test_json).json())`
This returns a 404:
{'code': 'rest_no_route', 'message': 'No route was found matching the URL and request method.', 'data': {'status': 404}}
However, when I use get in something like this it works just fine and returns products
wcapi.get("products").json()
My API key is read/write enabled.
Any help is appreciated. Thanks
The text was updated successfully, but these errors were encountered: