Connect / Client / update_outbound_email_contact_message

update_outbound_email_contact_message

Connect.Client.update_outbound_email_contact_message(**kwargs)

Updates the draft outbound email message for a contact. Use this operation to save changes to an in-progress outbound email reply before you send it. This operation applies only to contacts with an OUTBOUND or AGENT_REPLY initiation method; it isn’t supported for flow-initiated emails.

See also: AWS API Documentation

Request Syntax

response = client.update_outbound_email_contact_message(
    InstanceId='string',
    ContactId='string',
    EmailMessage={
        'MessageSourceType': 'RAW',
        'RawMessage': {
            'Body': 'string',
            'ContentType': 'string'
        }
    }
)
Parameters:
  • InstanceId (string) –

    [REQUIRED]

    The identifier of the Connect Customer instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.

  • ContactId (string) –

    [REQUIRED]

    The identifier of the contact in this instance of Connect Customer.

  • EmailMessage (dict) –

    [REQUIRED]

    The email message body to update on the outbound email draft.

    • MessageSourceType (string) – [REQUIRED]

      The message source type. The only supported value is RAW.

    • RawMessage (dict) – [REQUIRED]

      The raw email body content.

      • Body (string) – [REQUIRED]

        The email message body.

      • ContentType (string) – [REQUIRED]

        The content type of the email body. Valid values:

        • text/plain – Plain text content.

        • text/html – HTML-formatted content.

Return type:

dict

Returns:

Response Syntax

{
    'ContactId': 'string'
}

Response Structure

  • (dict) –

    • ContactId (string) –

      The identifier of the contact in this instance of Connect Customer.

Exceptions