@@ -65,7 +65,9 @@ class Messaging extends Service {
6565
6666 /// Update email
6767 ///
68- /// Update an email message by its unique ID.
68+ /// Update an email message by its unique ID. This endpoint only works on
69+ /// messages that are in draft status. Messages that are already processing,
70+ /// sent, or failed cannot be updated.
6971 ///
7072 Future <models.Message > updateEmail ({required String messageId, List <String >? topics, List <String >? users, List <String >? targets, String ? subject, String ? content, bool ? draft, bool ? html, List <String >? cc, List <String >? bcc, String ? scheduledAt, List <String >? attachments}) async {
7173 final String apiPath = '/messaging/messages/email/{messageId}' .replaceAll ('{messageId}' , messageId);
@@ -140,7 +142,9 @@ class Messaging extends Service {
140142
141143 /// Update push notification
142144 ///
143- /// Update a push notification by its unique ID.
145+ /// Update a push notification by its unique ID. This endpoint only works on
146+ /// messages that are in draft status. Messages that are already processing,
147+ /// sent, or failed cannot be updated.
144148 ///
145149 Future <models.Message > updatePush ({required String messageId, List <String >? topics, List <String >? users, List <String >? targets, String ? title, String ? body, Map ? data, String ? action, String ? image, String ? icon, String ? sound, String ? color, String ? tag, int ? badge, bool ? draft, String ? scheduledAt, bool ? contentAvailable, bool ? critical, enums.MessagePriority ? priority}) async {
146150 final String apiPath = '/messaging/messages/push/{messageId}' .replaceAll ('{messageId}' , messageId);
@@ -210,7 +214,9 @@ class Messaging extends Service {
210214
211215 /// Update SMS
212216 ///
213- /// Update an SMS message by its unique ID.
217+ /// Update an SMS message by its unique ID. This endpoint only works on
218+ /// messages that are in draft status. Messages that are already processing,
219+ /// sent, or failed cannot be updated.
214220 ///
215221 Future <models.Message > updateSms ({required String messageId, List <String >? topics, List <String >? users, List <String >? targets, String ? content, bool ? draft, String ? scheduledAt}) async {
216222 final String apiPath = '/messaging/messages/sms/{messageId}' .replaceAll ('{messageId}' , messageId);
0 commit comments