GET
/
content
/
api
/
v2
/
layouts
/
{layoutId}
/
versions
/
{versionId}
Get the previous version of the layout
curl --request GET \
  --url https://api.hubapi.com/content/api/v2/layouts/{layoutId}/versions/{versionId}
{
  "id": 123,
  "object": {
    "id": "<string>",
    "label": "<string>",
    "path": "<string>",
    "category_id": "<string>",
    "created": 123,
    "updated": 123,
    "deleted_at": 123,
    "body_class": "<string>",
    "body_css_id": "<string>",
    "layout_data": {},
    "custom_head": "<string>",
    "include_default_custom_css": true,
    "enable_domain_stylesheet": true,
    "attached_stylesheets": [
      "<string>"
    ]
  },
  "updated_at": 123,
  "user": {
    "email": "<string>",
    "full_name": "<string>",
    "id": 123,
    "username": "<string>"
  }
}

Path Parameters

layoutId
string
required

The ID of the layout

versionId
string
required

The ID of the version to retrieve

Response

200 - application/json

Successful response

The response is of type object.