ContentArea

Represents a section of reusable content in an email.

The ContentArea object is associated with classic content. We recommend that you use Content Builder to create content blocks. See Content Builder Blocks.

NameData TypeDescription
BackgroundColorStringIndicates background color of content area.
BorderColorStringIndicates color of border surrounding content area.
BorderWidthIntIndicates pixel width of border surrounding content area.
CategoryIDIntSpecifies the identifier of the folder.
CellpaddingIntIndicates pixel value of padding around content area.
CellspacingIntIndicates pixel value of spacing for content area.
ClientClientID objectSpecifies the account ownership and context of an object.
ContentStringIdentifies content contained in a content area.
CorrelationIDStringIdentifies correlation of objects across several requests.
CreatedDateDateTimeThe date and time when the object was created.
CustomerKeyStringUser-supplied unique identifier for an object within an object type. This property corresponds to the external key assigned to an object.
FontFamilyStringIndicates font family used in content area.
HasFontSizeBooleanIndicates whether the content area includes a specified font size or not.
IDIntRead-only identifier for an object. Some objects use the ObjectID property as a unique ID.
IsBlankBooleanIndicates if specified content area contains no content.
IsDynamicContentBooleanIndicates if specific content area contains dynamic content.
IsLockedBooleanIndicates if specific email content area within an Enterprise or Enterprise 2.0 account is locked and can’t be changed by subaccounts.
IsSurveyBooleanIndicates whether a specific content area contains survey questions.
KeyStringSpecifies key associated with content area in HTML body. Relates to the Email object via a custom type.
LayoutLayoutType objectThe layout type of the content area. Accepted values are HTMLWrapped, RawText, and SMS. The layout value HTMLWrapped displays as a Free Form orientation content area in the UI. The value RawText displays as HTML only.
ModifiedDateStringThe date and time when the object was last modified.
NameStringName of the object or property.
ObjectIDStringSystem-controlled, read-only text string identifier for object.
ObjectStateStringNot used.
OwnerOwner objectDescribes account ownership of subscriber in an on-your-behalf account.
PartnerKeyStringUnique identifier provided by partner for an object. This property is accessible only via API.
PartnerPropertiesArray of APIProperty objectsA collection of metadata supplied by the client and stored by the system. These properties are accessible only via API.
WidthIntIndicates pixel width of content area.