Skip to main content
PUT
/
blocks
/
{block_id}
Update block details
curl --request PUT \
  --url https://api.questra.ai/blocks/{block_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'X-Org-Id: <x-org-id>' \
  --data '
{
  "order": 1,
  "config": {
    "content": "<string>",
    "type": "<string>",
    "showIf": "<string>",
    "attentionRequired": {
      "reason": "<string>",
      "dismissed": false
    },
    "content_type": "markdown"
  },
  "page_id": "<string>"
}
'
{
  "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

block_id
string
required

Unique ID of the block to update

Body

application/json
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
config
object

The new configuration settings for the block. This will override the config currently set on the record.

page_id
string

Unique ID of the new page for the block. Must be a page inside the same survey

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