Version Data Model

Individual change to content as recorded within a revision.

This resource is a part of the Publishing Workflow.

Sample JSON Data

      {
        "data": {
          "id" "562d4560-cd23-469e-aa85-5de39c2d351c",
          "type": "versions",
          "attributes": {
            "event": "update",
            "object-changes": {
              "path": [
                "/donuts_and_pastries",
                "/donuts-and-pastries"
              ],
              "title": [
                "Donuts and Pastries",
                "Donuts and Pastries - Coffee Shop"
              ]
            },
            "created-at": "2012-04-23T18:25:43.511Z"
          },
          "relationships": {
            "item": {
              "data": {
                "id": "3d780e70-1775-4f34-a695-63e190b7b223",
                "type": "pages"
              }
            },
            "user": {
              "data": {
                "id": "0fc31cfc-c839-4d45-9b1c-4b4065a29ef0",
                "type": "users"
              }
            }
          }
        }
      }

Attributes

Attribute Type Required Description
event string Read-only Type of version. Can be create, update, or delete.
object-changes object Read-only Object containing changes made to the item. Each key in the object represents an attribute with changed values. The key contains an array, whose first value is the original value and whose second value is the changed value.
created-at date Read-only Records when version was created, localized to the current logged in user’s time zone.

Relationships

Title Type Required Description
item object Read-only Changed item.
user object Read-only User who last drafted the changes.

Related