/erp/sc/routing/storage/attribute/set{
"operation": {
"method": "POST",
"path": "/erp/sc/routing/storage/attribute/set"
},
"protocol": "HTTPS",
"host": "https://openapi.lingxing.com",
"rateLimit": {
"tokenBucketCapacity": 1,
"text": ""
},
"requestExample": {
"pa_id": 1,
"attr_name": "颜色",
"attr_values": [
{
"pai_id": 12,
"attr_value": "白色"
}
]
},
"responseExample": "{\n \"code\": 0,\n \"message\": \"success\",\n \"error_details\": [],\n \"request_id\": \"8D680B8B-3C6F-3E16-F055-73DC70EAD977\",\n \"response_time\": \"2024-07-29 15:35:49\",\n \"data\": [\n \t{\n \t\t\"pa_id\": 100,\n \t\t\"pai_id\": 1000\n \t}\n ]\n \"total\": 0\n}"
}| 序号 | 字段 | 名称 | 类型 | 默认值 | 必填 | 描述 |
|---|---|---|---|---|---|---|
| 1 | pa_id | 领星属性id | integer | — | 可选 | 领星属性id |
| 2 | attr_name | 属性名 | string | — | 必填 | 属性名 |
| 3 | attr_values | 属性值数组 | array<object> | — | 必填 | 属性值数组 |
| 3.1 | pai_id | 领星属性值id | integer | — | 可选 | 领星属性值id |
| 3.2 | attr_value | 属性值名称 | string | — | 必填 | 属性值名称 |
| 序号 | 字段 | 名称 | 类型 | 默认值 | 必填 | 描述 |
|---|---|---|---|---|---|---|
| 1 | code | 状态码 | integer | 0 | 必填 | 状态码,0 成功 |
| 2 | message | 消息提示 | string | success | 必填 | 消息提示 |
| 3 | error_details | 错误信息 | array<any> | — | 必填 | 错误信息 |
| 4 | request_id | 请求链路id | string | 8D680B8B-3C6F-3E16-F055-73DC70EAD977 | 必填 | 请求链路id |
| 5 | response_time | 响应时间 | string | 2020-05-18 11:23:47 | 必填 | 响应时间 |
| 6 | data | 响应数据 | array<object> | | 必填 | 响应数据 |
| 6.1 | pa_id | 属性名 | integer | 100 | 必填 | 属性名 |
| 6.2 | pai_id | 属性值 | integer | 1000 | 必填 | 属性值 |
领星ERP的接口:添加 / 编辑产品属性(/erp/sc/routing/storage/attribute/set),由轻易云数据集成平台 API 资产管理模块整理收纳,并随领星ERP版本更新同步更新。