- Overview
- Reference
- API Structure
- Public API
- Introduction
- Loyalty Club
- Member
- Offers
- Rewards
- Games
- CMS Content
- Management API
- Introduction
- Core
- Applications
- Privacy Policy
- Cookie Policy
- Terms
- Domains
- Domain Email Configs
- Domain Web Configs
- TLS Certificates
- Links
- Fonts
- Subunits
- Subunits Scopes
- SMS Sender Identities
- Contacts
- Translations
- Promotions Policy
- Tracker
- Social Logins
- Billing
- Members
- Listing Members
- Member Profile
- Imports
- Groups
- Programs
- Benefits
- Cars
- Webhooks
- Misc
- Receipts
- Stores
- Offers
- Rewards
- Triggerer
- CMS
- Introduction
- Pages
- Components
- Website
- Website Domains
- Venue Info
- Landing Pages
- Landing Page Templates
- Articles
- Events
- Events Groups
- Job Postings
- Press Releases
- Tags
- Service Messages
- Content Prototypes
- ContentPrototype Model
- List Content PrototypesGET
- Show Content PrototypeGET
- Create Content PrototypePOST
- Update Content PrototypePUT
- Destroy Content PrototypeDELETE
- List Organization Content PrototypesGET
- Show Organization Content PrototypeGET
- Create Organization Content PrototypePOST
- Update Organization Content PrototypePUT
- Destroy Organization Content PrototypeDELETE
- Mixed Content
- Attachments
- Events
- Games
- Scraper
- Files
- Receipts
- Users API
- Operations API
- Introduction
- Manager API
- Tenant API
- Messaging API
- Data API
- ML API
- Introduction
- Predict Sending KPI v1
- Explain Sending KPI Prediction v1
- Predict Sending KPI In Date Range v1
- Predict Sending Popularity v2
- Predict Sending Text Popularity v2
- Predict Sending Time Series Popularity v2
- Explain Sending Popularity Prediction v2
- Explain Sending Text Popularity Prediction v2
- Explain Sending Time Series Popularity Prediction v2
- Recommend sending time v2
- Generate Image
- Generate Text
- Generate Sending Text
- (Draft) Reporting API
- Other
ContentPrototype Model
Content prototype model#
Example#
{
"content_prototype": {
"id": 22,
"organization_id": 1,
"customer_selector": "country=US",
"content_type": "article",
"content_definition": {}, // Article content definition - see 'Article content definition model',
"replicas_count": 10,
"image": { "url": "https://cdn-files.dev.placewise.com/files/NEsNrgFdJBIOaUjuWGOsVI5" }
}
}
Definition#
Key | Type | Optional | Read-only | Description |
---|---|---|---|---|
id | integer | no | yes | |
organization_id | integer | yes | yes | Organization |
customer_selector | string | no | no | Customer selector, the same format as customer header |
content_type | enum: ['article'] | no | no | Replicated entity |
content_definition | object | no | no | Replicated entity attributes |
replicas_count | integer | no | yes |
Article content definition#
Example#
{
"content_definition": {
"status": "published",
"visible_since": "2022-04-05T10:01:38.071142Z",
"visible_until": "2022-04-19T10:01:38.071208Z",
"title": { "en": "Title", "pl": "Tytuł" },
"body": { "en": "Body", "pl": "Treść" },
"headline": { "en": "Headline", "pl": "Nagłówek" },
"teaser": { "en": "Teaser", "pl": "Zachęta" },
"published_at": "2022-04-11T10:01:38.071268Z"
}
}
Definition#
Key | Type | Optional | Read-only | Description |
---|---|---|---|---|
status | enum: ['draft', 'published', 'unpublished'] | no | no | when 'published', the record is available in CMS Public API |
visible_since | datetime | yes | no | Date since the record is visible in CMS Public API |
visible_until | datetime | yes | no | Date until the record is visible in CMS Public API |
title | LocalizedContent | yes | no | |
body | LocalizedContent | yes | no | |
headline | LocalizedContent | yes | no | |
teaser | LocalizedContent | yes | no | |
published_at | datetime | yes | no | Date to display in CMS Public API as publication date |
Modified at 2024-05-06 15:15:29