market
market.saveProductPhoto
The translation was generated automatically and may contain mistakes
Prepares an image loaded with market.getProductPhotoUploadServer to add to the community product.
Details in section Uploading Photos for Goods .
To call this method, you can use:
• user access token (access right required: market — this is issued in exceptional cases by a request to support at devsupport@corp.vk.com)
Parameters
upload_response
string
Mandatory parameter. Response with image data obtained from his загрузке на серверы ?1?’Контакте . Details in section Uploading Photos for Goods .
Result
Возвращает объект с полем photo_id which contains the ID of the uploaded image.
JSON
{"response":
{
"photo_id":457239024
}
}In the future, you can use this identifier to attach the image to the product. To do this, specify it in the parameters main_photo_id or photo_ids API Requests market.add or market.edit .
Error codes
1438
Market not enabled
Common errors may occur during execution