Skip to content

Create In App Template

pinpoint_create_in_app_template R Documentation

Creates a new message template for messages using the in-app message channel

Description

Creates a new message template for messages using the in-app message channel.

Usage

pinpoint_create_in_app_template(InAppTemplateRequest, TemplateName)

Arguments

InAppTemplateRequest

[required]

TemplateName

[required] The name of the message template. A template name must start with an alphanumeric character and can contain a maximum of 128 characters. The characters can be alphanumeric characters, underscores (_), or hyphens (-). Template names are case sensitive.

Value

A list with the following syntax:

list(
  TemplateCreateMessageBody = list(
    Arn = "string",
    Message = "string",
    RequestID = "string"
  )
)

Request syntax

svc$create_in_app_template(
  InAppTemplateRequest = list(
    Content = list(
      list(
        BackgroundColor = "string",
        BodyConfig = list(
          Alignment = "LEFT"|"CENTER"|"RIGHT",
          Body = "string",
          TextColor = "string"
        ),
        HeaderConfig = list(
          Alignment = "LEFT"|"CENTER"|"RIGHT",
          Header = "string",
          TextColor = "string"
        ),
        ImageUrl = "string",
        PrimaryBtn = list(
          Android = list(
            ButtonAction = "LINK"|"DEEP_LINK"|"CLOSE",
            Link = "string"
          ),
          DefaultConfig = list(
            BackgroundColor = "string",
            BorderRadius = 123,
            ButtonAction = "LINK"|"DEEP_LINK"|"CLOSE",
            Link = "string",
            Text = "string",
            TextColor = "string"
          ),
          IOS = list(
            ButtonAction = "LINK"|"DEEP_LINK"|"CLOSE",
            Link = "string"
          ),
          Web = list(
            ButtonAction = "LINK"|"DEEP_LINK"|"CLOSE",
            Link = "string"
          )
        ),
        SecondaryBtn = list(
          Android = list(
            ButtonAction = "LINK"|"DEEP_LINK"|"CLOSE",
            Link = "string"
          ),
          DefaultConfig = list(
            BackgroundColor = "string",
            BorderRadius = 123,
            ButtonAction = "LINK"|"DEEP_LINK"|"CLOSE",
            Link = "string",
            Text = "string",
            TextColor = "string"
          ),
          IOS = list(
            ButtonAction = "LINK"|"DEEP_LINK"|"CLOSE",
            Link = "string"
          ),
          Web = list(
            ButtonAction = "LINK"|"DEEP_LINK"|"CLOSE",
            Link = "string"
          )
        )
      )
    ),
    CustomConfig = list(
      "string"
    ),
    Layout = "BOTTOM_BANNER"|"TOP_BANNER"|"OVERLAYS"|"MOBILE_FEED"|"MIDDLE_BANNER"|"CAROUSEL",
    tags = list(
      "string"
    ),
    TemplateDescription = "string"
  ),
  TemplateName = "string"
)