Skip to main content
POST
/
v1
/
documentation
/
{parent_id}
/
blocks
cURL
curl --request POST \
  --url http://localhost:8000/api/v1/documentation/{parent_id}/blocks \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "data": [
    {
      "block_type": "bookmark",
      "content": [
        {
          "annotations": {
            "bold": "<string>",
            "italic": "<string>",
            "strikethrough": "<string>",
            "underline": "<string>",
            "code": "<string>",
            "color": "<string>"
          },
          "plain_text": "<string>",
          "href": "<string>"
        }
      ]
    }
  ]
}
'
{
  "data": {
    "block_type": "bookmark",
    "id": "<string>",
    "content": [
      {
        "annotations": {
          "bold": "<string>",
          "italic": "<string>",
          "strikethrough": "<string>",
          "underline": "<string>",
          "code": "<string>",
          "color": "<string>"
        },
        "plain_text": "<string>",
        "href": "<string>"
      }
    ],
    "parent_id": "<string>"
  },
  "meta": {}
}

Authorizations

Authorization
string
header
required

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

Path Parameters

parent_id
string
required

This will be parent id of the block you want to create

Query Parameters

raw
boolean

Include raw response. When you want more data from the source

Body

application/json
data
object[]
required

Response

data
object
required
meta
object