Skip to content

Edit message​

PATCH
/channels/{channelId}/messages/{messageId}

Authorizations​

Authorization
TypeHTTP (bearer)

Parameters​

Path Parameters

channelId*
Typeinteger
Required
format"int64"
messageId*
Typeinteger
Required
format"int64"

Request Body​

application/json
JSON
{
"content": "string",
"attachments": [
0
]
}

Responses​

OK

application/json
JSON
{
"messages": [
{
"id": 0,
"content": "string",
"author": null,
"authorId": 0,
"channel": null,
"channelId": 0,
"attachments": [
{
"id": 0,
"uuid": "string",
"filename": "string",
"contentType": "string",
"flags": 0
}
],
"createdAt": 0
}
]
}

Playground​

Server
Authorization
Variables
Key
Value
Body

Samples​

cURL
JavaScript
PHP
Python