market.edit
Edit product
| Name | Required | Type | Description |
|---|---|---|---|
| product_id | true | Product ID | |
| attachment | true | Json-formatted product content | |
| catalog_ids | false |
Authorization
Session is requiredRequired permissions
- GROUP_CONTENT
- VALUABLE_ACCESS
Requires strict mediablock order in an attachment field - title(text), description(text), photo (optional), product specific info. Example:
{"media":[
{"type":"text","text":"Название товара"},
{"type":"text","text":"Описание товара"},
{
"type": "photo",
"list": [
{"id": "photoToken1"},
{"id": "photoToken2"},
{"existing_photo_id": "1234", "group": true}
]
},
{"type":"product","price":1000,"lifetime": 30}
]}Default currency is russian ruble. Default lifetime is 30 days. It is possible to specify others: USD, KZT, UAH, GEL, UZS, KGS, AZN, USD, EUR. Example with 10$ price:
{"type":"product","price": 10, "currency": "USD", "lifetime": 30}If it’s required to set link to external site, it’s possible to specify partner_link field in product info:
{"type":"product","price":1000,"lifetime": 30,"partner_link":"https://example.com"}Photo uploading is similar with mediatopic. It also does not require commit invoking.

