本文档由 Apifox 自动生成,推荐使用 Apifox - API 文档、API 调试、API Mock、API 自动化测试!
products.read_write
- Products Read and WriteAuthorization: Bearer ********************
with=details
to fetch list of product option templates with details
object.with=details
query paramter is passed{
"name": "image url",
"display_type": "image",
"translations": {
"en": {
"name": "color"
},
"fr": {
"name": "couleur"
}
},
"details": [
{
"name": "profile pic",
"is_default": true,
"display_value": "fb.com",
"translations": {
"en": {
"name": "pic"
},
"fr": {
"name": "pic"
}
}
}
]
}
curl --location --request POST 'https://echo.apifox.com/anything/products/options/templates' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "image url",
"display_type": "image",
"translations": {
"en": {
"name": "color"
},
"fr": {
"name": "couleur"
}
},
"details": [
{
"name": "profile pic",
"is_default": true,
"display_value": "fb.com",
"translations": {
"en": {
"name": "pic"
},
"fr": {
"name": "pic"
}
}
}
]
}'
{
"status": 201,
"success": true,
"data": [
{
"id": 1473353380,
"name": "اللون",
"type": "radio",
"display_type": "color",
"translations": [
{
"id": 1473353380,
"name": "color",
"locale": "en"
},
{
"id": 566146469,
"name": "color",
"locale": "fr"
}
]
}
]
}
扫码加入 Apifox 微信交流群
在这里,获得 Apifox 使用上的任何帮助,快速上手让你的研测效率得到大幅提升