Product Update Simple Assets
- 1 Minute to read
- DarkLight
Product Update Simple Assets
- 1 Minute to read
- DarkLight
Article summary
Did you find this summary helpful?
Thank you for your feedback
To update an asset, mention the following in the postman and then click Send.
POST
Query Parameters
Expand to see the parameters and description
Parameter | Parameter Type | Data Type | Accepted Values | Description |
vocabularyId | Recommended (Conditionally Optional) | String | GUID | If a valid companyId is provided, vocabularyId is not Required |
companyId | Required (Conditionally Optional) | String | GUID | If a valid vocabularyId is provided, companyId is not Required |
skipCount | Optional | Integer | >=0; (skipCount+takeCount)<10,000 | Used in combination with takeCount to paginate large numbers of product records. Quantity of records to skip before you start taking products. Whatever value is used for the takeCount, add to skipCount for the subsequent call |
takeCount | Optional | Integer | >= 0; Max: 500 | Sets quantity of results to return at one time. Used for parsing large numbers of product records |
useLens | Optional | Boolean | true/false | Based on target party id as contained in Post body, will return effective values only includes all values. Defaults to true. Ex. Using a recipient ID with useLens as true will return the product data applicable to that recipient |
flattenLensedProduct | Optional | Boolean | true/false | Allows for flattening search results. Using this parameter you'll get only the recipient overrides. |
locale | Optional | enum | ISO 639-1 standard | Stores the value passed in a language specific variant. Facilitates different values in different langugages on the same attribute. Defaults to en-US. |
shouldIncludeMissingVocabularyAttributes | Optional | Boolean | true/false | Will determine if attributes not included in your company vocabulary will be returned in search results. Defaults to setting in customer vocabulary, else defaults to false. If set to true, attributes not in vocabulary will return with its GUID. |
Headers
Authorization: Specify required Auth Token in the header.
Request
Tip: When importing an asset shared across multiple products, include the SourceUrl value to prevent duplication.
{
"ProductImportData": {
"ProductsToImport": [
{
"ImportMode": "CreateOrUpdate",
"ProductIdentifierValue": "00053883224346",
"PackageType": "BaseUnit",
"Values": [
{
"Name": "Short Description",
"ValuesByLocale": {
"": "19 Gallon Storage Container"
}
}
],
"AssetValues": [
{
"Name": "Front - Center - Elevated",
"ValuesByLocale": {
"en-US": {
"Name": "ac_sy300.jpg",
"Url": "https://m.media-amazon.com/images/I/612yLr7777S._AC_SY300_SX300_.jpg",
// If sourceUrl is null, then it won't try to find existing asset already imported.
"SourceUrl": "https://m.media-amazon.com/images/I/612yLr7777S._AC_SY300_SX300_.jpg",
"Format": "jpeg"
}
},
// "Recipient": "d2257835-5514-4032-841c-cc95245955f5",
"Delete": false,
"IsExplicitNullValue": false
}
]
}
],
"ProductIdentifierProperty": "GTIN"
},
"ErrorMode": "Fail"
}
Response 200 OK
{
"VerboseResponse": false,
"OverallResult": "Success",
"Errors": [],
"ResultsByActionType": {
"ProductImportData": [
{
"Result": "Success",
"IdentifierValue": "00053883224346",
"MatchedId": "6a96a21c-0aa0-492f-bb95-c648bbd2108c",
"Errors": []
}
]
}
}
Was this article helpful?