EndUserMessagingSocial / Client / create_whatsapp_message_template_media

create_whatsapp_message_template_media

EndUserMessagingSocial.Client.create_whatsapp_message_template_media(**kwargs)

Uploads media for use in a WhatsApp message template.

See also: AWS API Documentation

Request Syntax

response = client.create_whatsapp_message_template_media(
    id='string',
    sourceS3File={
        'bucketName': 'string',
        'key': 'string'
    }
)
Parameters:
  • id (string) –

    [REQUIRED]

    The ID of the WhatsApp Business Account associated with this media upload.

  • sourceS3File (dict) –

    Contains information for the S3 bucket that contains media files.

    • bucketName (string) – [REQUIRED]

      The bucket name.

    • key (string) – [REQUIRED]

      The object key of the media file.

Return type:

dict

Returns:

Response Syntax

{
    'metaHeaderHandle': 'string'
}

Response Structure

  • (dict) –

    • metaHeaderHandle (string) –

      The handle assigned to the uploaded media by Meta, used to reference the media in templates.

Exceptions

  • EndUserMessagingSocial.Client.exceptions.ValidationException

  • EndUserMessagingSocial.Client.exceptions.AccessDeniedException

  • EndUserMessagingSocial.Client.exceptions.ResourceNotFoundException

  • EndUserMessagingSocial.Client.exceptions.InvalidParametersException

  • EndUserMessagingSocial.Client.exceptions.ThrottledRequestException

  • EndUserMessagingSocial.Client.exceptions.InternalServiceException

  • EndUserMessagingSocial.Client.exceptions.DependencyException