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

The fields to change

A JSON merge patch (RFC 7396). Send at least one field. A field you leave out keeps its value, null removes it, and a value replaces it.

blocks
Block · object[] | null

Replaces the blocks. null removes them.

Maximum array length: 50
metadata
object | null

Merged into the stored metadata key by key, nested objects too. A key set to null is removed, and null for the whole field removes all of it. At most 4 KB after the merge.

text
string

Replaces the text. It can't be null: a message always has text. Mentions are written as for a send; they replace the old mentions, and an edit notifies nobody. Leave text out to keep the text and its mentions.

Required string length: 1 - 4000

Response

The edited message

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