CreateContentBlockRequest
Request to create a new reusable content block that can be included in document templates.
Content blocks are shared sections of content that maintain consistency across documents.
Properties
| Name | Type | Description |
|---|---|---|
| name* | string | Display name for the content block (e.g., "Standard Header", "Legal Footer", "Signature Block") |
Display name for the content block (e.g., "Standard Header", "Legal Footer", "Signature Block") | ||
| bodyHtml | string | HTML content of the block with Liquid syntax support.
Example header block: {{ tenant.name }}{{ tenant.address.line1 }}, {{ tenant.address.city }} Date: {{ date | date: "%B %d, %Y" }} Example conditional footer: |
HTML content of the block with Liquid syntax support.
Example header block: {{ tenant.name }}{{ tenant.address.line1 }}, {{ tenant.address.city }} Date: {{ date | date: "%B %d, %Y" }} Example conditional footer: | ||
| description | string | Optional description explaining the block's purpose and where it should be used |
Optional description explaining the block's purpose and where it should be used | ||
| category* | enum | Custom ServiceTerms ServiceProposals TemplateParts WebContent Email EmailParts |
Custom ServiceTerms ServiceProposals TemplateParts WebContent Email EmailParts | ||
| subjectLine | string | Optional subject line for email content blocks (only relevant when Category is EmailParts). |
Optional subject line for email content blocks (only relevant when Category is EmailParts). | ||
| libraryCode | string | Optional reference to the library item code this content block was imported from. |
Optional reference to the library item code this content block was imported from. | ||
JSON Example
{
"name": "string",
"bodyHtml": "string",
"description": "string",
"category": "Custom",
"subjectLine": "string"
}