Update a scheduled message
This action updates information on a specific scheduled message. You can’t change the message type. Update operation should be done at least 5 minutes prior to the original scheduled time.
HTTP request
Parameters
The following table lists the parameters that this action supports.
Required
Parameter name | Type | Description |
---|---|---|
channel_url | string | Specifies the URL of the channel. |
scheduled_message_id | long | Specifies the unique ID of the scheduled message. |
Request body
The following table lists the properties of an HTTP request that this action supports for creating a scheduled text message, file message, and admin message.
List of properties for updating a scheduled text message
Optional
Property name | Type | Description |
---|---|---|
message | string | Specifies the content of the message. |
scheduled_at | long | The specified time that indicates when to send the message, in Unix milliseconds format. Since messages are scheduled in minutes, values less than seconds are discarded. The specified time can be between 5 minutes and 43,200 minutes (30 days) from the current time. |
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 |
send_push | boolean | Determines whether to send a push notification of the message to the channel members. This property only applies to group channels. (Default: |
mention_type | string | Specifies the mentioning method that indicates which user gets a notification of the message. Acceptable values are |
mentioned_user_ids[] | array of strings | Specifies an array of one or more IDs of the users who get a notification of the message. |
is_silent | boolean | Determines whether to send a message without updating some of the following channel properties. If set to |
mark_as_read | boolean | Determines whether to mark the message as read for the |
sorted_metaarray | array of objects | Specifies an array of one or more |
dedup_id | string | Specifies a unique ID for the message created by another system. In general, this property is used to prevent the same message data from getting inserted when migrating messages from another system to the Sendbird server. If specified, the server performs a duplicate check using the property value. |
apns_bundle_id | string | Specifies the bundle ID of the client app in order to send a push notification to iOS devices. You can find this in Settings > Chat > Push notifications > Push notification services on Sendbird Dashboard. |
apple_critical_alert_options | object | Specifies options that support Apple's critical alerts and checks whether the message is a critical alert. |
sound | string | Specifies the name of a sound file that is used for critical alerts. |
volume | float | Specifies the volume of the critical alert sound. The volume ranges from |
List of properties for updating a scheduled file message
Optional
Property name | Type | Description |
---|---|---|
url | string | Specifies the URL of the file hosted on the server of your own or other third-party companies. If this |
scheduled_at | long | The specified time that indicates when to send the message, in Unix milliseconds format. Since messages are scheduled in minutes, values less than seconds are discarded. The specified time can be between 5 minutes and 43,200 minutes (30 days) from the current time. |
file_name | string | If the |
file_size | int | If the |
file_type | string | If the |
thumbnails[] | array of strings | Specifies an array of one or more URLs of external thumbnail images that are generated from the image specified by the |
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 |
require_auth | boolean | Determines whether the files and thumbnail images in a message are only accessible by users who are in the same channel. This property is only effective when using the share encrypted files feature. This feature encrypts any type of uploaded files and the automatically-generated thumbnail images with |
send_push | boolean | Determines whether to send a push notification of the message to the channel members. This property only applies to group channels. (Default: |
mention_type | string | Specifies the mentioning method that indicates which user gets a notification of the message. Acceptable values are |
mentioned_user_ids[] | array of strings | Specifies an array of one or more IDs of the users who get a notification of the message. |
is_silent | boolean | Determines whether to send a message without updating some of the following channel properties. If set to |
mark_as_read | boolean | Determines whether to mark the message as read for the sender. If set to |
sorted_metaarray | array of objects | Specifies an array of one or more |
dedup_id | string | Specifies a unique ID for the message created by another system. In general, this property is used to prevent the same message data from getting inserted when migrating messages from another system to Sendbird server. If specified, the server performs a duplicate check using the property value. |
apns_bundle_id | string | Specifies the bundle ID of the client app in order to send a push notification to iOS devices. You can find this in Settings > Chat > Push notifications > Push notification services on Sendbird Dashboard. |
apple_critical_alert_options | object | Specifies options that support Apple critical alerts and checks whether the message is a critical alert. |
sound | string | Specifies the name of a sound file that is used for critical alerts. |
volume | float | Specifies the volume of the critical alert sound. The volume ranges from |
List of properties for updating a scheduled admin message
Optional
Property name | Type | Description |
---|---|---|
message | string | Specifies the content of the message. |
scheduled_at | long | The specified time that indicates when to send the message, in Unix milliseconds format. Since messages are scheduled in minutes, values less than seconds are discarded. The specified time can be between 5 minutes and 43,200 minutes (30 days) from the current time. |
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 |
send_push | boolean | Determines whether to send a push notification of the message to the channel members. Unlike text and file messages, a push notification of an admin message is not sent by default. This property only applies to group channels. (Default: |
mention_type | string | Specifies the mentioning method that indicates which user gets a notification of the message. Acceptable values are |
mentioned_user_ids[] | array of strings | Specifies an array of one or more IDs of the users who get a notification of the message. |
is_silent | boolean | Determines whether to send a message without updating some of the following channel properties. If set to |
sorted_metaarray | array of objects | Specifies an array of one or more |
dedup_id | string | Specifies a unique ID for the message created by another system. In general, this property is used to prevent the same message data from getting inserted when migrating messages from another system to the Sendbird server. If specified, the server performs a duplicate check using the property value. |
apns_bundle_id | string | Specifies the bundle ID of the client app in order to send a push notification to iOS devices. You can find this in Settings > Chat > Push notifications > Push notification services on Sendbird Dashboard. |
Response
If successful, this action returns a scheduled 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.