Content Data Model
Content records in the current site.
This resource is a part of the Publishing Workflow.
Sample JSON Data
{
"data": {
"type": "contents",
"id": "4f254a03-71eb-49fb-a389-ed5e7f2d9c9f",
"attributes": {
"title": "Simply Delicious Coffees",
"published-at": "2012-04-23T18:25:43.511Z",
"trashed-at": "2012-04-23T18:25:43.511Z",
"created-at": "2012-04-23T18:25:43.511Z",
"updated-at": "2012-04-23T18:25:43.511Z"
},
"relationships": {
"content-template": {
"data": {
"type": "content-templates",
"id": "3112a8d3-3b14-466e-a441-50793addbd5f"
}
},
"draft": {
"data": {
"type": "drafts",
"id": "9c832533-81d2-4387-ba06-73f37993d5df"
}
},
"content-blocks": {
"data": [
{
"type": "content-blocks",
"id": "f8b631ff-4a24-4ce2-bef4-f2d552fb3a37"
}
]
},
"page-contents": {
"data": [
{
"type": "page-contents",
"id": "6531677b-b29a-43f4-8a39-8e03dd9e6f19"
}
]
}
}
}
}
Attributes
| Attribute | Type | Required | Description |
|---|---|---|---|
title
|
string
|
No | Title of content, used for internal purposes. |
published-at
|
date
|
Read-only |
Timestamp recording when content was first published (null if
never published), localized to the current logged in user’s time zone.
|
trashed-at
|
date
|
Read-only |
Timestamp recording when content was added to the trash (null
if still active), localized to the current logged in user’s time zone.
|
created-at
|
date
|
Read-only | Timestamp recording when content was created, localized to the current logged in user’s time zone. |
updated-at
|
date
|
Read-only | Date and time content record was last updated, localized to the current logged in user’s time zone. |
Relationships
| Title | Type | Required | Description |
|---|---|---|---|
content-template
|
object
|
Yes | Content template defining the content’s structure. |
draft
|
object
|
Read-only | Draft of content. |
content-blocks
|
array
|
No | Content blocks containing data related to this content. |
page-contents
|
array
|
No | Link between this content, page(s) that the content appears on, regions that the content appears within on the page(s), and which display(s) the content uses for presentation on the page(s). |