createBrandProfileAttributes
inline suspend fun EndUserMessagingClient.createBrandProfileAttributes(crossinline block: CreateBrandProfileAttributesRequest.Builder.() -> Unit): CreateBrandProfileAttributesResponse
Creates up to 10 attributes for a brand profile in a single request. For attributes of type IMAGE or DOCUMENT, the response includes a presigned Amazon S3 URL that you use to upload the media. This operation is atomic: either all of the attributes are created, or none of them are.
Samples
// Create a text attribute on a brand profile
val resp = endUserMessagingClient.createBrandProfileAttributes {
brandProfileId = "bp-abc12345678901234"
attributes = listOf<BrandProfileAttributeInput>(
BrandProfileAttributeInput {
attributeName = "SupportEmail"
attributeType = BrandProfileAttributeType.fromValue("TEXT")
attributeValue = "support@example.com"
category = "CONTACT"
}
)
}Content copied to clipboard