Skip to main content
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

Query Parameters

limit
integer

Maximum number of records to return for this request. Overrides the row count only, not the page offset (which is always based on per_page), so use per_page for pagination rather than combining limit with page. Defaults to the per_page value.

per_page
integer
default:20

Items per page. Defaults to the resource-specific page count if configured, otherwise 20

page
integer
default:1

Page number. Defaults to 1 when omitted

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