Update a message
Updates specific information on a message.
HTTP request
Parameters
The following table lists the parameters that this action supports.
Required
Parameter name | Type | Description |
---|---|---|
channel_type | string | Specifies the type of the channel. Acceptable values are |
channel_url | string | Specifies the URL of the target channel. |
message_id | long | Specifies the unique ID of the message to update. |
Request body
The following tables list the properties of an HTTP request that this action supports for updating a text message, file message, and admin message.
List of properties for updating a text message
Required | Type | Description |
---|---|---|
message_type | string | Specifies the type of the message. The value of |
Optional | Type | Description |
---|---|---|
message | string | Specifies the content of the message. |
custom_type | string | Specifies a custom message type used for message grouping. The length is limited to 128 characters. |
data | string | Specifies additional message information such as custom font size, font type, or |
mention_type | string | Specifies whether to mention specific users or all users in the channel. Acceptable values are |
mentioned_user_ids[] | array of strings | Specifies an array of IDs of the users to mention in the message. This property is used only when |
List of properties for updating a file message
Properties
Required | Type | Description |
---|---|---|
message_type | string | Specifies the type of the message. The value of |
Optional | Type | Description |
---|---|---|
url | string | Specifies the URL of the file hosted on the server of your own or other third-party companies. |
custom_type | string | Specifies a custom message type used for message grouping. The length is limited to 128 characters. |
data | string | Specifies additional message information regarding the file in |
mention_type | string | Specifies whether to mention specific users or all users in the channel. Acceptable values are |
mentioned_user_ids[] | array of strings | Specifies an array of IDs of the users to mention in the message. This property is used only when |
List of properties for updating an admin message
Properties
Required | Type | Description |
---|---|---|
message_type | string | Specifies the type of the message. The value of |
Optional | Type | Description |
---|---|---|
message | string | Specifies the content of the message. |
custom_type | string | Specifies a custom message type used for message grouping. The length is limited to 128 characters. |
data | string | Specifies additional message information such as custom font size, font type, or |
mention_type | string | Specifies whether to mention specific users or all users in the channel. Acceptable values are |
mentioned_user_ids[] | array of strings | Specifies an array of IDs of the users to mention in the message. This property is used only when |
Response
If successful, this action returns an updated message resource in the response body.
In the case of an error, an error object is returned. A detailed list of error codes is available here.