Skip to main content
POST
/
pages
/
{page_id}
/
blocks
Create block on page
curl --request POST \
  --url https://api.questra.ai/pages/{page_id}/blocks \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'X-Org-Id: <x-org-id>' \
  --data '
{
  "config": {
    "content": "<string>",
    "type": "<string>",
    "showIf": "<string>",
    "attentionRequired": {
      "reason": "<string>",
      "dismissed": false
    },
    "content_type": "markdown"
  },
  "order": 1
}
'
{
  "id": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "page_id": "<string>",
  "order": 1,
  "config": {
    "content": "<string>",
    "type": "<string>",
    "showIf": "<string>",
    "attentionRequired": {
      "reason": "<string>",
      "dismissed": false
    },
    "content_type": "markdown"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

X-Org-Id
string
required

The ID of the organization to make requests against. Found on your Settings page.

Path Parameters

page_id
string
required

Unique ID of the page to add the new block to

Body

application/json
config
object
required

The configuration settings for the new block

order
integer

The index at which to order the block relative to the others on the same page. Zero is the first, 1 is the second, etc.

Required range: x >= 0

Response

id
string
required

ID

created_at
string<date-time>
required
updated_at
string<date-time>
required
page_id
string
required
order
integer
required
Required range: x >= 0
config
object
required