本文档由 Apifox 自动生成,推荐使用 Apifox - API 文档、API 调试、API Mock、API 自动化测试!
id
as a path parameter.products.read_write
- Products Read and WriteAuthorization: Bearer ********************
with=details
query paramter is passed{
"name": "اللون",
"display_type": "color",
"translations": {
"en": {
"name": "color"
},
"fr": {
"name": "color"
}
},
"details": [
{
"name": "احمر غامق",
"is_default": false,
"display_value": "#3245",
"translations": {
"en": {
"name": "dark red"
},
"fr": {
"name": "dagc ged"
}
}
}
]
}
curl --location --request PUT 'https://echo.apifox.com/anything/products/options/templates/956236464' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "اللون",
"display_type": "color",
"translations": {
"en": {
"name": "color"
},
"fr": {
"name": "color"
}
},
"details": [
{
"name": "احمر غامق",
"is_default": false,
"display_value": "#3245",
"translations": {
"en": {
"name": "dark red"
},
"fr": {
"name": "dagc ged"
}
}
}
]
}'
{
"status": 200,
"success": true,
"data": {
"id": 956236464,
"name": "color 1",
"feature_type": "text",
"translations": [
{
"id": 1473353380,
"name": "color",
"locale": "en"
},
{
"id": 566146469,
"name": "color",
"locale": "fr"
}
]
}
}
扫码加入 Apifox 微信交流群
在这里,获得 Apifox 使用上的任何帮助,快速上手让你的研测效率得到大幅提升