Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Function: setAttribute
set one attribute for products. For indivFieldsList use dstTable=TABLE_PRODUCTS_ATTRIBUTES
Request
userxsd:string
passxsd:string
attributeItemtns:attributeItem
{
"function":"setAttribute",
"paras":{
    "user":"",
    "pass":"",
    "attributeItem":{
        "attributes_id":0,
        "attributes_parent":0,
        "attributes_ext_id":0,
        "attributes_ext_parent_id":0,
        "attributes_model":"",
        "attributes_image":"",
        "sort_order":0,
        "status":0,
        "attributes_name":{
            "de":"",
            "en":""
        },
        "attributes_desc":{
            "de":"",
            "en":""
        },
        "indivFieldsList":[{
                "dstTable":"",
                "sqlFieldName":"",
                "sqlFieldType":"",
                "value":"",
                "langValue":{
                    "de":"",
                    "en":""
                }
            }        ]
    }

}}
Response
resulttns:attributeResultItem
{
    "result":{
        "attributes_id":0,
        "attributes_ext_id":0,
        "result":true,
        "message":""
    }
}