Updates a product in the database.
HTTP Operation
HTTP POST
URL
https://www.mblast.com/api/rest/v.01/product.update.aspx
Parameters
See the documentation for creating REST queries.
| Parameter | Data type | Description |
|---|
| api | api (required) | mBLAST API assigned to developer. |
| recordID | integer (required) | The recordID assigned to the product. |
| name | string (required) | The name of the product. |
| company | companyID (required) | The company ID of the company which manufacturers the product. |
| description | string (required) | The description of the product. |
| modelnumber | string | The model number of the product. |
| partnumber | string | The manufacturer part number of the product. |
| upc | string | The UPC or EAN code for the product. |
| price | string | The price of the product. |
| pricecomments | string | Comments about the price of the product. |
| link | string | A URL pointing to a web page containing information about the product. |
| imagelink | string | A URL pointing to an image of the product. |
| contact | personID | The person ID of the sales contact for the product. |
| phone | phone | The sales phone number for the product. |
| keywords | string | Keywords associated with the company, separated by commas. |
Response Elements
Response are returned in an XML document.
| Field | Description |
|---|
| response | Contains the query response. |
| product | Contains the individual product information. |
| recordID | The recordID assigned to the product. |
| name | The name of the product. |
| company | The company ID of the company which manufacturers the product. |
| description | The description of the product. |
| modelnumber | The model number of the product. |
| partnumber | The manufacturer part number of the product. |
| upc | The UPC or EAN code for the product. |
| price | The price of the product. |
| pricecomments | Comments about the price of the product. |
| link | A URL pointing to a web page containing information about the product. |
| imagelink | A URL pointing to an image of the product. |
| contact | The person ID of the sales contact for the product. |
| phone | The sales phone number for the product. |
| keywords | Keywords associated with the company, separated by commas. |
Example response
The following is an example of the response returned by the Product.Update method.
<?xml version="1.0" encoding="UTF-8"?>
<response>
<product>
<recordID>12345</recordID>
<name>Wireless-G Cable Gateway</name>
<company>12345</company>
<description>
The Linksys Wireless-G Cable Gateway is the
all-in-one solution for Internet connectivity in
your home -- a Cable Modem, Internet-sharing
Router, Switch, and Access Point in one box!
</description>
<modelnumber>WCG200</modelnumber>
<partnumber>WCG200</partnumber>
<price>$149.99</price>
<link>http://www.linksys.com/WCG200</link>
<imagelink>http://www.linksys.com/WCG200/image.png</imagelink>
<contact>23456</contact>
<phone>+1 (555) 555-1212</phone>
<keywords>wireless-G, DOCSIS, cable modem</keywords>
</product>
</response>
Errors
Product.Update returns the standard errors. There are no errors specific to this method.