ContentBlockDto
DTO for content blocks, exposing only codes and structured data (never DB IDs).
Properties
| Name | Type | Description |
|---|---|---|
| code | string | Stable identifier. For library-shipped items this is the library code; for tenant-imported |
Stable identifier. For library-shipped items this is the library code; for tenant-imported | ||
| name | string | Display name shown to users in lists, dialogs, and the import browser. |
Display name shown to users in lists, dialogs, and the import browser. | ||
| description | string | Optional human-readable summary of what this entity is for. |
Optional human-readable summary of what this entity is for. | ||
| libraryCode | string | The Code of the library template this entity was imported from, or null if the entity |
The Code of the library template this entity was imported from, or null if the entity | ||
| libraryStatus | enum | Describes a library-imported entity's relationship to its source library template. |
Describes a library-imported entity's relationship to its source library template. | ||
| isImported | boolean | True if the tenant has already imported this library item. |
True if the tenant has already imported this library item. | ||
| deprecated | boolean | True if this library item has been retired. Deprecated items are hidden from the import |
True if this library item has been retired. Deprecated items are hidden from the import | ||
| bodyHtml | string | |
| 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). | ||
| hasClientTokens | boolean | Whether any field (SubjectLine or BodyHtml) contains {{ Client.* }} Liquid tokens. |
Whether any field (SubjectLine or BodyHtml) contains {{ Client.* }} Liquid tokens. | ||
| createdDate | string | |
| updatedDate | string | |
JSON Example
{
"code": "string",
"name": "string",
"description": "string",
"libraryCode": "string",
"libraryStatus": "NotFromLibrary"
}
Used By Operations
-
POST
Create ContentBlock
/tenants/{tenant}/contentblocks
-
GET
Get ContentBlock
/tenants/{tenant}/contentblocks/{code}
-
PUT
Update ContentBlock
/tenants/{tenant}/contentblocks/{code}
-
GET
Get Library ContentBlock
/tenants/{tenant}/contentblocks/library/{code}
-
PUT
Revert ContentBlock to Library
/tenants/{tenant}/contentblocks/{code}/library-version