One endpoint handles product creation, update, and deletion. Use pid and status to select the operation. If picture is omitted, the category image is inherited; if still empty, /system/logo.png is used for new products.
请求参数
Query 参数
Header 参数
请求示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl--location--request POST 'https://api.en.gdlykj.com/adminapi/openapi_saveProduct?cid=172&pname=Test%20Product%20Name&pid=606&picture=%2Fupload%2Fproduct.png&mes_pid=A1&pcode=aaa&brand=Brand.&status=1&ispartiallathe=undefined&partialLathes=undefined' \
--header'token: 49895b412b4a87517f97ba31f1934a8f'