• 0
Sign in to follow this  
Elvis

Problema para anunciar Attribute [BRAND] to be modified

Question

Estou com problemas para anunciar, o ml gerar um erro de validação na marca do produto mais o mesmo e do tipo string de digitação live

 

Validation error validation_error Attribute [BRAND] to be modified - value_id [null] will be [18662]

https://api.mercadolibre.com/categories/MLB270416/attributes

 

{
    "id": "BRAND",
    "name": "Marca",
    "tags": {
      "catalog_required": true
    },
    "hierarchy": "PARENT_PK",
    "relevance": 1,
    "value_type": "string",
    "value_max_length": 255,
    "attribute_group_id": "OTHERS",
    "attribute_group_name": "Outros"
}

 

{
    "title": "Mem\u00f3ria Patriot Viper Steel 8GB DDR4 3000MHz PVS48G300C6",
    "currency_id": "BRL",
    "listing_type_id": "gold_pro",
    "site_id": "MLB",
    "category_id": "MLB1694",
    "available_quantity": 250,
    "price": "282.82",
    "buying_mode": "buying_mode",
    "condition": "new",
    "warranty": "365",
    "description": {
        "plain_text": "xxxxxxxxxxxx"
    },
    "pictures": [{
            "source": "xxxxx"
        }
    ],
    "shipping": {
        "mode": "me2",
        "free_shipping": true,
        "free_methods": []
    },
    "seller_custom_field": "16291",
    "attributes": [{
            "id": "BRAND",
            "value_name": "Patriot"
        }, {
            "id": "LINE",
            "value_name": "Viper Steel"
        }, {
            "id": "MODEL",
            "value_name": "PVS48G300C6"
        }, {
            "id": "RAM_MEMORY_MODULE_TOTAL_CAPACITY",
            "value_name": "8 GB"
        }, {
            "id": "MEMORY_MODULES",
            "value_name": "1 x 8 GB"
        }, {
            "id": "COLOR",
            "value_name": "Cinza-escuro"
        }, {
            "id": "MEMORY_TECHNOLOGY",
            "value_name": "DDR4 SDRAM"
        }, {
            "id": "MEMORY_FORMAT",
            "value_name": "DIMM"
        }, {
            "id": "RAM_MEMORY_MODULE_SPEED",
            "value_name": "300 MHz"
        }, {
            "id": "APPLICATION",
            "value_name": "Computadores de mesa"
        }, {
            "id": "IS_GAMER",
            "value_name": "Sim"
        }, {
            "id": "GTIN",
            "value_name": "814914025451"
        }, {
            "id": "SELLER_SKU",
            "value_name": "16291"
        }, {
            "id": "SELLER_SKU",
            "value_name": "16291"
        }
    ]
}
 

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 1

Você precisa passar o value_id da marca e o value_name tbm.
Fica mais ou menos assim:
{"id": "BRAND", "value_id": "9344", "value_name": "Apple"}

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this