Update an announcement

PUT {{baseUrl}}/v3/announcements/:unique_id

Update an announcement

Updates information of a specific announcement before it starts or changes the status of a specific announcement after it starts. For the 2 different applications, refer to the request body below.

Note: Updating information of an announcement is possible only when the announcement status is scheduled, indicating it hasn't started yet.

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

Request Body

{"unique_id"=>"<string>", "action"=>"<string>", "announcement_group"=>"<string>", "create_channel"=>"<boolean>", "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>", "message.user_id"=>"<string>", "message.content"=>"<string>", "message.data"=>"<string>", "enable_push"=>"<boolean>", "scheduled_at"=>"<integer>", "end_at"=>"<integer>", "cease_at"=>"<string>", "resume_at"=>"<string>"}

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;status&quot;:&quot;\u003cstring\u003e&quot;,&quot;scheduled_at&quot;:&quot;\u003cnumber\u003e&quot;,&quot;completed_at&quot;:&quot;\u003cnumber\u003e&quot;,&quot;sent_user_count&quot;:&quot;\u003cnumber\u003e&quot;,&quot;open_count&quot;:&quot;\u003cnumber\u003e&quot;,&quot;open_rate&quot;:&quot;\u003cnumber\u003e&quot;}}