Schedule an announcement

POST {{baseUrl}}/v3/announcements

Schedule an announcement

Schedules a new announcement. You can also schedule an announcement in the Sendbird Dashboard.

https://sendbird.com/docs/chat/v3/platform-api/guides/announcements#2-schedule-an-announcement

Request Body

{"message"=>"<string>", "message.type"=>"<string>", "message.user_id"=>"<string>", "message.content"=>"<string>", "target_at"=>"<string>", "target_list"=>["<string>", "<string>"], "target_channel_type"=>"<string>", "unique_id"=>"<string>", "message.custom_type"=>"<string>", "message.data"=>"<string>", "create_channel"=>"<boolean>", "announcement_group"=>"<string>", "create_channel_options"=>"<string>", "create_channel_options.name"=>"<string>", "create_channel_options.cover_url"=>"<string>", "create_channel_options.custom_type"=>"<string>", "create_channel_options.data"=>"<string>", "create_channel_options.distinct"=>"<string>", "scheduled_at"=>"<integer>", "cease_at"=>"<string>", "resume_at"=>"<string>", "end_at"=>"<integer>", "enable_push"=>"<boolean>", "assign_sender_as_channel_inviter"=>"<boolean>"}

HEADERS

KeyDatatypeRequiredDescription
Api-Tokenstring(Required)
Content-Typestring
Acceptstring

RESPONSES

status: OK

{&quot;unique_id&quot;:&quot;\u003cstring\u003e&quot;,&quot;announcement_group&quot;:&quot;\u003cstring\u003e&quot;,&quot;message&quot;:{&quot;type&quot;:&quot;\u003cstring\u003e&quot;,&quot;custom_type&quot;:&quot;\u003cstring\u003e&quot;,&quot;user_id&quot;:&quot;\u003cstring\u003e&quot;,&quot;content&quot;:&quot;\u003cstring\u003e&quot;,&quot;data&quot;:&quot;\u003cstring\u003e&quot;},&quot;enable_push&quot;:&quot;\u003cboolean\u003e&quot;,&quot;target_at&quot;:&quot;\u003cstring\u003e&quot;,&quot;target_user_count&quot;:&quot;\u003cnumber\u003e&quot;,&quot;target_channel_count&quot;:&quot;\u003cnumber\u003e&quot;,&quot;target_channel_type&quot;:&quot;\u003cstring\u003e&quot;,&quot;create_channel_options&quot;:{&quot;distinct&quot;:&quot;\u003cboolean\u003e&quot;,&quot;data&quot;:&quot;\u003cstring\u003e&quot;,&quot;name&quot;:&quot;\u003cstring\u003e&quot;,&quot;cover_url&quot;:&quot;\u003cstring\u003e&quot;,&quot;custom_type&quot;:&quot;\u003cstring\u003e&quot;},&quot;status&quot;:&quot;\u003cstring\u003e&quot;,&quot;scheduled_at&quot;:&quot;\u003cnumber\u003e&quot;,&quot;cease_at&quot;:&quot;\u003cstring\u003e&quot;,&quot;resume_at&quot;:&quot;\u003cstring\u003e&quot;,&quot;completed_at&quot;:&quot;\u003cnumber\u003e&quot;,&quot;sent_user_count&quot;:&quot;\u003cnumber\u003e&quot;,&quot;sent_channel_count&quot;:&quot;\u003cnumber\u003e&quot;,&quot;open_count&quot;:&quot;\u003cnumber\u003e&quot;,&quot;open_rate&quot;:&quot;\u003cnumber\u003e&quot;}