ContentBlockDto
DTO for content blocks, exposing only codes and structured data (never DB IDs).
Properties
| Name | Type | Description |
|---|---|---|
| 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. | ||
| code | string | |
| name | string | |
| bodyHtml | string | |
| description | 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
{
"libraryCode": "string",
"libraryStatus": "NotFromLibrary",
"isImported": false,
"code": "string",
"name": "string"
}
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