problem with REST Api
-
Hello,
I’m trying to develop a rest client with api v2. I can get products, categories, etc, but I can’t post or put anything. The error I get is this:
{“code”:”rest_invalid_json”,”message”:”El cuerpo JSON no v\u00e1lido pas\u00f3.”
,”data”:{“status”:400,”json_error_code”:4,”json_error_message”:”Syntax error”}}c
url: (3) [globbing] unmatched close brace/bracket in column 8and this is the curl command:
D:\Instaladores\curl>curl -X POST https://rcsoftware.test/wp-json/wc/v2/products
/categories -u ck…:cs…. -H “Content-Type: application/json” -d ‘{“name”: “Test Category”}’ –insecureAny help?
Thanks!
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
The topic ‘problem with REST Api’ is closed to new replies.