GET
/
pages
/
{page_id}
/
content-blocks
List all content blocks which are displayed on this page
curl --request GET \
  --url http://localhost:3001/portal-api/pages/{page_id}/content-blocks \
  --header 'Authorization: <api-key>'
[
  {
    "Content": "<p>Everything would be better connected, but the internet is messy, imperfect and unpredictable.</p>\n\t\t\t\t<p>Our engineers are dedicated to making it simple, fast and affordable to connect every system in the world.</p>\n\t\t\t\t<p>We ensure you can trust our systems to look after yours.</p>",
    "Name": "HeaderDescription",
    "ID": 1,
    "PageID": 1
  }
]

Authorizations

Authorization
string
header
required

Path Parameters

page_id
integer
required

UID of the page

Example:

1

Response

200 - application/json

OK

Content
string

Content of this content block

Example:

"<p>Everything would be better connected, but the internet is messy, imperfect and unpredictable.</p>\n\t\t\t\t<p>Our engineers are dedicated to making it simple, fast and affordable to connect every system in the world.</p>\n\t\t\t\t<p>We ensure you can trust our systems to look after yours.</p>"

Name
string

Name of the content block. In order to succeesfully render this page, name should with a reference in the template for this page. For instance, HeaderDescription will be rendered in {{safe .blocks.HeaderDescription.Content}} section of the template

Example:

"HeaderDescription"

ID
integer

UID of the content block

Example:

1

PageID
integer

UID of a page where the content block belong

Example:

1