Jump to content

How update products Rest API using the smal xml


Recommended Posts

Hello,

 

I must updating 10 000 product in my store.

Can I updane only one element  ? e.g. name.

 

 

<prestashop>

<product>

<id>4</id>

<name><language id="1" xlink:href="http://localhost/Presta/api/languages/1">Test name</language></name>

</product>

</prestashop>

 

If used this xml I lost all data with this product.

 

I must always send full xml ??? e.g.

 

<prestashop><product><id>4</id><id_manufacturer xlink:href="http://localhost/Presta/api/manufacturers/1">1</id_manufacturer><id_supplier xlink:href="http://localhost/Presta/api/suppliers/1">1</id_supplier><id_category_default xlink:href="http://localhost/Presta/api/categories/1">1</id_category_default><new/><cache_default_attribute>0</cache_default_attribute><id_default_image xlink:href="http://localhost/Presta/api/images/products/4/10" notFilterable="true">10</id_default_image><id_default_combination notFilterable="true"/><id_tax_rules_group xlink:href="http://localhost/Presta/api/tax_rule_groups/1">1</id_tax_rules_group><position_in_category notFilterable="true">0</position_in_category><type notFilterable="true">simple</type><id_shop_default>1</id_shop_default><reference>demo_4</reference><supplier_reference/><location/><width>0.000000</width><height>0.000000</height><depth>0.000000</depth><weight>0.000000</weight>

........

........

........

</product>

</prestashop>

 

 

Link to comment
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
×
×
  • Create New...