Skip to main content
PATCH
Edit a message

Authorizations

Authorization
string
header
required

Bot token (wc_bot_live_… or wc_bot_test_…) from the OAuth install

Path Parameters

id
string
required

Message id, gmsg_ or dmsg_ prefixed, as POST /v1/messages returned it

Body

application/json

The new content

text
string
required
Required string length: 1 - 4000
blocks
PublicApiBlock · object[]

Replaces the old blocks. Leave it out to remove them.

Maximum array length: 50
metadata
object

Merged into the stored metadata, key by key. At most 4 KB after the merge.

Response

The edited message

message
object
required
ok
enum<boolean>
required
Available options:
true