Skip to main content
PATCH
Update broadcast

Авторизації

Authorization
string
header
обов'язково

API token from the Zenedu dashboard

Параметри шляху

bot
integer
обов'язково

Bot ID

broadcast
integer
обов'язково

Broadcast ID

Тіло

application/json
name
string
Maximum string length: 255
text
string | null
settings
object

Message display settings

filters
object

Recipient filters

telegram_file_ids
integer[]

IDs of files registered via POST /api/v1/bot/{bot}/telegram-files to attach to this broadcast (photos, videos, documents, etc.). The given set replaces the current attachments entirely. Only files you uploaded that are not yet attached to anything are accepted — an already-attached, non-existent, or another user's id returns 422 (telegram_file_ids: Not found). Omit the field or send an empty array to leave attachments unchanged; null is rejected with 422. To remove an attachment, use DELETE …/broadcasts/{broadcast}/attachments/{file}.

Відповідь

Broadcast updated

data
object