Skip to main content
POST
Update Pool
Отправляйте только то, что меняется: daily_limits, publish_settings и target_weights сливаются по ключам, hosts и targets заменяют списки целиком, если переданы. К результату применяются те же проверки, что при создании. Статус здесь не меняется: пауза, возобновление и архив идут через POST /shoutouts/pools/{uuid}/status. Архивный пул отвечает 422 pool_not_editable.

Авторизации

X-API-Key
string
header
обязательно

Your API key from the Studio Dashboard

Параметры пути

uuid
string<uuid>
обязательно

Pool id: the pool_id value from the pools list.

Тело

application/json

Only the fields sent change. daily_limits, publish_settings and target_weights merge key by key; hosts and targets replace the lists.

name
string
Maximum string length: 100
formats
enum<string>[]
Доступные опции:
story,
post,
bio,
friends,
mass_dm
start_date
string<date>
end_date
string<date> | null
rotation_type
enum<string>
Доступные опции:
equal,
priority,
weighted
daily_limits
object
same_target_cooldown_days
integer
Требуемый диапазон: 1 <= x <= 90
friends_ttl_days
enum<integer>
Доступные опции:
3,
5,
7,
14,
30
bio_ttl_days
enum<integer>
Доступные опции:
3,
5,
7,
14,
30
post_ttl_days
enum<integer>
Доступные опции:
1,
3,
5,
7
publish_settings
object

How publications go out.

hosts
integer[]
targets
integer[]
target_weights
object

Ответ

Successful response

success
boolean
Пример:

true

data
object