Revision Data Model
Tracks publishing events and related changes.
This resource is a part of the Publishing Workflow.
Sample JSON Data
{ "data": { "id" "5ebd6627-9680-4dbc-b1c7-3406dc2afb2e", "type": "revisions", "attributes": { "comments": null, "versions-count": 2 "created-at": "2012-04-23T18:25:43.511Z" }, "relationships": { "user": { "data": { "id": "dc8b2b71-47f3-4702-9f85-d0822873ee83", "type": "users" } }, "versions": { "data": [ { "type": "versions", "id": "060cf1bf-e89b-498a-806c-fe083262fca3" }, { "type": "versions", "id": "2b3edcae-9930-4e42-87b1-aff1782fb0a7" } ] }, "drafts": { "data": [] } } } }
Attributes
Attribute | Type | Required | Description |
---|---|---|---|
comments
|
string
|
No | Comments recorded along with revision. |
versions-count
|
string
|
Read-only | Number of versions recorded along with this revision. |
created-at
|
date
|
Read-only | Records when revision record was created, localized to the current logged in user’s time zone. |
Relationships
Title | Type | Required | Description |
---|---|---|---|
drafts |
array |
Yes | Drafts to publish and include as versions with the revision. |
user
|
object
|
Read-only | User who performed the publication action. |
versions
|
array
|
Read-only | Individual changes (versions) published in this revision. |