PUT
/
pages
/
{page_id}
/
content-blocks
/
{content-block_id}
Update a content block
curl --request PUT \
  --url http://localhost:3001/portal-api/pages/{page_id}/content-blocks/{content-block_id} \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "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"
}'
{
  "CreatedAt": "2023-06-25 13:37",
  "UpdatedAt": "2023-06-25 13:37",
  "ID": 1
}

Authorizations

Authorization
string
header
required

Path Parameters

content-block_id
integer
required

UID of the content block

Example:

1

page_id
integer
required

UID of the page

Example:

1

Body

application/json
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"

Response

OK

CreatedAt
string

Timestamp of when this catalogue was created

Example:

"2023-06-25 13:37"

UpdatedAt
string

Timestamp of when this catalogue was updated the last time

Example:

"2023-06-25 13:37"

ID
integer

UID of the content block

Example:

1