更新产品
PUT
/erp-product/:id
接口描述
用于更新产品信息。
请求头
参数名
类型
描述
必填
Device-Type
string
设备类型,示例:web
必填
Authorization
string
Token,示例:a3f2f638-5035-4bbe-ba12-8a5a6469ef2f
必填
请求参数
application/json参数名
类型
描述
必填
id
int
产品ID,示例:94
必填
image
string
产品图片,示例:
可选
name
string(100)
产品名称,示例:印度带头虾
必填
product_no
string(20)
产品编号,示例:,默认:当前毫秒时间戳+随机数(0-9)
可选
price_unit
string
价格单位,示例:USD
可选
cost_price
string
成本价,示例:0.00
可选
market_price
string
市场价,示例:0.00
可选
is_spec
int
是否多规格,示例:1,可选值:{"0":"否","1":"是"}
可选
category_id
int
产品分类ID,示例:1
必填
unit
string(10)
产品单位,示例:
可选
响应参数
application/json参数名
类型
描述
必填
id
int
示例:94
必填
image
string
示例:
必填
name
string
示例:印度带头虾
必填
product_no
string
示例:163057339160877
必填
price_unit
string
价格单位,示例:USD
必填
cost_price
string
示例:0.00
必填
market_price
string
示例:0.00
必填
is_spec
int
示例:1
必填
category_id_path
string
示例:1
必填
category_id
int
示例:1
必填
unit
string
产品单位,示例:
必填
create_time
string
示例:2021-09-02 17:03:11
必填
update_time
string
示例:2021-09-02 17:03:11
必填
id
int
示例:199
必填
product_id
int
示例:94
必填
spec_item_ids
string
示例:980:989
必填
product_no
string
示例:163057339160877-18
必填
cost_price
string
示例:0.00
必填
market_price
string
示例:0.00
必填