Редактировать контент¶
POST /api/v1/content/author/{content_id}
Метод позволяет редактировать информацию о контенте.
Максимум 50 запросов в секунду
Параметры¶
| Имя | Расположение | Тип | Обязательный | Описание |
|---|---|---|---|---|
| content_id | path | integer | да | ID контента |
Тело запроса: UpdateContentRequest
Ответ: Content
Примеры вызова¶
import { Configuration, DefaultApi } from 'wildberries-sdk';
const api = new DefaultApi(new Configuration({
basePath: 'https://devapi-digital.wildberries.ru',
apiKey: process.env.WB_API_TOKEN,
}));
const result = await api.contentUpdate({ content_id: ..., updateContentRequest: { ... } });
console.log(result);
use wildberries_sdk_wbd::apis::{configuration::Configuration, configuration::ApiKey, default_api};
let mut config = Configuration::new();
config.base_path = "https://devapi-digital.wildberries.ru".to_owned();
config.api_key = Some(ApiKey { prefix: None, key: std::env::var("WB_API_TOKEN").unwrap() });
let result = default_api::content_update(&config, ...).await?;