diff --git a/chat/client-libraries/cloud/update_message_app_cred.py b/chat/client-libraries/cloud/update_message_app_cred.py index b9081dc4..40dda760 100644 --- a/chat/client-libraries/cloud/update_message_app_cred.py +++ b/chat/client-libraries/cloud/update_message_app_cred.py @@ -32,11 +32,15 @@ def update_message_with_app_cred(): message = { # Replace SPACE_NAME and MESSAGE_NAME here "name": "spaces/SPACE_NAME/messages/MESSAGE_NAME", - "text": "Updated with app credential!" + "text": "Text updated with app credential!", + "cards_v2" : [{ "card": { "header": { + "title": 'Card updated with app credential!', + "image_url": 'https://fonts.gstatic.com/s/i/short-term/release/googlesymbols/info/default/24px.svg' + }}}] }, # The field paths to update. Separate multiple values with commas or use # `*` to update all field paths. - update_mask = "text" + update_mask = "text,cardsV2" ) # Make the request diff --git a/chat/client-libraries/cloud/update_space_user_cred.py b/chat/client-libraries/cloud/update_space_user_cred.py index 3d257d0b..6c3540a6 100644 --- a/chat/client-libraries/cloud/update_space_user_cred.py +++ b/chat/client-libraries/cloud/update_space_user_cred.py @@ -38,7 +38,7 @@ def update_space_with_user_cred(): 'display_name': 'New space display name' }, # The field paths to update. Separate multiple values with commas. - update_mask = 'display_name' + update_mask = 'displayName' ) # Make the request